Cascading combo boxes in form

Hi i am trying to create list and detail pages in my app similar to the one created in the OSMDB app in the web development training. the issue that i am running into is i have cascading combo boxes in the detail page and when i select a record and navigate to the detail page the cascading combo boxes are empty.  is there a different method of creating cascading combo boxes that would allow for the combo boxes to be populated the way they where saved when i recall the record?

I used this example to base my cascading combo boxes off of - https://www.outsystems.com/forge/697/

Hi Jay.

They can keep the value between screens if you use Session Variables in the combo boxes and don't clean them in preparation.

The thing is, in Details you are showing data from the Record. If you copy data from one screen to the other, you are corrupting data.

Hi Jay Brooks,

you can debug your preparation  and you can find why value are not populating in your detail screen.

For your  help i am attached simple example of cascading like your forge. 

Sample screen : Check


Hope this help

Regards,

Rahul

Jay Brooks wrote:

Hi i am trying to create list and detail pages in my app similar to the one created in the OSMDB app in the web development training. the issue that i am running into is i have cascading combo boxes in the detail page and when i select a record and navigate to the detail page the cascading combo boxes are empty.  is there a different method of creating cascading combo boxes that would allow for the combo boxes to be populated the way they where saved when i recall the record?

I used this example to base my cascading combo boxes off of - https://www.outsystems.com/forge/697/

Hi Jay,

Can you please share the OML file


thanks!

Rahul Kumar wrote:

Hi Jay Brooks,

you can debug your preparation  and you can find why value are not populating in your detail screen.

For your  help i am attached simple example of cascading like your forge. 

Sample screen : Check


Hope this help

Regards,

Rahul

Hi Rahul,  I have 4 combo boxes that cascade in succession and one question that i have is for the on change screen action would you create one that would encompass that changes of all the cascading combo boxes or would you make one for each progressing combo box.

as an example i have countries then regions then region area's and finally terminals & stations. is it best practice to create an on change screen action for each step of the cascade?


Hello.

If one of the dropboxes toggles different options ahead (for instance, choosing between a plane or a train dropdown), I'd say you to do different actions to toggle the dropdown and fill it.

If they simply filter over the same data on the same dropdown, It's up to you.

Usually, each action refreshes one dropdown, but we agree that having several actions with similar names, may get confusing at some point.

So you can create a single Action with 3 optional inputs. A switch inside it, calls the right refresh.



Solution
Processing Upload...

Hi Jay,

I have tried by creating one Onchange action for all dropdown (without switch). You can also do it by creating a single Action with 3 optional inputs. A switch inside it, calls the right refresh  as Nuno Reis has said.

It's logic also depends on your entities or your database. I am extended previous .oml with 4 cascading you can check it now. It will help you to find idea to do it. 

Thanks and Regards,

Rahul

Solution

Rahul Kumar wrote:

Hi Jay,

I have tried by creating one Onchange action for all dropdown (without switch). You can also do it by creating a single Action with 3 optional inputs. A switch inside it, calls the right refresh  as Nuno Reis has said.

It's logic also depends on your entities or your database. I am extended previous .oml with 4 cascading you can check it now. It will help you to find idea to do it. 

Thanks and Regards,

Rahul

for some reason the oml wont upload to the page. I really appreciate the help thanks for everything


Jay Brooks wrote:

Rahul Kumar wrote:

Hi Jay,

I have tried by creating one Onchange action for all dropdown (without switch). You can also do it by creating a single Action with 3 optional inputs. A switch inside it, calls the right refresh  as Nuno Reis has said.

It's logic also depends on your entities or your database. I am extended previous .oml with 4 cascading you can check it now. It will help you to find idea to do it. 

Thanks and Regards,

Rahul

for some reason the oml wont upload to the page. I really appreciate the help thanks for everything



Hi,

You r welcome. Jay Brooks.


Regards,

Rahul