47
Views
6
Comments
Solved
How to get values from structure?
Application Type
Reactive
Service Studio Version
11.54.13 (Build 62526)
Platform Version
11.21.0 (Build 39357)

Hello everyone,


This forum is related to my previous question Limitations in Bulk Update. Since there isn't any solution, I tried to resolve my problem using different method. I used different list, "Description" structure only to store all the description values manually entered by user. When I debug, I found out that all the values entered by user actually stored in the "Description" structure. However, when storing value into database, it only stores the first value. I think it is because, when creating value in database, I used "Description.Current.Description". How can I use the "Description" structure that has all the description values entered by user to create new value in database? Your advice and suggestion will be much appreciated. Thank you in advance! 

DropDown (2).oml
UserImage.jpg
Puja Rani
Solution

Hi, I have done changes to your initial oml. you can have a look. 

DropDown (update).oml
UserImage.jpg
Harvin Raj

Hi Puja,


Thank you so much. Really appreciate your time and effort. It works now!


UserImage.jpg
Nani

hi

harvin 

i made few change in the oml you check, instead of using two structures if you use single structure it will much easier 


DropDown (2).oml
UserImage.jpg
Harvin Raj

Hello @nani,


Thank you for your time. I have seen the changes you made and run the application again. Apparently, when I try to input "a1" inside the description input widget, the list append action, adds "a" into the "Description" structure first and then "a1". Meaning for per id, there are 2 values added (depending on the number of character you input). 

If input "aaa", then there are 3 values added for per id. Description: "a", id: "1", Description: "aa", id: "1", Description: "aaa", id: "1". If you get what I mean. 

So when filtering the structure, only first value is used for creating new value. In this case, it is Description: "a", id: "1" 

The above image is the reference. Since there are 2 values under same id, it always take the first one. Therefore, all the values in description are again same. 


UserImage.jpg
Nani

i haven't know i need to change logic on screen side also, i just thought you have facing problem on server side.

well you got the solution, don't stop there try to refractor the code and make it clean, simple and easier because the way you implemented the code is the not the best way.

UserImage.jpg
Harvin Raj

Yes definitely. Thank you for your advice @nani 

UserImage.jpg
Puja Rani
Solution

Hi, I have done changes to your initial oml. you can have a look. 

DropDown (update).oml
UserImage.jpg
Harvin Raj

Hi Puja,


Thank you so much. Really appreciate your time and effort. It works now!


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.