Reference Selector with fixed options

0
Hi! I am trying to create a drop down with a set of fixed options. How can I do that? Currently, I have tried creating a a enumeration list and link it to the reference selector. However, when I run the app, there are no options. Could someone help me? ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Solution:   I linked my button to a "Create Object" action, which I connected to my SecondMilestone entity. This action opens the NewEdit page. Then, I added a data view and connected it to the SecondMilestone entity. Instead of creating a separate entity for my enumeration, I included it directly within the SecondMilestone entity. Based on everyone's suggestions, I used a dropdown instead of a reference selector. Thank you, everyone!
asked
6 answers
0

Hi Nur,

If you want to use reference selector then you have to create the Scenario_B object & save the value in DB & Associations then you will be able to select the value from reference selector.

 

If you want to use another entity(Enum_Value) value in the dropdown just search the dropdown field -> take dropdown toolbox instead of reference selector -> then select your enum value from association.

 

But if you want to use the enumeration values in the dropdown without association-> take an enumeration attribute in your SecondMileStone entity -> Go to your dataview -> take a dropdown(search in toolbox) -> select your Enumeration attribute.

 

Then you will be able to select your enumeration value directly.

 

Hope you like the answer

answered
1

Hi Nur,

     To show a data in reference selector you need to create object in Entity 1 by choosing the enumeration in dropdown, Then only you can able to choose the enumeration value in reference selector in Entity 2 object

answered
1

Hi Nur,

 

In simple words for Scenario B you mightn't need reference selector but use Dropdown make sure Scenario B object create and associated to SecondMilestone.

Extra notes:

Scenario A case was different you can use reference selector since the attribute was String, But Scenario B attribute type Enumeration so use dropdown thats enough.

 

Hope this helps. 

answered
0

Check with this!

 

Reference selector with selectable objects

 

video

answered
0

A reference selector, let's you set an association to another object. If the other objects do not exist (in your database), you cannot select them.

So your options are:

  1. Create objects of Entity B, with attributes Option_B1 / Option_B2 .... and then use the reference selector
  2. Add an enumeration attribute to SecondMilestone, and then use a drop-down widget to select the enum value
answered
0

You can create an entity (table) to hold records representing the list of options displayed in your reference selector. Each object in this entity corresponds to an option, enabling you to dynamically update the list as needed.

From your context entity, establish an association to this options entity, allowing the reference selector to display the dropdown list.

Additionally, you can apply filters to the list of options using the 'Selectable objects' tab, tailoring the dropdown to meet specific criteria.

 

Or, just nest your dataview with the entity holding the enumeration and use a dropdown widget instead of a reference selector. 

answered