MVG Add All Button -Siebel Open UI

This article has been shared by Tirumalesha Dadige a reader of SiebelUnleashed.


Requirement:
You need to show Add All button on the MVG Applet in OpenUI.

Problem:
This feature was removed in OpenUI.

Solution:

Button can be added in the OpenUI by changing the SWT file and the same functionality will work.

  1. Go to WEBTEMPL/OUIWEBTEMPL in Siebsrvr folder.
  2. Open the CCPopupListMvg.swt and Add the following line after –> <div class=”siebui-popup-btm siebui-mvg-btn-modifier”>
    <swe:control id=”3002″><!– Add All, 3002 –><span class=”siebui-popup-button”><swe:this property=”FormattedHtml” hintMapType=”Control” hintText=”Other”/></span></swe:control>
    So this line is added to show the Item Identifier 3002 which is for Add All button.
  3. So now your div tag should look like below:
    <div class=”siebui-popup-btm siebui-mvg-btn-modifier”>
    <swe:control id=”3001″><!– Add, 3001 –><span class=”siebui-popup-button”><swe:this property=”FormattedHtml” hintMapType=”Control” hintText=”Other”/></span></swe:control>
    <swe:control id=”3002″><!– Add All, 3002 –><span class=”siebui-popup-button”><swe:this property=”FormattedHtml” hintMapType=”Control” hintText=”Other”/></span></swe:control>
    <swe:control id=”3003″><!– Delete,3003 –><span class=”siebui-popup-button”><swe:this property=”FormattedHtml” hintMapType=”Control” hintText=”Other”/></span></swe:control>
    <swe:control id=”3004″><!– Delete All, 3004 –><span class=”siebui-popup-button”><swe:this property=”FormattedHtml” hintMapType=”Control” hintText=”Other”/></span></swe:control>
    <swe:include file=”CCButtons_Popup_oui.swt”/>
    </div>
  4. Save the Web Template file and fire up your dedicated client (restart server in case of web client).

You should see Add All button in the MVG Popup now.


Please rate this post and show appreciation to Tirumalesha for sharing this cool information with us!

3 Responses to MVG Add All Button -Siebel Open UI

  1. hi neel. thanks for the post! I have a somewhat opposite requirement. And that is to remove the ‘Add’ button, but only for the ‘MVG’ applet, not the ‘Associate’, as it causes confusion to users. I have tried removing it from the WebTemplate items on the MVG applet only, however it removed it from both when testing in OpenUI. I also attempted to inactivate the ‘CanInvokeMethod: AddRecords’ Applet use rproperty, but that had no impact whatsoever. Any assistance would be much appreciated.

    • Hi Silvia,

      Good question…
      Did you find any solutions, if so can you please share it here….
      If not you can try below mentioned alternative…

      Regards,
      Kranthi.

  2. Hi Silvia,

    Try writing a custom PR files for the MVG and Associate applets. Hide the button in case if the PR loaded is for MVG and un-hide the same button if the button if loaded PR is for associate applet.

    Let’s take a case from sample srf SIS Account Entry Applet

    Account Team MVG Field.
    on checking the details in the form applet you will find “Account Team Mvg Applet” as the MVG applet and for the “Account Team Mvg Applet” following will be shown as associate applet “Team Member Assoc Applet”.

    Observe that the Add button is actually in MVG applet but not in associate applet.. So in the Custom PR of MVG get the control instance of the button and store in global variable and hide it in ShowSelection method.

    Later in the Associate applet PR file check for the same global instance and if not null make it visible.

    Make sure to free the variable declarations in end_life call…

    I know that writing two files for hiding a single button but i tried messing with button showing in assoc applet but it didn’t work out so for me…

    If you have found any please post it here….

    Thanks,

    Kranthi.

Leave a Reply

Contribute