Hi,
I want to open a M3 program from an H5 SDK application. In M3 H5 it works using:
let BKM = `bookmark?program=OIS301&startpanel=B&tablename=OOLINE&sortingorder=96&source=H5&view=PEDIDOS&includestartpanel=True&requirepanel=True&suppressconfirm=False&keys=OBCONO%2C${this.currentCompany}%2COBORNO%2C%2520%2COBPONR%2C%2520%2COBPOSX%2C%2520&fields=WWFACI%2C%2520%2CW1OBKV%2C${orderNumberSelected}%2CWWDEL%2C0%2CW2OBKV%2C%2520%2CW3OBKV%2C%2520&LogicalId=lid://infor.m3.1`;
this.applicationService.launch(BKM);
But in Smart Office it doesn't work. I tried using an automation instead of a bookmark, but it doesn't work either. The code I used is the following:
let BKM = `_automation?data=<?xml version="1.0" encoding="utf-8"?>
<sequence>
<step command="RUN" value="OIS300"/>
<step command="AUTOSET">
<field name="WWQTTP">1</field>
<field name="WOPAVR"></field>
</step>
<step command="KEY" value="ENTER"/>
<step command="AUTOSET">
<field name="W1OBKV">${orderNumberSelected}</field>
</step>
<step command="KEY" value="ENTER"/>
<step command="LSTOPT" value="42"/>
</sequence>`;
this.applicationService.launch(BKM);
The XML is correctly build, since when put in "mforms" in Smart Office, it opens the correct program.
Anything I missed? Any hint would be very helpful.
Thanks!