infor-cloud / m3-h5-sdk

https://infor-cloud.github.io/m3-h5-sdk/
34 stars 20 forks source link

How to pass parameters to M3-H5-SDK application? #180

Open swuendri opened 1 year ago

swuendri commented 1 year ago

Description

Hello,

I was not able to pass parameters to our own application developed with infor M3-H5-SDK. I tried to pass key values via keys parameter, but it doesn't work. Here some examples:

  1. mforms://bookmark?program=/mne/apps/supplier-customer-item/&name=SCILinkTest&tablename=OCUSMA&keys=OKCONO,750,OKCUNO,100003
  2. mforms://bookmark?program=/mne/apps/supplier-customer-item/&name=SCILinkTest&keys=CUNO,100003

How can I start a H5 application with parameters?

Thanks in advance, Sven

Versions

6.0.0

kimanderssonm3cs commented 12 months ago

First off, your URL is malformed. Try replacing: mforms://bookmark?program=/mne/apps/supplier-customer-item/&name=SCILinkTest&tablename=OCUSMA&keys=OKCONO,750,OKCUNO,100003

with: mforms://bookmark?program=/mne/apps/supplier-customer-item?name=SCILinkTest&tablename=OCUSMA&keys=OKCONO,750,OKCUNO,100003

swuendri commented 12 months ago

Hi @kimanderssonm3cs, thank you for your reply. In my opinion the URL isn't malformed. The main difference between the two URLs is, that the parameter name is separated in my URL and included into parameter program in yours.

My URL

image

Your URL

image

I used https://semalt.tools/en/url-parser to check it.

kimanderssonm3cs commented 11 months ago

Sorry I was reading the URL wrong.