cancel
Showing results for 
Search instead for 
Did you mean: 

Show EmbeddedComponent based on Conditions

sinaei
Contributor
0 Kudos

Dear Experts,

I have a requirement.

We have created an embedde componnet that contains text fields (that are notes) and bind it as a new tab in SaleOrder view.
The requirement is that, this tab should be visible in just some cases, like if the DocumentType of Order is specific Doc type.

I want to know is it possible via PDI or UI?

Thanks

Sin

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Sin,

Define one element of type Indicator in standard SalesOrder BO by BO Extension and bound it with the Embedded Component as shown in below image.

Write code in AfterModify script file of BO Extension such that if the condition is true, then set the value of indicator element to true.

And if checkbox is true, the EC tab will be visible.

Hope this helps you out.

Regards,

Komal

sinaei
Contributor
0 Kudos

Hi Komal,

Thanks a lot for your answer, it is right!! , I test it.

just I have a problem if you can help me about this.
Event After Modify is just for after modifying, so I need to edit something that my code works.

I need when we are opening an order it checks, not after modifying.

DO you know what can I do?

Many Thanks

Sin

Former Member
0 Kudos

Hi Sin,

You can try in BeforeSave Events if it works.

Regards,

Komal

Answers (0)