cancel
Showing results for 
Search instead for 
Did you mean: 

How to configure parameter values for OBN?

paul_bakker2
Active Contributor
0 Kudos

Hi,

I posted this question in the Workflow forum, but no joy there. Hopefully the NWBC gurus can help!

(Note: We are using SWF_WORKPLACE as a workflow inbox. This is a new implementation, and none of us have any NWBC or OBN experience.)

I have a workflow with a custom object attached - let's call it ZCL_REG_FORM_BUNDLE.

When a user clicks on the attached object, I want to trigger a webdynpro application to display the formbundle.

I see that it can be done via OBN, using transaction SWFVMD1.

In the tab Object/Method, I put the following entry:

Object Type Category   CL

Object Type                 ZCL_REG_FORM_BUNDLE

Method name               (blank)

Visualisation Type        OBN

Parameters:

Object_Type                 TRM_NAVI

OPERATION                 DISPLAY_FORMBUNDLE

PARA1                         &ZCL_REG_FORM_BUNDLE.GUID&

PARA2                         (empty)

This _almost_ works - except for the PARA1 part. I don't know how to specify that

ZCL_FORM_BUNDLE.GUID is a variable that needs to be interpreted, instead of a string.

I tried putting &'s around it, curly brackets, $ etc. None of them work.

If I hardcode the GUID value in there,  it works beautifully


I would be able solve this problem, I'm sure.,. if I could just see one working example.

Does anyone have one?. I would love a screenshot.


thanks

Paul

Accepted Solutions (1)

Accepted Solutions (1)

paul_bakker2
Active Contributor
0 Kudos

Thanks Samuli.

With a bit of debugging  (another good method is CL_NWBC_RUNTIME35->RESOLVE_NAVIGATION) and a belated use of F4 I finally figured it out:

Object_Type               TRM_NAVI

OPERATION               DISPLAY_FORMBUNDLE

PARA1                         &_OBJECT_KEY&

PARA2                         (empty)

There is apparently no need to refer to the workitem. The object visualisation works fine without it,

cheers

Paul

Answers (1)

Answers (1)

Former Member
0 Kudos

The is the correct space for this question. See method _EVALUATE_OBN_OBJECT_VISU of class CL_SWF_POWL_LAUNCH_SERVICES for the answer. Both $ and & are supported, whatever dynamic parameter you use it has to exist in the workitem container.