New Era 2.11 Master Detail
Posted in 1996
Topics: Cloud, Docker & Containers
--=====================_840122148==_ Content-Type: text/plain; charset="us-ascii" --=====================_840122148==_ Content-Type: text/plain; charset="us-ascii" Content-Disposition: attachment; filename="IXMDPRBL.TXT" Problem In Master-Detail Form Master Customer Cust_num (Unique Index) other fields Detail Cust_note Cust_num (Duplicate Index) c_date c_note Buttons In Detail SuperTable Insert Row Apply Row Requirement NO UPDATES ALLOWED In DETAIL ONLY Inserts. So When a User tries to Update It should say U Can't Update Notes. I tried with this code in datacheck event of the detail Supertable MDSTcust_note VARIABLE ok BOOLEAN, updateFlag SMALLINT, superTable ixSuperTable LET superTable = (getVisualContainer() CAST ixSuperTable) LET updateFlag = WNcustomer.MDSTcust_note.getChangeFlag(colNum:NULL) IF ( updateFlag == ixSuperTable::isModified) THEN let ok = messagebox( new ixstring("You Can't Change Notes"), new ixstring("You Can Only Add Notes?"), ixexclaimicon, ixOk, 1) RETURN FALSE ELSE RETURN TRUE END IF Problem: When user tries to update It tells U Can't Change Notes thats fine. But when I select Insert Row Button I get the same mesg it doesn't allow me insert. Thanks in advance --=====================_840122148==_--