Quantcast
Channel: SCN : All Content - SAPUI5 Developer Center
Viewing all articles
Browse latest Browse all 6178

sapui5 SimpleForm control issue

$
0
0

All,

 

 

I have an sapui5 simple form control with a drop down in its content and 2 buttons in the buttons aggregation property. the buttons work fine. the content (drop down  box) displays fine and triggers the change property fine. on my change property of the drop down box, I am able to see the selectedKey and based on that I want to render different content in my simple form.

 

my code looks as follows:

 

var myForm; // [this is my simpleForm variable] and it is assigned above

 

form.removeContent(stringOfControlId);
form.removeContent(indexOfControlInTheForm);

form.removeContent(controlToBeRemoved);

 

none of the functions above seem to remove the content I need to remove from the simple Form.

 

After the remove. I am doing a dynamic insert of the new content I need to display as follows:

 

form.insertContent( myNewContent, indexWhereNeededToInsert); // this works also

 

 

after this code runs.. I see the new content displayed but the previous content is still on the screen. does any one know if there is a bug on the removeContent function of the simpleForm control?

 

Thank you in advance


Viewing all articles
Browse latest Browse all 6178

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>