Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combo Value Capture
Message
From
16/03/2021 13:07:43
 
 
To
16/03/2021 11:57:30
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01679017
Message ID:
01679021
Views:
59
>Greetings all,
>
>When users are entering company data (physical address and mailing address), they have an option to click a checkbox that assigns the physical address to the shipping address.
>
>The state portion of teh address are combo boxes populated from a state local view (lv_State) that only has the State_code (i.e. WY) , and pk_st_id (i.e. 002).
>Combo box for State physical address named: cmb_PhyAddr
>Combo box for State mailing address named: cmb_MailAddr
>
>The combo box setting (for both ) are:
> boundToColumn: 2,
>boundTo: T,
>ControlSource: (fk_pk_id),
>rowSource: lv_State.State_Code, pk_state_id
>RowSourceType: 6-Fields
>
>When the user clicks the checkbox to assign the address data to the mailing address data, everything is populating except the combo box.
>
>thisform.cmb_mailAddr.value = thisform.cmb_PhyAddr.value ** current code where nothing happens

Since the second combo has a ControlSource, better to assign the value of the first combo to the second combo's ControlSource itself, not to Value:
REPLACE fk_pk_id WITH thisform.cmb_PhyAddr.value IN mailingaddress
or something like that.

Tamar
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform