Search This Blog

SBL-UIF-00348: Method %1 is not allowed here.

APPLIES TO:

Siebel Tools - Version 7.8.2 [19213] and later
Information in this document applies to any platform.
*** Checked for relevance on 30-OCT-2011 ***
Error Message Area:UI Framework - UIF
Version:Siebel 7.8


PURPOSE

This document is intended to provide cause and corrective action information about Siebel Error Message SBL-UIF-00348: Method %1 is not allowed here.

SCOPE

This document is informational and intended for any user.

DETAILS

Explanation

The Method cannot be invoked. The reason depends on the circumstances. For instance, the applet may be configured as not editable, but the EditRecord method is being invoked. Under the standard configuration, if a method cannot be invoked, the button on the web page would have been either grayed out or hidden. Most likely, the method is invoked by customized code.

Corrective Action


If the method is invoked by customized code, please check the return value of CanInvokeMethod call before invoking the method. If this is not the case, please contact Siebel Technical Support and provide details about the steps used to cause the error especially with regard to navigation in the User Interface, and include relevant details about customizations made in the environment.



APPLIES TO:

Siebel Tools - Version 7.8.2.6 [19230] and later
Information in this document applies to any platform.

GOAL


The requirement is to deactivate sort column functionality in some list applets due to the huge amounts of data which affects performance. To do so, the following script has been used:
function WebApplet_PreCanInvokeMethod (MethodName, &CanInvoke)
{
   if (MethodName=="SortAscending" || MethodName=="SortDescending")
   {
      CanInvoke = "FALSE";
      return (CancelOperation);
   }
   else
      return (ContinueOperation);
}



This eScript works fine, but the system displays a general Siebel error message ("Methode SortAscending hier nicht zul䳳ig. (SBL-UIF-00348)") (translated to "Method SortAscending is not allowed here. (SBL-UIF-00348)"). How can a customized message text be used in place of this error?

FIX

It is not possible to replace the "Methode SortAscending hier nicht zul䳳ig. (SBL-UIF-00348)" system message with a customized message. However, to prevent such an error from showing, rather than placing the script in "WebApplet_PreCanInvokeMethod" event to disable the ability to sort, "WebApplet_PreInvokeMethod" event can be used to cancel the sorting. For example:
function WebApplet_PreInvokeMethod (MethodName)
{
   if (MethodName=="SortAscending" || MethodName=="SortDescending")
   {
      TheApplication().RaiseErrorText("Sorting is not allowed here"); //Add this, if needed
      return (CancelOperation);
   }
   else
      return (ContinueOperation);
}



If needed, you could add in your custom error message here by using "RaiseErrorText" method.

In addition, disabling column sorting for the whole application is not available. Bug 10564912 CR 12-1STC0Q5 has been logged to request for this feature.

Disabling column sorting can only be performed as follows:
(1) On a specific applet by using script.
(2) On a specific column/field by using "DisableSort" user property. This property can be used in list column user property or business component field user property. A value of "TRUE" or "FALSE" will determine if the sorting can be performed. For details on this property, please refer to Siebel Developer's Reference > User Properties.




APPLIES TO:

Siebel Tools - Version 8.1.1.3[21219] and later
Information in this document applies to any platform.
Checked for Relevance on 04-05-2013

SYMPTOMS

On : 8.1.1.3[21219] version, Siebel VB / eScript / COM

In Prospects>Opportunities, When New Button is clicked then It navigates to Opportunity>My Opportunity – Individual Access, creating a new record and the cursor points to the child applet.

ERROR
-----------------------
"Method NewRecord is not allowed here.(SBL-UIF-00348)"


STEPS
-----------------------
The issue can be reproduced at will with the following steps in custom Srf:
1. Navigate to Prospects Screen >> Opportunities
2. In My Opportunity – Individual Access >> Click "New" button
3. It navigates to Opportunity>My Opportunity – Individual Access view> then it displays the error :SBL-UIF-00348

BUSINESS IMPACT
-----------------------
Due to this issue, users cannot create new Prospects record.

CAUSE


Improper usage of script is causing the issue. The following line was failing when there were no records in the current BusComp context:

var sStatus = this.BusComp().GetFieldValue("BNYM Final Status");


From the script, FieldValue from the current record is being fetched. Since there are no records to be displayed for New Position, this part of script is failing which is causing the all the methods to be disable.

SOLUTION


1.
Change the script as follows:
var sStatus;
var count = this.BusComp().CountRecords();
if(count != 0)
{
sStatus = this.BusComp().GetFieldValue("BNYM Final Status");
//then paste all your code for if MethodName here
} /

2. Remove the Applet_PreInvoke method script
3.Compile and Test



APPLIES TO:

Siebel Tools - Version 7.8.2.5 SIA [19227] and later
Information in this document applies to any platform.
”Checked for Relevance on 24-Jan-2014”

SYMPTOMS

After returning to an MVG applet after attempting to delete multiple records customer we are experiencing error "Method DeleteRecord is not allowed here (SBL-UIF-00348)" and buttons which were previously enabled are being disabled.

CHANGES

In order to allow multi-row selection in MVG applet customer has set the HTML Multi-Row Select property = TRUE.

CAUSE

Customer was getting error (SBL-UIF-00348) because Siebel application does not have the ability to delete multiselected rows in a list applet.

The following Enhancement Request has been logged and they are still target to future version.

Bug 10455778: Delete is disabled after multi select...

Actually the “Delete” button should be disabled when multiple rows are selected, however in Standard Interactivity Mode the applet is not refreshed when you select the rows by checking the rows and due to that it is not disabled in the UI.
However if you perform the multi-select and then highlight a different row the applet is refreshed and button is disabled correctly.
It was also verified that the same behavior also happens with List applets.

SOLUTION

Bug 10539898 DELETE BUTTON IS NOT DISABLED IN SI WHEN MULTISEL has been logged to address the issue where “DELETE” button appears enabled when selecting multiple records in standard interactivity mode.
Currently no workaround has been found to refresh the applet when selecting multiple rows in standard interactivity mode.

1 comment:

  1. Bug 10539898 DELETE BUTTON IS NOT DISABLED IN SI WHEN MULTISEL has been logged to address the issue where “DELETE” button appears enabled when selecting multiple records in standard interactivity mode.

    Currently no workaround has been found to refresh the applet when selecting multiple rows in standard interactivity mode.

    ReplyDelete