Double_Clicked on Form Level Record Will open New Form with Details Of that Line
ex: Bank contain account ,accc contains no of transactions
1)Create 2 Tables as show in fig .below
2)Apply Relations
3) create 2 Forms as per table
4) In Parent Form Write Code in Button Clicked method and Gride MouseDbClicked method should write
ex: Bank contain account ,accc contains no of transactions
1)Create 2 Tables as show in fig .below
2)Apply Relations
4) In Parent Form Write Code in Button Clicked method and Gride MouseDbClicked method should write
5)write code in click method
VOID CLICKED()
{
ARGS ARGS;
FORMRUN FORMRUN;
SUPER();// KEEP THIS TO CALL SUPER() WHEN OVERRIDING THE CLICKED METHOD
ARGS = NEW ARGS();
//TO LUCH THE FORM
ARGS.NAME("DLSTRANSACTIONDETAILS");
ARGS.RECORD(DLSACCOUNTDETAILS);
FORMRUN = CLASSFACTORY.FORMRUNCLASS(ARGS);
FORMRUN.INIT();
FORMRUN.RUN();
FORMRUN.WAIT();
}
Note:set propertie of clicked method Auto Declaration : Yes
6)MouseDbClick Method
public int mouseDblClick(int _x, int _y, int _button, boolean _Ctrl, boolean _Shift)
{
int ret;
ret = super(_x, _y, _button, _Ctrl, _Shift);
Button.clicked();
return ret;
}
Final Result
Comments
Post a Comment