editing parts of a datagrid

edcarpe2 shared this question 6 years ago
Answered

I'm using a datagrid to show a list of records, with a checkbox in each row. Users toggle the checkbox and click a button to call a popup for editing the selected records. When users close the edit popup, I have modify data master actions in place to ensure edits carry over to the right records (for example, (filter(datamaster(input is checked & (record name is 'xyz'))) attribute A=input 1, attribute B= input 2, etc. ). For some reason, only the 1st row in the data master is updating no matter how many rows should be changed. Any thoughts on what I may be missing?

Comments (8)

photo
1

I'd split that expression in two and use a variable. First I'd populate the variable with the selected row (filter(data grid, checbox is checked)). Then I'd create a modify data master action like this Modify(variable, attribute A = input 1, Attribute B = input 2)

photo
1

Hi I'm having problems getting a variable to populate with the selected row. Is there a step by step instruction set somewhere?


web design patterns demo shows setting the variable to Row() and " but I don't see how that was done.

photo
1

Maybe this video tutorial can help you http://www.justinmind.com/prototyper/...

photo
1

It helped in theory - I seemed to be able to set a variable to be the row selected but I couldn't figure out how to see the contents of the variable to confirm it we being set correctly nor could I get any following logic to work such that different things happened based upon the value of the variable (ie the row that was selected).


The logic/product seems to have such great potential but is incredibly frustrating to learn.


Now I'm trying to show a button (a master) only on certain rows of a data grid - conditioned by if another column in the same data grid contains the text "Production" and I can't get that to work either. Any suggestions for this one?


A

photo
1

The logic behind Data Masters can't be learned just by using it. You need to read the tutorials carefully until you understand how it works. Taking a look at the examples can be also useful. It's also really useful to open Prototyper and go to Help -> Help contents, and look for 'data simulation'. There is a lot of information there. Anyway, in order to check the value of the row that is in the variable, you need to use the function 'select'.

photo
1

Thank you for your response. Couple of suggestions:


I had clicked on 'learn' multiple times trying to find videos and tutorials - I didn't notice that the list of videos changed when I click 'Bring it to life' - I just thought your tutorials were limited or hidden. Better implementation of the standard tab metaphor would solve this immediately.


I also have already extensively read the Expression Builder help, and it is great in the narrow book mode. The moment I click on a link or attempt to run a reference tutorial from the help it also opens in the narrow window instead of in a separate browser - copying the link was hard also. I would love to be able to easily find the same or equivalent in a full browser window. I would have the tutorial/help window up next to my prototype pointing me to the right tutorial video for each of the help topics in context of what I was doing.


It didn't link back the separate window help you just pointed me too - I hadn't found that source of help - I assumed the help menu was linked in a sensible way to the Expression Builder help I had been exploring.


The sample code has been awesome (particularly web-design-patterns) however as you point out knowing something can be set up isn't the same as knowing how to set it up yourself.


Yes you can justify building a hard to self discover/self teach tool all you want but it will cost you net promoters every single time someone feels like a failure.


Hope this helps


Alison


I'm running on Win 7 PC.

photo
1

Hi Alison,


That really helps! In fact we are already fixing some of the things you mention and we will try to fix the rest as well.


Thanks!

photo
1

Hi Alison,


We've take your suggestions very seriously and we've updated our learn section http://www.justinmind.com/prototyper/.... I hope you like it.