Text box Inactive

0
I am calling an entity over association and taking input at runtime to store data in it. However, this textbox remains inactive when I run my app locally to test it. I have also created an object of the entity using a nanoflow, it is still not working.  I am attaching the screenshot of my page here. Am I doing something wrong? Mendix Studio Pro 8.18.3    
asked
4 answers
2

Hi Faiqa,

As Fabian said, Create Survey and Building objects in the nanoflow Create_NewSurveyObject and associate both of them in the same nanoflow. Then update your page like below. Then you can edit Number of building field.

answered
0

First thing that I see here, is that your text box is still using the attribute from the outer `Building` data view.

Since the `Create_NewSurveyObject` nanoflow doesn’t seem to also create the associated `Building`, this data view therefor has no object, so the text box will be read-only.

The inner data view with the nanoflow will most likely allow you to get an editable text box, but if that created object is not associated to the outer `Survey` object, the changes will also get lost when saving.

I think the best option, given that this seems to be a page for a new entry, is to create the `Building` object in the `Create_NewSurveyObject` nanoflow as well, so that the association can already be set and both objects exist. However, this also assumes that both the `Survey` _and_ `Building` object are supposed to be new objects.

If you just want to be able to select existing objects, using a reference selector is probably the easiest, you could use a page to select the object, on which you can have a list view/grid with a new button should a new `Building` be desired.

answered
0

   

 

Screenshots

answered
0

   

 

Screenshots

answered