To pass values from parent widget which uses spmodal.open to modal widget(child)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2024 07:06 PM - edited 07-16-2024 03:04 AM
Hello Everyone,
I have an urgent requirement that in a service catalog form onclick of a button it should open a modal which has a table format from which api response values has to populate in the table and post selection it needs to get mapped to the service catalog form.
So i'm using spmodal.open function and data is populatig in parent widget but its not paased to the modal widget
can anyone help we with this?
spModal.open({
title: 'API Data',
widget: 'b0a4075f1bd34e902fffba618b4bcb8a',
size: 'lg',
data: { apiData: c.data.apiData }
});
so im calling this is client script of my parent widget and the data is not passed to the modal widget
even when static data is given it comes empty data->{test:'testing1', test2: 'testing2'}
Thanks in advance!
Regards,
Shalani R