To pass values from parent widget which uses spmodal.open to modal widget(child)

Shalani Rajendr
Tera Contributor

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

0 REPLIES 0