cancel
Showing results for 
Search instead for 
Did you mean: 

hwc sup 2.1.3 issue on passing value to a mbo

Former Member
0 Kudos

Hello Experts

I am facing an issue for passing a value to the MBO in hwc sup.

I am using the below code for it .

I am writing the code in customBeforeSubmit function in Custom.js.

Here is the code below

if((screenKey === "_WelcomePage") && (destScreenKey === "DestinationScreen"))

    {

      

        var formWelcome1 = document.forms["DestinationInfoForm"];

        if (formWelcome1)

        {

      

        alert(123654123);

             alert(" In Payment Tracker "+"123654123");

formWelcome1.arg2.value = "123654123";// masterSessionId;

        }

    }

Please share some idea regarding this issue?

Thanks

Anil

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Anil

Create  edit box type hidden and give id for your input argumet in html view in your requrid page(DestinationScreen)

thanks

reddy

Former Member
0 Kudos

Thank you all.I got it.

Answers (1)

Answers (1)

Jitendra_Kansal
Product and Topic Expert
Product and Topic Expert
0 Kudos

Can you elaborate more on your requirement what exactly you are trying to do? How do you want to pass value to mbo ? Do you want to validate it also?

Rgrds,

JK

Former Member
0 Kudos

Thank you so much for your reply.

I have to pass username to a MBO .

After passing the username ,a sessionID shoud be generated .

when the sessionID is passed in Backend SQL Server Database,Whatever Username we passed that should be Displayed.

In the alert it is showing.

But it is not reflecting on the Database.

Thanks

Anil

midhun_vp
Active Contributor
0 Kudos

Could you give complete steps you performed.

Is username a load parameter of MBO and session ID an output ?

How you are passing the username to MBO as input ?

Use "propagate to attribute" with load parameter if you want to get input along with output of MBO.

Regards,

Midhun VP

Former Member
0 Kudos

Hi Midhun

I am using propagate to attribute as Username and sessionID for the MBO.(plz check screenshot)

I am writing the below code in  customAfterNavigateForward()

if((screenKey === "_WelcomePage") && (destScreenKey === "Destinationscreen"))

    {

         alert(masterUserName);//this alert is coming

        var formWelcome1 = document.forms["DestinationscreenForm"];

        if (formWelcome1)

        {

      

            formWelcome1.arg0.value = masterUserName;

       

        }}

Thanks

Anil

midhun_vp
Active Contributor
0 Kudos

Could you provide the steps you followed with relevant screen shots and the requirement.

Regards,

Midhun VP

Former Member
0 Kudos

Hello Midhun

I want to pass masterUsename value to arg0 in the below screenshot.

Plz check screenshot.

Thanks

Anil

midhun_vp
Active Contributor
0 Kudos

If your requirement is to map load parameter with username, keep the MBO in on demand cache >map the default PK "username" with the load parameter. Later when you implement login screen the the cached backend username will be passed as an input to the MBO. If you can provide more information on the requirement and steps you followed I can help you further.

Regards,

Midhun VP