cancel
Showing results for 
Search instead for 
Did you mean: 

How to save the data of pop up and pass it to parent

sinaei
Contributor
0 Kudos

Dear All,

Hope you fine,

I have a requiremen. I have an Embedded Copmonent in my Account_QC view that has some fields,

Like below

When I click on ADD the below popup will be open. ( I defined it as Modal Dialog in UI, I have set the event on click to showModalDialog)

Relationship Type is an Object Value Selector that user has to chose one of them.

My question is that how can I pass this selected data to my previous view? when I click on the OK button what event shuld I have to chose?

Regards

Sin

Accepted Solutions (1)

Accepted Solutions (1)

HorstSchaude
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Sin,

Yes, you can using a ListModificationForm: .

HTH,

    Horst

sinaei
Contributor
0 Kudos

Hi Horst,

Thanks for your reply, I follow all the step as mentiones in the link you gave me, I have an embedded copmponent, I have add ALP inside it, and ADD button and an Input field that is for connecting this embedded component to my QC view.

Then

I mapped the field inside ALP with target,

And then Add List Modifictaion Structure in my DataList1

Then bind them exactly like the field of my dataList1

Then add ListModificationForm from toolbox, and drag and drop the field from DatsList1ModificationStructure.

Then set the AssociationListModificationStructure.

And add event for ADD button to open the list.

But I have an error in C4C when I click on ADD

Do you know why and if I miss something else or no?

Regards

Sin

HorstSchaude
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Sin,

And the EventHandler starts the ListModif?

Bye,

   Horst

sinaei
Contributor
0 Kudos

Hi Horst,

Yes, Event Handler satrats ListModify.

Do you have any other idae? If I can use ModalDialog instead of ListModif?

Sin

HorstSchaude
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Sin,

The ListModif is the better way.

BTW:  It works for items of a BO. Do you have a BO instance when calling the ListModif?

Bye,

   Horst

sinaei
Contributor
0 Kudos

Hi againg Horst,

Thanks a lot,

No, I dont have any BO, because I have created an embedded component and add it in my Account_QC view, so I have done all the step in embedded component.

Is not working?

Sin

HorstSchaude
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello SIn,

Then - I assume - we have found the root cause.

Bye,

   Horst

sinaei
Contributor
0 Kudos

So how can I achieve the result?

Do you have any idea?

Regards,

Sin

HorstSchaude
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello SIn,

First you to create an instance of your Custom BO then you can trigger the ListModif.

I would use a QuickCreate.

HTH,

   Horst

sinaei
Contributor
0 Kudos

Can you explain more?

I should create a Custom BO that is exactly like standard QC?

and use the Custom one instead of standard?

HorstSchaude
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Sin,

Maybe a look into the docu from section 8.3 on helps.

Bye,

     Horst

sinaei
Contributor
0 Kudos

Hello Horst,

I did not understand why should I have to create a Custom BO while I have standard BO?

Can you explain me?

Regards

Sin

HorstSchaude
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello SIn,

Because you can not enhance the UI of a standard BO like for a Custom BO.

But it depends on what you do want to achieve.

Bye,

   Horst

sinaei
Contributor
0 Kudos

Hi Horst,

I have done it based on this document.

I defined one of my Column inside ALP as dedicated field, and do the config based on this document.

But again there is the error

Do you have any other soloution?

Regards

Sin

HorstSchaude
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Sin,

The target inside an EC is normally an instance of a BO. Therefore the outport provides the UUID or any other Alternative Key of the calling BO.

As you mention you define a column of an ALP as target. This won't work.

In example he is alos using a simple "/Root/DataField".

It's a cardinality mismatch.

Bye,.

    Horst

sinaei
Contributor
0 Kudos

Hi Horst,

Thank a lot for all your helps.

Many thanks

Sin

Answers (0)