Skip to content

Commit

Permalink
Update ChoiceListFromCurrentEntityData.md
Browse files Browse the repository at this point in the history
  • Loading branch information
e-marchand authored Dec 22, 2023
1 parent f55855b commit 096730e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/ChoiceListFromCurrentEntityData.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,11 @@

## Database content

For entities, an object field must contain the choice list
For entities, an object field must contain the choice list as key value
- key is the display value
- value is the value send to server and receive in database method "On Mobile App Action"

We could fill using an object

```4d
var $entity: cs.ATable
Expand All @@ -20,6 +23,7 @@ $entity.aChoiceObjectField:=New Object(\
"Two"; 2\
)
```

> 🚧 show some other 4D code to fill it (if possible)
## Input control definition
Expand Down

0 comments on commit 096730e

Please sign in to comment.