Is it possibe to load a SMO once in a Form initialize rule and then populate other dropdowns in views within the same form? rather than loading the same SMO for every single view? If yes, how (with specifics please)
Thanks so much
Steve
Is it possibe to load a SMO once in a Form initialize rule and then populate other dropdowns in views within the same form? rather than loading the same SMO for every single view? If yes, how (with specifics please)
Thanks so much
Steve
Hello,
Are you using a SmartObject as your Data Source when you are creating the view?
Regards,
Matt
Matt,
Yes I am
Steve
Hello Steve,
I am attaching an image to this post. Essentially you would just map out all of the rules in the Initialize method. So in the example I have attached I am executing the 'GetList' method and then populating the applicable DropDown control with that data upon initialization. Is this what you were looking to do?
Regards,
Matt
OK I see what you mean - load the List once and then populate all the dropdowns? I'm assuming we can populate all dropdowns in multiple views that are attached to a single form?
Thanks so much
Steve
If you were going to apply the same logic with mutiple views you would apply that logic at the form level. You can do it at the view level as well, but applying the logic at the form level if mutiple views are involved could be a little easier from an administrative standpoint..
Please let me know if you have anymore questions!
Thanks!
Regards,
Matt
Hi Hsiungst,
So as I understand:
You have one form with multiple views, for arguments sake let’s say you have one Form containing three Views where each view contains 1 dropdown list.
You have already bound your SmartObject to View 1 and is calling its GetList method on the Forms initialize rule.
Now you want to populate all Dropdown Controls in each of the Views with values coming from the same SmartObject as the one bound to View 1 without having to load the SmartObject for View 2 and 3 as well?
If my understand is correct then yes this is possible by Form Level, please try the following:
When running your form all the drop downs form each view will be populated and you only had to load the SmartObject once.
Do note that every time you make changes to one of the dropdowns then you have to re-ensure that the dropdown population rule is not automatically added to the views initialize rule (this is Step 5 again).
If the above is not what you are referring to but instead you are referring to, if it is possible to bind SmartObjects to dropdowns during runtime by using rules - then the answer is No it is not possible as a dropdown has to have a data source in order to function.
Kind Regards,
Raymond
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.