Hi experts,
I have a requirement of creating an inquiry form which shows no of items and no of warehouses against those items which are purchased. I need to add dynamicControl for warehouses because the no of warehouse changes with legal entities. I need to display how many items are being purchased from these warehouses. For example: Item: 001 is purchased from warehouse no: WH-01 3 times.
So, I have added multiple dynamic formBuildStringControl. I now want to change the text of these dynamic controls on modify of a control but it's not working on front-end. Can you please suggest me anything? Your suggestions would be a great help to me.
Thanks in advance.
Here is my code of modified on a control textbox:
Here is my code of dynamically adding controls to a grid:
Here is my form design:
Here is my form init method where I am calling the addDynamicsControl method where controls are dynamically added.
My addDynamicControls is working perfectly but controls.text is not reflecting in front-end. I did debug my code and I found out that the controls.text stores the text however, it is not reflecting in front-end.
Please ask any further information you need.
Yes Bharani Preetham Peraka ,
I have gone through it, I am getting the buffer as well and the text is reflecting in backend using debugging but it is not reflecting in frontend.
Have you checked this?
Please check this old thread to go through challenges in creating form controls dynamically at runtime.
community.dynamics.com/.../dynamically-add-fields-to-a-from-grid-control
As Martin mentioned, reports will be best fit, if still you need form then you can explore usage of temporary tables in this case.
You'll be a better off if you create a report rather than a form. Both SSRS and Power BI have a matrix control for this purpose.
Hi sir (Mohit Rampal , goshoom ),
Can you please help me.
Hi Mohit Rampal ,
I have debugged the code and as you can see in the below picture, the text is working fine in the backend and I am also getting the buffer.
Yes, I am getting the buffer.
Hi Arif, Are you getting buffer in controls (Line# 84).
André Arnaud de Cal...
291,969
Super User 2025 Season 1
Martin Dráb
230,842
Most Valuable Professional
nmaenpaa
101,156