Setting iView Parameters

Hello,
I have an issue with setting iView Parameters. I do the following:
response.write("Converting...<br/>");
                              iiv.putAttribute("ApplicationParameter","queryid="+request.getParameter("queryid"));
                              try
                                   iiv.save();
                                   iiv.notifyAll();
                              }catch (ValidationException ve)
                                   response.write(ve.toString());
                              catch (IOException ie)
                                   response.write(ie.toString());
However, when I see the iView properties in the portal the value is not changed. When reading the value programatically, it is changed. Are there two of them or do I have a caching issue here?
I already tried clearing browser cache and so forth, but problem remains.
My code is supposed to change iView-ApplicationParameters..

Hi,
I found all information I needed in help.sap.com.
So I wrote a little portal component to update a custom iview parameter and it is working fine for me.
Here's my code:
Sharing References:
<property name="SharingReference" value="com.sap.portal.ivs.api_iview,com.sap.portal.pcd.glservice,com.sap.portal.pcm.admin.apiservice"/>
Custom Parameter in portalapp.xml
<component-profile>
<property name="AuthScheme" value="anonymous"/>
<property name="MTAGCustom" value="Test"/>
</component-profile>
and my Java Code to update(change the value:
Imports:
import java.io.IOException;
import java.util.Hashtable;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
import com.inqmy.lib.xml.parser.dtd.ValidationException;
import com.sap.portal.directory.Constants;
import com.sap.portal.pcm.admin.PcmConstants;
import com.sap.portal.pcm.iview.IiView;
import com.sapportals.portal.pcd.gl.IPcdContext;
Code Snippet:
Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY,IPcdContext.PCD_INITIAL_CONTEXT_FACTORY);
env.put(Context.SECURITY_PRINCIPAL, request.getUser());
env.put(Constants.REQUESTED_ASPECT, PcmConstants.ASPECT_SEMANTICS);
InitialContext iCtx = null;
try
  String iViewID = "pcd:portal_content/com.mtag.test/com.mtag.testcomponent";
  iCtx = new InitialContext(env);
  IiView myIView =(IiView)iCtx.lookup(iViewID);
  myIView.putAttribute("MTAGCustom","newValue");
  myIView.save();
  myIView.notifyAll();
} catch(Exception Ex) {
  Ex.printStackTrace();
I deployed the component and create an IView from PAR. I started the iView in Preview Mode and the Custom Parameter "MTAGCustom" now has the new Value "newValue"
Let me know if it helps (Reward Points are appreciated if helpful
Cheers

Similar Messages

  • Unable to set  kernel parameters using solaris 10

    HI,
    I'm trying to install DB2 8.2 on solaris 10.the problem i'm encountering in installation is unable to set MSGMAX and MSGMNB kernel parameters. I tried setting the new replacement parameter process.max-msq-qbytes through projects->Resource Control from the management console.but still uinable to set the parameters.
    Can anyone help me in setting the above kernel parameters.
    Its not possible to set it thru /etc/system.
    thanx
    guru

    HI,
    I'm trying to install DB2 8.2 on solaris 10.the problem i'm encountering in installation is unable to set MSGMAX and MSGMNB kernel parameters. I tried setting the new replacement parameter process.max-msq-qbytes through projects->Resource Control from the management console.but still uinable to set the parameters.
    Can anyone help me in setting the above kernel parameters.
    Its not possible to set it thru /etc/system.
    thanx
    guru

  • Unable to set kernel parameters using Reource Control

    HI,
    I'm trying to install DB2 8.2 on solaris 10.the problem i'm encountering in installation is unable to set MSGMAX and MSGMNB kernel parameters. I tried setting the new replacement parameter process.max-msq-qbytes through projects->Resource Control from the management console.but still uinable to set the parameters.
    Can anyone help me in setting the above kernel parameters.
    Its not possible to set it thru /etc/system.
    thanx
    guru

    I finally had some time to find the actual syntax for tuning process.max-msq-qbytes and process.max-msg-messages. prctl will change those paramaters for an existing process.
    As a proof of concept I changed process.max-msg-messages to a 64k. process 2221 is my shell.
    prctl -n process.max-msg-messages  -r -v 64k 2221
    bash-3.00# prctl 2221
    process: 2221: -csh
    NAME    PRIVILEGE       VALUE    FLAG   ACTION                       RECIPIENT
    process.max-port-events
            privileged      65.5K       -   deny                                 -
            system          2.15G     max   deny                                 -
    process.max-msg-messages
            privileged      64.0K       -   deny                                 -
            system          4.29G     max   deny                                 -
    process.max-msg-qbytes
            privileged      64.0KB      -   deny                                 -
            system          4.00GB    max   deny                                 -And now to make this persist across reboots...
    So long as I'm experimenting, I'll use projadd and add a new project which just includes me and not the rest of the users in the group staff.
    bash-3.00# projadd -p 115 -U testuser \
    -K "process.max-msg-messages=(priv,64K,deny)" \
    -K "process.max-msg-qbytes=(priv,64K,deny)" \
    user.me This creates the following /etc/project:
    (note the last line is all on one line in the real file minus the \.)
    placer% cat /etc/project
    system:0::::
    user.root:1::::
    noproject:2::::
    default:3::::
    group.staff:10::::
    user.me:115::testme::\
    process.max-msg-messages=(priv,64000,deny);process.max-msg-qbytes=(priv,65536,deny)After a reboot I checked the values by loging in under my user and running prctl.
    placer% prctl $$
    process: 419: -csh
    NAME    PRIVILEGE       VALUE    FLAG   ACTION                       RECIPIENT
    process.max-port-events
            privileged      65.5K       -   deny                                 -
            system          2.15G     max   deny                                 -
    process.max-msg-messages
            privileged      64.0K       -   deny                                 -
            system          4.29G     max   deny                                 -
    process.max-msg-qbytes
            privileged      64.0KB      -   deny                                 -
            system          4.00GB    max   deny                                 -
    process.max-sem-ops
            privileged        512       -   deny                                 -
            system          2.15G     max   deny                                 -
    ...Solaris 10 has different tunables and default values from 8 and 9. It's default tunables should be good for most applications per a given system's hardware. There are some great blog articles, and discussions on opensolaris.org and blogs.sun.com on tuning that explain the intent of tuning and why we shouldn't have to tune.
    Cheers,
    ~~sa

  • Unable to set kernel parameters using Reource Control in solaris 10

    HI,
    I'm trying to install DB2 8.2 on solaris 10.the problem i'm encountering in installation is unable to set MSGMAX and MSGMNB kernel parameters. I tried setting the new replacement parameter process.max-msq-qbytes through projects->Resource Control from the management console.but still uinable to set the parameters.
    Can anyone help me in setting the above kernel parameters.
    Its not possible to set it thru /etc/system.
    thanx

    HI,
    I'm trying to install DB2 8.2 on solaris 10.the problem i'm encountering in installation is unable to set MSGMAX and MSGMNB kernel parameters. I tried setting the new replacement parameter process.max-msq-qbytes through projects->Resource Control from the management console.but still uinable to set the parameters.
    Can anyone help me in setting the above kernel parameters.
    Its not possible to set it thru /etc/system.
    thanx

  • Using SET GET parameters in ITS

    Hi All,
    Is it possible to use set get parameters in ITS. We want to set some parameters in a BADI and read the value in ITS Template .
    Or is there any other method to do this?
    Thanks,
    Anubhav

    Sure. In your abap program use the following code
    *  ITS macros
    INCLUDE avwrtcxm.
    GET PARAMETER ID 'YOUR_PARAMETER' FIELD SAVE_PARAMETER.
    field-set u2018~YOUR_PARAMETERu2019 1 SAVE_PARAMETER.
    field-transport.
    in the template you can now use ~YOUR_PARAMETER.
    regards,
    Klaus
    Edited by: Klaus Layer on Feb 3, 2009 5:05 PM

  • Problem with SET GET parameters

    Hi all,
    I am facing a problem using SET and GET parameters.
    There is a Z transaction(Dialog program) where some fields of screen are having parameter ID's. That transaction is designed to diaplay/change status of only one inspection lot at a time.
    Now I need to call that transaction in a loop using BDC. I mean i need to update the status of multiple inspection lots(one after the other). Before calling the transaction I am using
    SET PARAMETER ID 'QLS' FIELD lv_prueflos.
    Unfortunately the transaction is only changing the first inspection lot. When I debugged I found that the screen field is changing in PAI. Even though in PBO it shows the next value, when it goes to PAI it is automatically changing to the first value(inspection lot).
    Example: Inspection Lots : 4100000234
                                               4100000235
                                              4100000236
    Now first time when the call transaction is being made the status of insp lot 4100000234 is changed. For the second time when insp lot 4100000235 is being passed in PBO ican see this. But the moment it enters PAI the screen field changes to 4100000234.
    Could you pls help me in solving this issue.
    Thanks,
    Aravind

    Hi,
    Problem with SET GET parameters
    Regarding on your query. Follow this below link.
    It will help you.
    Re: Problem with Set parameter ID
    Re: Problem in Set parameter ID
    I Hope it will helps to you.
    Regards,
    Sekhar

  • How to use SET & GET Parameters in Module Pool

    Hi Friends,
    Can anyone please tell how to use SET / GET parameters and PARAMETER ID for a text box (Input / Output field ) in module pool? What is the purpose and where do we need to do coding for it?
    Note : I will definitely give the marks for good responses.
    Thanks in advance,
    Pradeep

    Hi Pradeep,
    You can save values in the SAP memory using a parameter ID. These
    are user and terminal-session specific, but available to all internal and
    external sessions.
    SET Parameter copies the corresponding field contents into the SAP
    System memory in the PAI processing block.
    GET Parameter copies the corresponding field contents from the SAP
    memory at the end of the PBO processing block, after data has been
    transferred from the program, if the screen field still has its initial value
    You can link an input/output field to an area of the SAP memory in the
    ABAP Dictionary.
    When you use an input/output field that is defined in the ABAP
    Dictionary, its parameter ID is displayed in the Dictionary attribute
    Parameter ID in the Screen Painter.
    Usage
    SET PARAMETER ID: ’CAR’ FIELD space,
    ’CON’ FIELD space,
    ’DAY’ FIELD space.
    Here is the link that explains the usage of GET/SET in detail
    <a href="http://help.sap.com/saphelp_erp2005vp/helpdata/en/9f/db9e0435c111d1829f0000e829fbfe/content.htm">http://help.sap.com/saphelp_erp2005vp/helpdata/en/9f/db9e0435c111d1829f0000e829fbfe/content.htm</a>
    Regards,
    Sharadha

  • Problem in setting the parameters for an OASingleSelectionBean

    Hi,
    I have created an advanced table, for which I have to allow single selection or mutliple selection according to my requirements ie dynamically. So, for single selection, I have created a OASingleSelectionBean dynamically and add this to my advanced table bean.
    I also want to set Action for the single selection option. I have set the action using
    setPrimaryClientAction() which takes an argument of oracle.cabo.ui.action.FirePartialAction class. Now I also want to pass certain parameters when the single selection event happens.
    For that, I have taken an object of FirePartialAction class and but using the FirePartialAction class .setParameters(oracle.cabo.ui.collection.Parameter[]) function. I am setting the parameters using
    Parameter class object.setKey
    Parameter class object.setValue
    But my problem is that I want the value for the parameters at runtime, for which I intend to use SPEL. But I am not able to use SPEL using the setValue method.
    So it goes like this in short:
    OAAdvancedTableBean.setTableSelection(OASingleSelectionBean)
    OASingleSelectionBean.setPrimaryClientAction(FirePartialAction)
    FirePartialAction.setParameters(Parameter[])
    Parameters.setKey(String)
    Parameters.setValue(String) --- In case of value I want to give SPEL as an argument as I get the value at rutime
    Is that any other way in which I can set the value for the parameters using SPEL?

    Hi,
    I got ur point.
    Although i have never tried.........Can you try using method
    Parameters.setValueBinding(new OADataBoundValueViewObject(<single selectionbean>,<vo attr>))
    In this way without the use of SPEL, you will be able to achieve the functionality!
    Try this and get back to me!
    --Mukul
    Message was edited by:
    Mukul Gupta

  • How does one set databse parameters in Tomcat to run a servlet?

    Hi, I am trying to run a applet-servlet code, downloaded from the web. According to the installation instructions, the following is stated:
    Database Parameters. You can provide different database parameters to the servlet. These parameters are set during the administration of the servlet.
    dbDriver - name of the database driver class name (default = sun.jdbc.odbc.JdbcOdbcDriver)
    dbURL - complete database URL (default = jdbc:odbc:StudentDatabase)
    userid - user id (default = <none>)
    passwd - password (default = <none>)
    I am running TOMCAT on a Windows2000 machine. My question is how to does one set the parameters in TOMCAT. What is the default userid and password for TOMCAT.
    Any help/advise is appreciated in advance. Thanks.Regards.

    May be parameters must be set in web.xml in your war

  • How to use URL iview parameters??

    Hi all,
    i have created a URL iview  to www.gmail.com, now my requirement is i dont want to give user id and password and it should logged me in directly so for that i need to make use of URL iview parameters, but i am not aware of how to use it, can anybody help me to resolve this issue??
    Thanks in advance,
    Regards,
    Ameya.

    Hi Ameya,
    Basically, you need to create a HTTP system, then create a URL Iview giving this http system as a reference in it.
    Check this <a href="https://www.sdn.sap.com/irj/sdn/thread?threadID=389042">thread</a> for details.
    You can also refer to
    <a href="http://help.sap.com/saphelp_nw70/helpdata/en/f5/eb51730e6a11d7b84900047582c9f7/frameset.htm">SAP Help Library</a>
    cheers~
    avadh

  • Restricting the no. of entries in the result set iView

    Hi,
    Is there a way to restrict the no. of entries in the Result set iView.
    Whenever I create a result set iView , it gets loaded with all the entries of the search table it is associated with.
    Is there a way to restrict to say 5 or 6 entries.
    Best Regards
    Sid

    k

  • How to set oracle parameters

    Hi all,
    how to set oracle parameters in my sap 4.7 server. I need to know the procedure of parameter tune.
    Regards,.
    satish.
    Edited by: satish k on Jun 17, 2008 5:07 AM

    Hi
    Please try this link.
    http://oracle.basisconsultant.com/oracle_tuning_parameters.htm
    http://www.orafaq.com/wiki/Oracle_database_Performance_Tuning_FAQ
    But before doing this, check for all the probabilities as it requires lots of data and traces to do the parameter tuning.

  • How to Set NLS parameters in SqlDeveloper for current and future connection

    Hi
    I've downloaded sqldeveloper version 1.5.4(build main-5940)
    when I try to set NLS parameters as following it is thrwoing following error
    TOOLS->PREFERENCES->DATABASE-->NLS parameters
    on right side pane
    I've changed
    SORT----->BINARY_CI
    COMP----->LINGUISTIC
    then it is generating following log file
    SEVERE     43     0     oracle.dbtools.raptor.nls.OracleNLSProvider     Error loading nls:ORA-00600: internal error code, arguments: [qctosop:like transform], [], [], [], [], [], [], []
    SEVERE     44     114     oracle.dbtools.raptor.nls.OracleNLSProvider     Error loading nls:Closed Connection
    SEVERE     45     7     oracle.dbtools.db.DBUtil     Closed Connection
    SEVERE     46     9     oracle.dbtools.db.DBUtil     
    SEVERE     47     1     oracle.dbtools.raptor.nls.OracleNLSProvider     Error loading nls:Closed Connection
    SEVERE     48     0     oracle.dbtools.raptor.nls.OracleNLSProvider     Error loading nls:Closed Connection
    SEVERE     49     5     oracle.dbtools.db.DBUtil     Closed Connection
    SEVERE     50     0     oracle.dbtools.db.DBUtil     
    SEVERE     51     1     oracle.dbtools.raptor.nls.OracleNLSProvider     Error loading nls:Closed Connection
    SEVERE     52     0     oracle.dbtools.raptor.nls.OracleNLSProvider     Error loading nls:Closed Connection
    SEVERE     53     5     oracle.dbtools.db.DBUtil     Closed Connection
    SEVERE     54     0     oracle.dbtools.db.DBUtil     
    SEVERE     55     0     oracle.dbtools.raptor.nls.OracleNLSProvider     Error loading nls:Closed Connection
    SEVERE     56     1     oracle.dbtools.raptor.nls.OracleNLSProvider     Error loading nls:Closed Connection
    SEVERE     57     4     oracle.dbtools.db.DBUtil     Closed Connection
    SEVERE     58     0     oracle.dbtools.db.DBUtil     
    SEVERE     59     1     oracle.dbtools.raptor.nls.OracleNLSProvider     Error loading nls:Closed Connection
    SEVERE     60     0     oracle.dbtools.raptor.nls.OracleNLSProvider     Error loading nls:Closed Connection
    SEVERE     61     4     oracle.dbtools.db.DBUtil     Closed Connection
    SEVERE     62     1     oracle.dbtools.db.DBUtil     
    SEVERE     63     0     oracle.dbtools.raptor.nls.OracleNLSProvider     Error loading nls:Closed Connection
    SEVERE     64     0     oracle.dbtools.raptor.nls.OracleNLSProvider     Error loading nls:Closed Connection
    SEVERE     65     5     oracle.dbtools.db.DBUtil     Closed Connection
    SEVERE     66     0     oracle.dbtools.db.DBUtil     
    SEVERE     67     0     oracle.dbtools.raptor.nls.OracleNLSProvider     Error loading nls:Closed Connection
    SEVERE     68     0     oracle.dbtools.raptor.nls.OracleNLSProvider     Error loading nls:Closed Connection
    SEVERE     69     6     oracle.dbtools.db.DBUtil     Closed Connection
    SEVERE     70     0     oracle.dbtools.db.DBUtil     
    SEVERE     71     0     oracle.dbtools.raptor.nls.OracleNLSProvider     Error loading nls:Closed Connection
    SEVERE     72     0     oracle.dbtools.raptor.nls.OracleNLSProvider     Error loading nls:Closed Connection
    please help me to set NLS parameters for current and future connections.
    thanks,
    harry

    Hi -K-
    actually I want to make SqlDeveloper to make case insensitive search.
    when I google, I've found to make oracle as case insensitive I need to set NLS_SORT to Binary_CI and NLS_COMP to LINGUISTIC
    Default SQLDEVELOPER NLSParmeters values are as NLS_SORT---->Binary and NLS_COMP--->Binary
    Now I want to make these as NLS_SORT---->Binary_CI and NLS_COMP--->LINGUISTICS.
    thanks,
    harry

  • How to set single parameters for two tables?

    SELECT GM.GRNNO,GM.GRNDATE,SUM(GS.APPROVED),SM.ISSUENO,SM.ISSUEDATE,GS.ITEMCODE,SUM(SS.ISSUEDQTY)
    FROM IMS_GRNM GM,IMS_GRNS GS, IMS_ISSUEM SM, IMS_ISSUES SS
    WHERE GM.GRNMSERIAL=GS.GRNSSERIAL
    AND SM.ISSUEMSERIAL=SS.ISSUESSERIAL
    AND GM.POSTED='T'
    AND SM.POSTED='T'
    AND GS.ITEMCODE=SS.ITEMCODE
    AND GS.ITEMCODE='01-01-02-019'
    AND *******
    GROUP BY GM.GRNNO,SM.ISSUENO,GM.GRNDATE,SM.ISSUEDATE,
    GS.ITEMCODE ORDER BY GM.GRNDATE,SM.ISSUEDATE;
    ******* here i have to select the data from both the tables between two parameters named :P_1 and :P_2.
    the date column in IMS_GRNM is named as GRNDATE.
    the date column in IMS_ISSUEM is named as ISSUEDATE.
    how to set such parameters???

    I think all you need is
    Where table1.column1 between :p1 and :p2
    and table2.column2 between :p1 and :p2

  • How to know setting iview name to use multi language(ex, english,japan)?

    how to know setting iview name to use multi language(ex, english,japan)?
    We want use multi language when create iview.
    ivew name english version
    ivew name japan version
    ivew name korean version

    Hi Joohyun,
    you can translate the PCD objects (like iViews etc) with the portal's translation mechansim, see http://help.sap.com/saphelp_erp2004/helpdata/en/74/641640b7b6dd5fe10000000a155106/frameset.htm
    Hope it helps
    Detlev
    PS: Please consider rewarding points for helpful answers on SDN. Thanks in advance!

Maybe you are looking for

  • How to create individual icons in forms 6i

    hi, can anybody give me a hint to create nice-looking buttons/icons in forms 6i ? i tried to create/convert bmp´s, jpg´s, gif´s in *.ico (32 x 32 pixel), but the result´s looking very bad in runtime. forms enlarge it in such a way that i can only see

  • OEL 6.1 -- How to set root password?

    Hi all, Maybe it's a silly question, but I'm new to OEL, and this 6.1 install is the first time I've installed OEL. Everything seemed to go perfectly smoothly, but the installer never prompted me to enter a root password, and now I've got a system th

  • Syslog file size is growing

    Hi , I have a Cisco Work Server (LMS 2.6 Version ) in which syslog.log file is growing like anything.Earlier it use to grow around 500MB to 1GB Per day.Since last one week its growing around 6 to 7 Gb per day.I am moving the syslog file through Logro

  • Permissions problems with PS CS5

    I just installed the PS CS5 trial. It opens fine, but when I attempt to switch workspaces I get this message: Could not apply the workspace because the file is locked or you do not have the necessary access privileges. Use the 'Get Info' command in t

  • BiDi Text in Presentation Chart View

    I have a problem with viewing any text which is supposed to be right-to-left (I use Hebrew) in the chart view (which is built in flash). Every Hebrew text i have there (table data, column names etc) is reversed and I can't get it to show the correct