Error getting by changing the company

pushpraj1008pushpraj1008 Member Posts: 33
I'm calling another Customer Additional Card,. while opening the Customer Card from Sales & Marketing--> Sales --> customer card.

I created another form Customer Additional Setup, it is based on table 18 Customer and it's header part is same like of customer card. I want to call form Customer Additional Setup, instead of calling customer card.

I did coding on form 21 Customer Card, on trigger "Customer-OnOpenForm"
{
CurrForm.VISIBLE(FALSE);
lFrmCustAdd.SETTABLEVIEW(Rec);
lFrmCustAdd.RUNMODAL;
CurrForm.CLOSE;
}


lFrmCustAdd is a form variable of form 50016 Customer Additional Setup.

Whenever i call customer card, the customer additional Setup is opening, but when change the company from A to B, it throws the error and it doesnot allow to change the company. The error shot is attached.

The error descriptions is here:

"Customer Card' cannot be closed, because it is locked by 'Customer Card'.
Please finish 'Customer Card' before closing.

Would you please any body help in this regard.

Thanks for your help in advance.
Regards
Pushpraj

Comments

  • garakgarak Member Posts: 3,263
    :-k if u doesn't need the customer card (21) why do u use it in the Menu Suite and in the customer List (and the other places where it is linked)
    Why not use your add. form instead of :?:
    Do you make it right, it works too!
  • einsTeIn.NETeinsTeIn.NET Member Posts: 1,050
    I think it's because of you run your additional Customer Card modal. Try
    lFrmCustAdd.RUN;
    
    "Money is likewise the greatest chance and the greatest scourge of mankind."
Sign In or Register to comment.