Pages

Monday, March 27, 2017

Select di Grid using x++

Select di Grid using x++ :

public boolean modified()
{
    boolean ret;
    UserGroupId groupName;
   IPMS_BusinessArea   tblBA, activeRow;
    Common      common;
    int aaa;

    ret = super();

    groupName = this.valueStr();

    select tblBA where tblBA.UserGroupId == groupName;

    if(tblBA && groupName != "")
    {
        warning("Group name is already used.");
        common = IPMS_BusinessArea_ds.cursor();
      activeRow = common;
      activeRow.UserGroupId = "";

        IPMS_BusinessArea_ds.research(true);
    }

    return ret;
}



No comments:

Post a Comment

Give me feedback.