plomino / Plomino

Powerful and flexible web-based application builder
33 stars 37 forks source link

Feeding view into a datagrid field #845

Closed AshRaghav closed 6 years ago

AshRaghav commented 6 years ago

Hi @jean and @ebrehault,

I remember you were saying something along the lines of feeding a view data into a datagrid field.

I tried doing this and it is coming up quite weirdly. It was a title of a subject and ended up showing one character per column instead of showing the complete title in one column.

I am clearly missing something here but not able to figure it out quite.

Can you provide some guidance please?

Thanks in Advance

ebrehault commented 6 years ago

I guess your formula is returning a list of strings instead of a list of list of strings.

AshRaghav commented 6 years ago

Thanks @ebrehault - done some more trial and error with list of lists and eventually one of the combinations worked. Probably not in the right frame of mind.

Slightly different question - the code I used in datagrid field's "How to calculate field content" formula for columns to be shown from the view is directly visible when I view page source. Just concerned that it might be become an opportunity to know some of the key fields of the plomino database and may result in hacking/tampering. Anyway this can be prevented?

Thanks again.

ebrehault commented 6 years ago

Normally only users having the PlominoManager or PlominoDesigner role can see that.

AshRaghav commented 6 years ago

@ebrehault - great stuff, thank you for clarifying!

I cannot believe that we are finally able to search a database with accurate results for the keywords typed in the search bar.

No disrespect to Full-text search but because users are searching only by the titles they see on the grid, it made a lot of sense to show results relevant for what they typed.