To SET HANDLER for parameter value

Dear Gurus,
When the user enters a plant value in PARAMETER then i need to hide some of the Screen fields.
But the system has to trigger the PAI automatically
I know this can be acheived using CL_GUI_CFW but how to implement the SET HANDLER method for a parameter
I searched and found the HANDLER METHODS for ALV, TREE, TIMER etc but I want it for  SELECTION-SCREEN elements.
I searched WIKI.SDN.SAP.COM and SDN and other stuff.
Please provide me sample code possibly
Please guide me.
Regards
Ramchander Rao.K

for selecion screens, I have this:
PARAMETERS p_cebe TYPE char01 RADIOBUTTON GROUP grp1 DEFAULT 'X' USER-COMMAND flag.
           PARAMETERS p_ceco TYPE char01 RADIOBUTTON GROUP grp1.
PARAMETERS: p_kokrs LIKE cobk-kokrs DEFAULT 'CORP' MODIF ID cec,
                                    p_gjahr LIKE cobk-gjahr                MODIF ID cec.
         PARAMETERS : p_rbukrs LIKE faglflexp-rbukrs MODIF ID ceb,
                                   p_ryear LIKE faglflexp-ryear   MODIF ID ceb,
AT SELECTION-SCREEN OUTPUT.
  LOOP AT SCREEN.
    IF p_cebe = 'X' AND screen-group1 = 'CEC'.
      screen-active = '0'.
    ENDIF.
    IF p_ceco = 'X' AND screen-group1 = 'CEB'.
      screen-active = '0'.
    ENDIF.
    MODIFY SCREEN.
  ENDLOOP.

