how to get or set field value of mobile card by script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2024 09:55 PM
Hello exparts, I want to find out how I can get or set Field value on a mobile card and Fields on a Details screen embedded on a Record screen segment by script.
I try to configure to searching for users by sys_user and some custom table with global search(zing).
However, there are some value that I want to display in the search results is not in sys_user.So, I should get some value with other table that has them.
Im not sure it is possible or not, please can anyone help me?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2024 09:32 AM
As far as I understand, when setting up a mobile card, you can only reference fields in other tables if you can reach them via dot-walking. In your example, if you had a reference field in [sys_user] table pointing to the corresponding entry in your custom table, you would be able to dot-walk to it in the mobile card builder.
Blog: https://sys.properties | Telegram: https://t.me/sys_properties | LinkedIn: https://www.linkedin.com/in/slava-savitsky/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2024 10:32 PM - edited 08-01-2024 04:58 PM
Thanks for the reply.
I understood that dot walk can be used with Mobile Card Builder.
Unfortunatly, the field which I want to display is not reference field in [sys_user] .
Here's what I want to achieve.
1. search [sys_user] table in global search (zing). *search source[sys_user]
2. username[sys_user),duty[custom table] in list item for search result display items.
* I want to get data from [sys_user] ,[custom table], and I understood it's impossible.
3. On tap list item, navigate to record screen for detail.
* I want to pull datas from [sys_user] ,[custom table] on detail screen.
I want to show data from [sys_user] and [custom table] using record screen segment.
This custom table has a column named user_id, which is a reference field to sys_user.
I am trying to use function(type:navigate) to pass the User ID of sys_user with UI parmeter to the user id in the custom table.
But it doesn't work...