cancel
Showing results for 
Search instead for 
Did you mean: 

How to change action button text in UWL?

Former Member
0 Kudos

Hi All,

I want to change the text of Action buttons like Resubmit, Forward, Assign To Me in UWL.

Is it possible to change thru custom configuration file for a specific workitem?

Thanks

Sundar

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Sundar,

Write in the config file like this:


<ItemTypes>
  		<ItemType name="uwl.task.webflow.TS70008125" connector="WebFlowConnector" defaultView="MyView" defaultAction="testing" executionMode="default">
	<ItemTypeCriteria systemId="SAP_system name" externalType="TS70008125" connector="WebFlowConnector"/>  
 	<Actions>
         <Action name="testing" groupAction="" handler="IViewLauncher" returnToDetailViewAllowed="yes" launchInNewWindow="yes">
          <Properties>
            <Property name="iview" value="pcd://ppcd location"/>
            <Property name="openInNewWindow" value="yes"/>
		<Property name="display_order_priority" value="uwlExcludeFromPreviewDetail"/>
          </Properties>
        </Action>
	      <Action name="forward" handler="dummy">
          <Properties>
            ....
          </Properties>
		<Descriptions default="My Forward"/>
        </Action>
      </Actions>
	    </ItemType>
    </ItemTypes>

Then upload your config file with high priority. Clear the cache from cache administration . Log off and re login to the portal.

Your text will be displayed for the forward button.

I have done this in a similar way, and it works well.

Hope this resolves your problem.

Thanks,

Sonali.

Former Member
0 Kudos

Hi Sonali,

I had the same kind of scenario,where I used Alert Connetor in the UWL.& I need to dispay the respective BI reports of the particular alert.

How to proceed?

Can I do it in VC by taking Reports as nested iview to ALRTdataservice iveiw.

Former Member
0 Kudos

Hi Sonali,

Thanks.

I tried the code you posted here.

I have a forward button with custom text but the forward functionality is not working.

In your code below,

<Action name="forward" handler="dummy">

<Properties>

....

</Properties>

What I need to write between <Properties> and </Properties> tag?

When I added action tags for "Assign To Me" button like below I got 2 Assign To Me button in UWL.

<Action name="Assign To Me" handler="dummy">

<Properties>

</Properties>

<Descriptions default="My AssignTo Me"/>

</Action>

When I click My Forward or My Assign To Me button I get the following error message.

" Unable to perform the request. Try again and if the problem persists, inform your system administrator"

How do I resolve this?

Regards

Sundar

Former Member
0 Kudos

Hi Sundar,

For the forward button , you are getting this message because you are using the handler dummy, ie no handler . For forward, write like this:



        <Action name="forward" handler="ProviderActionHandler">
          <Properties>
           <Property name="userIdList" value="${users}"/>
        <Property name="display_order_priority" value="3"/> 
          </Properties>
		<Descriptions default="My Forward"/>
        </Action>

 

If you provide this handler and these properties, then you must have the forward functionality screen, as defined by SAP.

In case you want anything else to launch, like any web dynpro application, you need to have webdynprolauncher...and so the properties will be different.

Let me know if your forward functionality is happening well or not?

Regarding Assign to Me, do not put any extra action tag for that.

Go to portal content and select 'Yes' for the Display UWL support Information. Log into portal and click on the task which you want to check. Below UWL you will see a lot of information. In the section 'Supported Actions for this Item'(last section), Find the action Id for the 'Assign to Me' Display Text. I guess that action will be there in the uwl.standard file. Copy that action section and paste in your file. Just add one extra line:

<Descriptions default="My Forward"/> at the end of the </Properties> tag. Bo not create any new name, just add this default text. In this way functionality will remain same, only text will change.

Log off and login to the portal. Hope you will see what you want.

Thanks,

Sonali.

Former Member
0 Kudos

Hi Supraja,

I guess the BI reports are available in the portal as iviews. i mean iviews must have been created to show these in the portal.

Now to show them from UWL, you just have to customize that particular alert item type and then provide the pcd location for that iview to get lauched.


<ItemType name="uwl.task.webflow.TS50000075.SAP_R3" connector="WebFlowConnector" defaultView="defaultView" defaultAction="launchIView" executionMode="default">
      <ItemTypeCriteria systemId="SAP_system name" externalType="TS50000075" connector="WebFlowConnector"/>
      <Actions>
        <Action name="launchIView" groupAction="no" handler="IViewLauncher" returnToDetailViewAllowed="yes" launchInNewWindow="yes">
          <Properties>
            <Property name="iview" value="pcd://portal_content/rest path same as displayed in the Quck info area when you select the iview in the portal content section "/>
            <Property name="openInNewWindow" value="yes"/>
          </Properties>
          <Descriptions default="launchIView"/>
        </Action>
      </Actions>
    </ItemType>


Just check if it works and get back..

Thanks,

Sonali.

Former Member
0 Kudos

Sonali,

You are great!

It's working fine now after I implemented as you said.

Thanks for your help.

Regards

Sundar

Former Member
0 Kudos

Hi Sonali,

I am trying to create a new button with name "select all " . Kindly let me know the code to create a button in uwl. Please help me on this.

Thanks in advance,

Kumar.

Answers (1)

Answers (1)

Former Member
0 Kudos