Similar Messages

  • SQL*Loader-282: Unable to locate character set handle for character set ID

    How do I fix this error that i'm getting when running SQL Loader and connecting to an Oracle 10g database. I'm on 10g client.
    SQL*Loader-282: Unable to locate character set handle for character set ID (46).
    Here's the NLS parameter settings in database: select * from v$nls_parameters
    PARAMETER     VALUE
    NLS_LANGUAGE     AMERICAN
    NLS_TERRITORY     AMERICA
    NLS_CURRENCY     $
    NLS_ISO_CURRENCY     AMERICA
    NLS_NUMERIC_CHARACTERS     .,
    NLS_CALENDAR     GREGORIAN
    NLS_DATE_FORMAT     DD-MON-RR
    NLS_DATE_LANGUAGE     AMERICAN
    NLS_CHARACTERSET     WE8ISO8859P15
    NLS_SORT     BINARY
    NLS_TIME_FORMAT     HH.MI.SSXFF AM
    NLS_TIMESTAMP_FORMAT     DD-MON-RR HH.MI.SSXFF AM
    NLS_TIME_TZ_FORMAT     HH.MI.SSXFF AM TZR
    NLS_TIMESTAMP_TZ_FORMAT     DD-MON-RR HH.MI.SSXFF AM TZR
    NLS_DUAL_CURRENCY     $
    NLS_NCHAR_CHARACTERSET     AL16UTF16
    NLS_COMP     BINARY
    NLS_LENGTH_SEMANTICS     CHAR
    NLS_NCHAR_CONV_EXCP     TRUE
    Message was edited by:
    evo

    Yep that's it, thanks, I found out about V$NLS_PARAMETERS:
    SQL> select * from v$nls_parameters;
    PARAMETER                  VALUE
    NLS_LANGUAGE               AMERICAN
    NLS_TERRITORY              AMERICA
    NLS_CURRENCY               $
    NLS_ISO_CURRENCY           AMERICA
    NLS_NUMERIC_CHARACTERS     .,
    NLS_CALENDAR               GREGORIAN
    NLS_DATE_FORMAT            DD-MON-RR
    NLS_DATE_LANGUAGE          AMERICAN
    NLS_CHARACTERSET           WE8ISO8859P1
    NLS_SORT                   BINARY
    NLS_TIME_FORMAT            HH.MI.SSXFF AM
    NLS_TIMESTAMP_FORMAT       DD-MON-RR HH.MI.SSXFF AM
    NLS_TIME_TZ_FORMAT         HH.MI.SSXFF AM TZR
    NLS_TIMESTAMP_TZ_FORMAT    DD-MON-RR HH.MI.SSXFF AM TZR
    NLS_DUAL_CURRENCY          $
    NLS_NCHAR_CHARACTERSET     AL16UTF16
    NLS_COMP                   BINARY
    NLS_LENGTH_SEMANTICS       BYTE
    NLS_NCHAR_CONV_EXCP        FALSEGiven that 9i is not available for Solaris x86,
    how do I change NLS_NCHAR_CHARACTERSET to something that
    will work, like UTF-8?
    Thanks
    Ed

  • Error handling for RGB values

    Hi
    I am having problems doing error handling for RGB values. I have a Java applet with 3 JTextFields whose values are parsed as int variables and stored as ints. If a value is entered that is not a value between 0 and 255 is entered, the appropriate field/s should be set to an empty string.
    The problem I am having is that I am using try/catch block to try to parse as an int but then it breaks out of execution completely.
    I hope this makes sense and that someone can help.
    Thanks!

    this is because your code is probably inside one giant try catch block, what you need to do is have small ones in places where you do the parsing.
    post code and i can show you how to modify it

  • Sqlldr v11 Unable to locate character set handle for character set ID

    Good day,
    Having recently migrated to a 11g oracle database(11.2.0.1.0) from 9i on a test server, running SQL loader gives/throws the above error.
    I've seen a few posts about this but with pretty vague explanations, below is what my bash profile looks like though and i compared NLS_PARAMETERS to another server that already has version 11 running.
    # .bash_profile
    # Get the aliases and functions
    if [ -f ~/.bashrc ]; then
            . ~/.bashrc
    fi
    # User specific environment and startup programs
    export ORACLE_SID=mtctst
    export ORA_NLS10=$ORACLE_HOME/nls/data
    export ORACLE_BASE=/oracle/app/product
    export ORACLE_HOME=/oracle/client/11.2.0/dbhome_1
    #export ORACLE_HOME=/oracle/client/9.2.0
    LD_LIBRARY_PATH=$ORACLE_HOME/lib:/usr/lib/X11; export LD_LIBRARY_PATH
    PATH=$ORACLE_HOME/bin:$HOME/bin:/bin:/usr/bin:/usr/local/bin:/bin/X11;
    export PATH
    #export LD_LIBRARY_PATH=$ORACLE_HOME/lib
    #LD_LIBRARY_PATH=$ORACLE_HOME/lib32:$LD_LIBRARY_PATH
    #LD_LIBRARY_PATH_64=$ORACLE_HOME/lib
    #export LD_LIBRARY_PATH
    #export LD_LIBRARY_PATH_64
    #PATH=$ORACLE_HOME/bin:$HOME/bin:/bin:/usr/bin:/usr/local/bin:/usr/bin/X11; export PATH
    #PATH=$PATH:$HOME/bin
    #export PATH
    umask 002
    unset USERNAMEYour assistance will be appreciated.
    Regards,

    The complete command as follows:
    sqlldr userid=user/password@alias control=myctlfile.ctl log=$logfile discard=$CUR_DIR$oldfilename.discard bad=$CUR_DIR$oldfilename.bad silent=feedback errors=10000000I'm running the command on the database server that gives the following error with log entries:
    File found: gsmoly2012080612005072206
    SQL*Loader: Release 11.2.0.1.0 - Production on Mon Aug 6 16:36:09 2012
    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.
    SQL*Loader-282: Unable to locate character set handle for character set ID (178).
    after main file sqlldr before test if sqlldr was successfull: gsmoly2012080612005072206
    in mystring_risk before assign can_continue = blank: PBXOG,,26492092,,,120806,115829,120806 115829,22,,811274127,,,,,,0,,,WORK/gsm/data/gsmoly2012080612005072206,9833407,OLY.GSM  ,
    SQL*Loader: Release 11.2.0.1.0 - Production on Mon Aug 6 16:36:18 2012
    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.
    SQL*Loader-282: Unable to locate character set handle for character set ID (178).
    value of can_continue after sqlldr of risk file: F

  • SQL*Loader-266: Unable to locate character set handle for None

    Hi All,
    I am getting "SQL*Loader-266: Unable to locate character set handle for None" through sql loader.
    NLS Parameters are :
    NLS_LANGUAGE AMERICAN
    NLS_TERRITORY AMERICA
    NLS_CURRENCY $
    NLS_ISO_CURRENCY AMERICA
    NLS_NUMERIC_CHARACTERS .,
    NLS_CALENDAR GREGORIAN
    NLS_DATE_FORMAT DD-MON-RR
    NLS_DATE_LANGUAGE AMERICAN
    NLS_CHARACTERSET AL32UTF8
    NLS_SORT BINARY
    NLS_TIME_FORMAT HH.MI.SSXFF AM
    NLS_TIMESTAMP_FORMAT DD-MON-RR HH.MI.SSXFF AM
    NLS_TIME_TZ_FORMAT HH.MI.SSXFF AM TZR
    NLS_TIMESTAMP_TZ_FORMAT DD-MON-RR HH.MI.SSXFF AM TZR
    NLS_DUAL_CURRENCY $
    NLS_NCHAR_CHARACTERSET UTF8
    NLS_COMP BINARY
    NLS_LENGTH_SEMANTICS BYTE
    NLS_NCHAR_CONV_EXCP FALSE
    Kindly help
    Thanks in advance

    Please, provide the exact value of the NLS_LANG environment variable, if defined in the shell environment of SQL*Loader, and the NLS_LANG Registry setting, if on Windows. Please, provide the SQL*Loader control file.
    -- Sergiusz

  • Pop-ups for parameter value insertion don't appear

    Hi,
    I am using Web Intelligence for creating a report that allows custom parameter values to be inserted via pop-up.
    The problem is such pop-ups for parameter value insertion don't appear on the various web browsers I make use of.
    (I.E. versioni, Firefox versioni)
    Any idea on how to solve such issue?
    thanks in advance,
    SC

    I suppose that you mean query prompts, that are parameters that are asked to the user in order to filter the data.
    Which version of BOE are you using?. If you are using BOE XI R2, that problem happens when you use Java 1.6 (only when editing the document), you should use Java <=1.5 (you can check the error in the java console while you execute the report).
    I think that problem was solved in a SP (not sure which SP solves this ¿SP4?)

  • Rule for parameter values when portlet defined?

    Am I missing something?
    In Plus:
    --I make a sheet in Plus that is parameterized.
    --The parameter for an item whose item class has a LOV.
    --I define a default value.
    --I save the sheet.
    In the portal:
    --I define a Disco portlet.
    --I edit the defaults.
    --I set the parameters.
    Now, here's the weird thing: The only parameter value offered is the one saved as a default value in Plus?
    This certainly makes no sense at all.
    This is on 9.0.2.53.12
    Anyone?

    Dear Ashi,
    Your question falls into the paid support category which requires a more in-depth level of support. Please visit the below link to see the various paid support options that are available to better meet your needs.
    http://support.microsoft.com/default.aspx?id=fh;en-us;offerprophone
    Please refer to the below articles:
    1) How to Handle Typed Fault Contracts in Orchestrations
    http://technet.microsoft.com/en-us/library/bb246117.aspx>
    2) A sample provided at:
    http://msdn2.microsoft.com/en-us/biztalk/bb608378.aspx
    Thanks,
    Belinda

  • Urgent help required - linked subreport keeps asking for parameter value

    Greetings,
    I have developed a report in the Crystal Reports bundled with Visual Studio 2005. The data is obtained from a stored procedure. One of the fields in the result set is named "Id".
    I have embedded a subreport in the details row of the main report. The subreport also gets its information from a stored procedure. This stored procedure has one parameter named "OpportunityId". This field is linked to the field named "Id" above. the subreport has been set to supress blank subreports.
    In the development environment and running the executable of the application on the development machine the report works perfectly. The subreport displays as it should and all is well.
    When I deploy the report onto user machines where they have the crystal runtime installed, the report keeps asking for a parameter value for the subreport.
    I cannot get this to stop happening.
    This report is urgently required. PLEASE could someone help me out here.
    I am at my wits end.
    I have attached a zipe file containing the following:
    - the two stored procedure
    - the rpt file
    - a sample report
    - a screen showing the report having just been generated
    Thanks in advance,
    Robert Lancaster

    <p>Hi Robert,</p><p>I see your report template and stored procedures. All seems to be ok. <br /></p><p>The most important is to assign the report parameters for all linked subreports (only one in your case).</p><p> </p><p>Try this (in C#, in VB.NET the code are very similary): </p><p>ReportDocument report = new ReportDocument(@"TopFortyReport.rpt");</p><p>AssignParameters(report, paramCollection);</p><p>// and now assign parameters to all linked subreports </p><p>foreach( CrystalDecisions.CrystalReports.Engine.Section section in report.ReportDefinition.Sections)</p><p>{</p><p>    foreach (CrystalDecisions.CrystalReports.Engine.ReportObject reportObject in section.ReportObjects)<br />    {</p><p>        if (reportObject.Kind == ReportObjectKind.SubreportObject) </p><p>        {</p><p>            SubreportObject subReport = (SubreportObject)reportObject;</p><p>            ReportDocument subDocument = subReport.OpenSubreport(subReport.SubreportName);                                               AssignParameters(subDocument, paramsCollection);</p><p>        }</p><p>} </p><p> </p><p>void AssignParameters(ReportDocument report, object[] paramsCollection)</p><p>{</p><p>    int nParams = paramsCollection.Length;</p><p>    for (int iParamIndex = 0; iParamIndex < nParams; iParamIndex++)</p><p>    {</p><p>        if (report.DataDefinition.ParameterFields[iParamIndex].IsLinked())</p><p>            continue;</p><p>        report.SetParameterValue(iParamIndex, paramsCollection[iParamIndex]);</p><p>    }</p><p>}</p><p> </p><p> </p>

  • Crystal Report Viewer 11.5 Java SDK - How to set sub report parameter value

    Good day!
    I have a report with 3 sub-reports in the detail section. Main report has two parameters and each sub-report has one parameter in turn. We have our own JSP to receive parameter values from the user. I am using the following code to do the parameter value setting later into the report. Parameter value setting works for main report, but not for the sub-report.
    I get an Error, for the first sub-report, from the viewer saying:
    The parameter 'parametername' does not allow null values
    On this article: [article link|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap%28bd1lbizjptawmq==%29/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333233313337333233323331%7D.do]
    It says to set the report name of the parameter field to the name of the sub report. On this aspect, assuming this tip/solution works, I would like to read the names of the sub-reports and their parameter names. I do not want to hard-code them into our application.
    Here is my current code:
    sdk.occa.report.data.Fields parameterFields = new Fields();
    I have a HashMap of <parameterName, parameterValue>
    Iterate through the map
    report.data.ParameterField aParameterField = new ParameterField();
    aParameterField.setReportName(""); //main report
    report.data.Values theValues = new Values();
    ParameterFieldDiscreteValue aParameterFieldDiscreteValue = new ParameterFieldDiscreteValue();
    aParameterFieldDiscreteValue.setValue (aValue);
    theValues.add(aParameterFieldDiscreteValue);
    aParameterField.setName(parameterName)
    aParameterField.setCurrentValues(theValues);
    parameterFields.add(aParameterField);
    viewer.setParameterFields(parameterFields);
    Please look at the line:
    aParameterField.setReportName(""); //main report
    Here's where I would like to say
    if (parameter is subreport's parameter) then setReportName(subreport name);
    Thx

    It was little difficult to navigate down the objects to find the sub reports and their parameters. I am attaching the code:
    May be there are other ways to do the same.
    public String getReportNameForParameter (String parameterName, ReportClientDocument reportClientDoc)
            String result = "";
            boolean found = false;
            try {
                SubreportController src = reportClientDoc.getSubreportController();
                DataDefController ddc = reportClientDoc.getDataDefController();
                IDataDefinition idd = ddc.getDataDefinition();
                Fields fs = idd.getParameterFields();
                Iterator fiter = fs.iterator();
                while (fiter.hasNext()) {
                    IField ifld = (IField) fiter.next();
                    if (parameterName.equals(ifld.getName())) {
                        found = true;
                    //System.out.println ("\t Field Name/Description/HeadingText: " + ifld.getName() + "/" + ifld.getDescription() + "/" + ifld.getHeadingText());
                if (!found) {
                    IStrings reportNames = src.getSubreportNames();
                    //System.out.println ("  Sub Reports If Any ...");
                    if (reportNames != null) {
                        Iterator iter = reportNames.iterator();
                        while (iter.hasNext()) {
                            String repName = (String) iter.next();
                            //System.out.println ("\t Sub Report Name " + repName);
                            ISubreportClientDocument srcd = src.getSubreport(repName);
                            ddc = srcd.getDataDefController();
                            idd = ddc.getDataDefinition();
                            fs = idd.getParameterFields();
                            fiter = fs.iterator();
                            while (fiter.hasNext()) {
                                IField ifld = (IField) fiter.next();
                                if (parameterName.equals(ifld.getName())) {
                                    result = repName;
                                    break;
                                //System.out.println ("\t\t Field Name/Description/HeadingText: " + ifld.getName() + "/" + ifld.getDescription() + "/" + ifld.getHeadingText());
            //System.out.println ("********************************************************** ");
            catch (Exception exc) {
                System.out.println ("Error/Exception while trying to find the report name for parameter [" + parameterName + "]");
                System.out.println ("*******************************************************************************************");
                exc.printStackTrace();
            return result;

  • Getting error while trying to set text for form value field in oaf

    Hi ALL,
    When i am trying to set text for a form value type field it is giving null pointer exception, please help me out.
    I tried below way.
    OAFormValueBean containlineid=(OAFormValueBean)webBean.findChildRecursive("item11");
                containlineid.setText(pageContext,"test");
    Thanks

    HI Keerthi,
    I am able to set and get the value now, i am able to see the data in my log window, but in my page it is erroring out, giving null pointer exception.
    after commenting the two lines setting and getting value page is running fine, so any clue on this, please check the below code.
    public class XXDPECONTAINLINESCO extends OAControllerImpl
      public static final String RCS_ID="$Header$";
      public static final boolean RCS_ID_RECORDED =
            VersionInfo.recordClassVersion(RCS_ID, "%packagename%");
       * Layout and page setup logic for a region.
       * @param pageContext the current OA page context
       * @param webBean the web bean corresponding to the region
      public void processRequest(OAPageContext pageContext, OAWebBean webBean)
        super.processRequest(pageContext, webBean);
        OAApplicationModule am = (OAApplicationModule) pageContext.getApplicationModule(webBean);
          OARawTextBean startDIVTagRawBean =
          (OARawTextBean) webBean.findChildRecursive("DivStart");
          System.out.println("debhorizontal"+ startDIVTagRawBean);
    // addScrollBarsToTable(pageContext, webBean,"DivStart", "DivEnd", true , "400",true,"400");
       * Procedure to handle form submissions for form elements in
       * a region.
       * @param pageContext the current OA page context
       * @param webBean the web bean corresponding to the region
      public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
        super.processFormRequest(pageContext, webBean);
         String preplenish = pageContext.getParameter("item1");
          String pworkorder = pageContext.getParameter("item2");
          String pdmr = pageContext.getParameter("item4");
          String punloading = pageContext.getParameter("item6");
          String prrnum=pageContext.getParameter("item16");
          String pworknum=pageContext.getParameter("item14");
          String pdtr=pageContext.getParameter("item13");  
          Serializable param[] = {preplenish,pworkorder,pdmr,punloading,prrnum,pworknum,pdtr};
          OAApplicationModule am = (OAApplicationModule) pageContext.getApplicationModule(webBean);
          if(pageContext.getParameter("item11")!=null)
            if(am !=null)
              am.invokeMethod("getSearchData",param);
          if (pageContext.getParameter("item30") != null) {
            String recout = (String)am.invokeMethod("getSelectedData");
               System.out.println("deb multi select test"+recout);        
                System.out.println("1111test1"+pageContext.getParameter("item32")); 
                OAFormValueBean containlineid=(OAFormValueBean)webBean.findChildRecursive("item32");
                System.out.println("1111test2"+pageContext.getParameter("item32"));
                //containlineid.setValue(pageContext,recout);
                System.out.println("1111"+pageContext.getParameter("item32"));
              ///  System.out.println("22222"+containlineid.getValue(pageContext));
            containlineid.setValue(pageContext,recout);
            containlineid.getValue(pageContext);                            
               System.out.println("1111test3"+pageContext.getParameter("item32"));
    --------------Error it is giving in the page as----------------
    Exception Details.
    oracle.apps.fnd.framework.OAException: java.lang.NullPointerException at oracle.apps.fnd.framework.OAException.wrapperException(Unknown Source) at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(Unknown Source) at oracle.apps.fnd.framework.webui.OAPageErrorHandler.processErrors(Unknown Source) at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(Unknown Source) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source) at _OA._jspService(_OA.java:71) at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59) at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462) at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594) at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370) at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871) at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453) at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:122) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:111) at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260) at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239) at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34) at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880) at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303) at java.lang.Thread.run(Thread.java:595) ## Detail 0 ## java.lang.NullPointerException at xxdpe.oracle.apps.ak.xxdpecontain.webui.XXDPECONTAINLINESCO.processFormRequest(XXDPECONTAINLINESCO.java:123) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(Unknown Source) at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(Unknown Source) at oracle.apps.fnd.framework.webui.beans.layout.OAMessageComponentLayoutBean.processFormRequest(Unknown Source
    Thnaks

  • How to find out the set handler for a particular signal?

    I have an interesting puzzle to solve. l'm investigating problems with someone else's code and I'd like to get the name of the handler that is set for SEGV. psig shows that the process catches SEGV, however I don't have access to the source code for all the libraries it links against and none of the source code I have sets a handler for SEGV. Is there a way to find out the name of the signal handler that is set for a particular signal in a process? I'm sure the source was compiled with cc -g. Solaris 8

    Hello Haritha,
    Please follow the path.
    Go to RSA1 -> Metadata Repository ->DataStore Objects(ODS) -> Find you DSO(ODS) there and click on that, you will get all the details(Queries, Objects - Char, Key figures, update rules,etc..) related to that particular DSO(ODS), same is the case for Cube as well.
    Please assign points.

  • Setting properties with parameter values in templates

    I'm using templates with JSF. I'd also like to acquire the value of a request parameter and pass it to a setter method in a ManagedBean so that I can derive the page body from it. My simplified template looks like this :
    <?xml version="1.0" encoding="UTF-8" ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:ui="http://java.sun.com/jsf/facelets"
         xmlns:utils="http://java.sun.com/jsf/composite/utils" xmlns:f="http://java.sun.com/jsf/core">
    <!-- General Meta -->
    <f:metadata>
         <f:viewParam name="myparameter" value="#{myBean.someProperty}" />
    </f:metadata>
    <h:head>
              <title>No title here.</title>
    </h:head>
    <h:body>
         <div id="page">
              <div id="main">
                    <ui:insert name="body" />
              </div>
              <utils:navigation />
         </div>
    </h:body>
    </html>The "body", created with ui:composition, is using "myBean". But it doesn't matter because the "set" method isn't being called on the bean. Where should I put "f:viewParam" code
    to set the property of a ManagedBean if I'm using templates?
    Thank you in advance for any help.

    Problem solved.
    Found the solution to my general problem by making use of the Annotation "ManagedProperty". It only applies to request scope apparently but that is the scope where I need it.
    I found these two pages helpful.
    http://stackoverflow.com/questions/4888942/viewparam-vs-managedpropertyvalue-param-id
    http://download.oracle.com/javaee/6/api/javax/faces/bean/ManagedProperty.html

  • How to set 0 for "Nan" Value in the Column

    Hi All,
      I have 3 imp columns with name Build %,Deploy%,Validation % and I would like to set the value as "0" or "1" using formula and below is the formula . But I am getting the values as "Nan" due to that it's reflecting the
    Pivot Table & Report  which show in below 2nd image.
    And I had written formula  as "=SWITCH(EDSCIMonthlyReport[Build %] , "Nan", 0)"  to copy all the values of the Build % Field to another calculated Column and set the value "0" if found "Nan" ,But I am getting
    error as"Function 'SWITCH' attempted to compare values of incompatible types. Ensure that both values are Numeric, String, or Boolean(True/False). Consider using the VALUE or FORMAT function to convert one of the values".Can any one help me how can
    I solve this issue
    Thanks,
    Sid

    Hello Sid,
    Again TFS? The data type of the column is "text" and now you want to convert it to a numeric to use it as a measure, right?
    - First you have to change "NaN" to "0" (<= 0 as type "Text"!, see your error msg); you can do it with an IF expression
    - Then you have to remove the % sign; it's a text as well. For this you can use the SUBSTITUE function
    - Then you can convert it to a numeric using the VALUE function
    As one complete expression it will look like this:
    = VALUE(SUBSTITUTE(If(Tabelle3[Build] = "NaN"; "0"; Tabelle3[Build]); "%"; ""))
    As you can see in below screenshot PowerPivot automatically detects the data type as "Decimal"; now you can use it as a measure value.
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • Setting property  for context value attributes

    hi experts,
      created a value attribute[XYZ] in context and i want to set that value attribute type as
    com.sap.tc.webdynpro.services.session.api.IWDWindow
    From properties am not finding the above path.
    please provide the valuable information.

    hi sham,
               my question is solved.thank's for u r help
    my next task is connecting the backend  BW using jco connections.
    SingleServer
                               Host Name:
                                System Number:
                                 SAP Router:
    User Account:
                                                                              Client:
                                                                                Logon name :
                                                                                 Password:
                                                                                 language:
    where do i get  these details .is this possible to get these details from development mechine.i do have access to enterprise portal.
    Thank's&Regard's,
    Prashanth.

  • How to set condition for Characteristic values in report

    Hi Experts,
    I have a report where the service order will have 1or more part and its corresponding part status.
    I want to highlight or give some indication to those service orders where all the parts status are Part Received.
    The service order with different part status can be ignored.
    FYI: I don't have any keyfigure in my report.
    Can anyone please advice me on this.
    Thanks

    Hi Ahmed,
    You cannot achieve this using this Conditions, as the condition can be defined on a characteristic but u cannot say that for a service orders all the parts status are PART RECEIVED.
    For this kind of requirements, you need to add an Flag (Characteristic) and check in the Transformation if all the Part Status are PART RECEIVED for a Service Order and mark the Flag as 'X'.
    In the report jst filter on the flag as 'X'. It should resolve.
    Regards,
    Chathia.

Maybe you are looking for