Hello everyone,
I request your help to solve one question on If IsBkank function.
- I have a gallery (gallery1) and a form (form1) with gallery1.Selected in Items.
- I have an excel table (Table1 with multiple columns. One of them is called: Example and accept only integers).
- Inside my DataCard Defaut section:
If( IsBlank(Example); "1"; ThisItem.Example)
-> Read 1 in DataCard if is blank or the value of the seleted gallery if there is one.
Ok but it's what I'm looking for: DONT WORKS
If( IsBlank(Example); DataSourceInfo( Table1, DataSourceInfo.MaxValue, "Example" ) + 1 ; ThisItem.Example)
-> I'm trying to read the value of Example selected if there is one or to read and add 1 to the maxvalue of Example
Example=[0,1,2,3,4,5,6,7]
I select in my gallery the Example number 7
It shows in my Form1 DataCard the number 7
If I create a new example
New Form1 opened with Datacard with the value 8 Maxval(example)+1 =7+1=8
Example=[0,1,2,3,4,5,6,7,8]
Do you have an idea ?
Best Regards,
Thomas