Hi, simple question (I think). I’ve done lots of trial and error and just want columns to auto populate on my newly created row. I created a button, attached a row-add in the event to add the new row to the DataView/grid, then a row-update, with parameters of EpiBinding, Expression, value, and datatype. I have yet to come across a populated column after trying different inputs in those fields. Any suggestions or does anyone have a working one I could potentially see screenshots of?
You might try splitting the row-updates into separate widgets in the event. I’m still very new at this but one of the things I’ve struggle-bussed my way through is trying to get events to execute properly. I don’t know why but sometimes certain widgets don’t like to have more than one of its kind in the same event… or like the row-update for instance if I add more than 1 column in the same row-update widget, it fails. So, I’ve had to split several column setters into several separate row-update widgets in the same event each only updating one column. Kind of annoying. There’s probably a method to the madness but I don’t know what it is.
How are you creating the new row?
If with a BO object, then use a BPM to default the values … if with row-add, then specify the data in the Values field…
I try do do as little logic as feasible in the client - it’s too finicky
It’s being created using row-add, the dataview originates from a BAQ. I’ve tried having multiple different values with no luck.
Can you show your event firing in dev tools/ debugger?
is this in an updatable dashboard or a regular app?
If a regular app and you are using the method GetNewXXX… then this can be done by doing a POST PROCESSING BPM on that method, filling in all the values…
For example, if wanting to populate defaults for a part, create a post processing BPM on Part.GetNewPart, and fill all the values into the returned value. After the BPM runs, the UI will automatically populate the screen with the values you dropped in with your BPM.
It is an updatable dashboard. As of now, I have been able to get something to load in a new row by completely discarding row-update and just having row-add with requested values inside.
In the debugger all I see is unable to find dataview so that’s probably a good clue lol.
You’re using a a BAQ… do you have a BAQ Dataview set up? Or are you assigning a dataview in the grid’s provider model?
I do have a BAQ dataview set up.
I tried using kinetic-baq … update … GetNew rather than row-add and it worked. All is swell. For now. Thanks everyone.