F5 in CIM

falcor

New Member
Hi
I would like to write a simple CIM that delete records in 2.1.1 (Customer maintenance).
The problem is that I don't know how to put F5 or Ctrl-D in the CIM file.

This is the program I wrote:
def var i as int.
DEF VAR lBRun AS LOG NO-UNDO.
def var ipcprog as char init "yyadcsmt.p".

{mfdtitle.i}

output to "C:\mfg\EndU\delcim.cim".
for each xxDel_cust no-lock:
export xxcm_addr.
???? - THE DELETE COMMAND ???
export "y".
end.
OUTPUT CLOSE.
INPUT FROM "C:\mfg\EndU\delcim.cim".
OUTPUT TO "C:\mfg\EndU\delcim.log".
ASSIGN
lBRun = batchrun
batchrun = Yes.
{gprun.i ipcProg}
batchrun = lBRun.
OUTPUT CLOSE.
INPUT CLOSE.

Is there's a way to do it?
Thanks
Falcor :)
 
Delete with CIM

The delete of data via CIM with simulating F5 is not possible in standard MFG/Pro.

If you want to delete customers via CIM, it is only possible when you have mfgeB ,mfgeB2 or mfgeB2.1 installed.

The delete via CIM is only possible when you see "Batch-delete is enabled" after pressing <CTRL->-F in CHUI of GUI MFG screen. It is only available for a selected range of programs.

The program that you have to simulate is the following:

@@BATCHLOAD adcsmt.p
<customer address> x
-

William
yes
@@END

As you see in the example, only in batchrun mode it is possible to add an additional field with should be filled with an "x".

Unfortunately, Otherwise you have to customise you program(s) or use a back-door.
 
Back
Top