Hi ievgen Miroshnikov and bala1985.
I have the same problem where I am doing overlay in a model that has Application Suite package and need a custom field I added into a model which it does not have any package it is just used for extension.
Model1: Application Suite package
Model2: No package, just references
I have a SalesLine.Extension in my model2, and I need my custom field there that I will use in my model1.
In my model1 I am overlaying a button (TransferToConfirmedButton) in form SalesAvailableDlvDates where I used its method clicked. When it is clicked I need to pass a string value to my custom field in my extenison table that is found in model2.
Is this the right approach? which is marked as verified answer? If so, can you help me where to start?
Here are my questions:
1) Using overlaying create new delegate on a form that accepts cursor and returns new field's value, not EDT if it is a new EDT but generic type. There is already a delegate "OKClicked" on a form, so you can use it as example.
What is the correct code for this delagate? that returns a new field's value?
What I've searched is this:
delegate void reasonField_delegate(SalesLine _salesLine, EventHandlerResult _res){}
Is the instructions in the link is what I am supposed to do? and what do you mean by "not EDT if it is a new EDT but generic type"? What EDT are you referring to? Should I create an EDT in my overlay?
2) Subscribe to delegate in extension model to return new field.
Does this mean that I'll subscribe to my delagate in model1 from my extension in model2? If so, where?
3) Use returned value in overlayed Clicked method to pass it to a overlayed method on HcmWorkerTransition
In here, are you referring to passing values form different methods in my overlay?
would appreciate the help, it's my first time encountering this.