Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I'm passing parameters to my application via URL and setting the field selection values using the parameters is working fine but the fields being set using the parameters are the key fields and not the fields in the list box controls. Our developers are passing "numeric id" values to the record and the list box controls on display are text fields in the record.
qvp://na.dashboard.vistaprint.net/Marketing%20Hub.qvw?vParam_Channel_Id=3
channel_id channel_name
3 "Affiliate"
Using the following logic I am able to apply the selection to the channel_id field but the channel_name list box value of "Affiliate" is not "selected". The filtering is being applied, the proper channel_name moves to the top of the "Channel" list box but the text "is selected" indication of the green background color is not being applied.
ActiveDocument.Fields("channel_id"). Select ActiveDocument.GetVariable("vParam_Channel_Id").GetContent. string
Is there a "refresh" or "update" command I need to pass to the "Channel" list box to get the "selection" to apply to the proper item? I know the item in the Channel list box is selected but to the user it isn't necessarily obvious.
Thanks,
Dave
Hi
Use following in Macro Module:
ActiveDocument.Fields("channel_id"). Select ActiveDocument.GetVariable("vParam_Channel_Id").GetContent. string
ActiveDocument.Fields("channel_name").SelectPossible
Cheers
Darius
Thanks Darius - that did the trick.