how to refresh a embeded list
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2016 05:01 AM
I need to refresh the embeded list( of table pq) which is kept on other table(xyz) form. I am inserting values of xyz into the pq table with mapping fields through script.
The values are inserting into the table pq but its not showing in the embeded list on time. When I am reloading the page ,the values are shown in the embeded list.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2017 11:25 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2017 02:26 PM
Are you refreshing the form? Just because something was added to the table doesn't mean it will automatically show up in the form. Record watcher will tell you if a field was changed, but not related records in a related list or embedded list. For that you need to refresh.
Also, where are you relating the records in u_user_mailbox_and_aliases to the current record? Somewhere I would expect to see a reference field making reference to current.sys_id.
E.g.
embed.u_parent = current.sys_id; // or something like this
That's how records are related... through reference fields.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2017 10:03 PM
i simply save the form.
so how can i populate the record in embedded list? if embedded list will not solve my requirement do you have any other suggestion for it. i am on geneva version.
"user reference" field is referencing to sys_user table and there is a column user_name. based on that user_name i queried
into the "u_user_mailbox_and_aliases" table and get the "aliases" record now i need to populate it in aliases column.
Thanks,
Harshvardhan

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2017 06:30 AM
Sorry if I wasn't clear. Your embedded list appears on a form. That form is a record on a table (I'll call it table_a for sake of this example.) Somewhere in your u_user_mailbox_and_aliases table, you have a reference field to table_a. I don't see that being populated by your script so therefor, there's no relationship. The records are likely being created (if you look at the entire table in a standard list you should find these records), but they just aren't "linked" to table_a because you never told them about table_a's record sys_id (current.sys_id).

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2017 10:22 AM
there is a relationship between "table_a" and "u_user_mailbox_and_aliases".
Applies to table: just for your understanding it's table_a
Queries from table: embedded list table
if i need to make changes in my business rule where should i do ?
by the way i have a column on "u_user_mailbox_and_aliases" table that is reference type field and reference to the "table_a"(real table name is "u_ad_account_creation")