Setting values for items other than default value

How can I set the value of Items (hidden item, display item etc) without using any of navigational control such as list, select list or tree?
I have a two report region on a page and no navigation control. the requirement is only one region should be displayed at one point of time.
Condition that drives this are passed from other page through links.
The code is like this
For Region A
select * from table a where cola = :P_VALUE_FROM_OTHER_PAGE; //value passed is JOE
For Region B
select * from table a where cola = :P_VALUE_FROM_OTHER_PAGE; //value passed is JOHNnow there is the hidden item :P_HIDDEN that i am comparing in expression1 = expression2 conditions for each region
for e.g.
for region A
value in expression1 = expression2
P_HIDDEN = 1
for region B
P_HIDDEN = 2my issue is, where can I set values for P_HIDDEN item (set to 1 and set to 2) without any navigational control on the page.
Thanks,
R
now there is the hidden item :P_HIDDEN that i am comparing in expression1 = expression2 conditions for each region
for e.g.
for region A
value in expression1 = expression2
P_HIDDEN = 1
for region B
P_HIDDEN = 2
my issue is, where can I set values for P_HIDDEN item (set to 1 and set to 2) without any navigational control on the page.
Thanks,
R
Edited by: Rich V on May 21, 2010 10:41 PM

The question I would ask is:
How are you determining which region you want to be displayed by default?
Either way, you could potentially use a 'before header' computation to calculate the value of your hidden item, although you'd also need to include some sort of conditional means of preventing the computation from running everytime to run the page (otherwise you'd never see your other region) e.g. you might only want it to run if the hidden item is null.

Similar Messages

  • Multiple line items one with default values

    Hi All
    We have a flat file coming into xi that needs to be mapped to an idoc, the idoc will have multiple line items.
    The first line item must have default values but the from the second line item and on must have dynamic value from file? How Can this be achieved?
    Regards

    Hi,
    I didnt get the the exact prb you have been facing...
    But from my understabding,
    Try giving constants for the default values of first Line Item.
    Then, directly map the file data to the second line items onwards..
    Regards,
    Swetha,

  • Can you set a graph to it's default value programmatically?

    I have a waveform graph (control on the panel). I'd like to set it back to it's default value through a property node (or something). Is there a way to do this?

    Woah slow down, you've given us 14 minutes to react. I'm not sure but has a graph not a 'reinitialize to default' method?
    And out of curiosity, what is the advantage of dynamic data over doubles/waveforms/....? I am totaly NOT familiar with them but if you can be the devils advocate it would be nice.
    Success,
    Ton
    (and yep we're all our Own worst Enemy)
    Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
    Nederlandse LabVIEW user groep www.lvug.nl
    My LabVIEW Ideas
    LabVIEW, programming like it should be!

  • Problem with setting tooltips for items of a JCombobox

    hi guys,
    I want to set tooltips for items of JComboBox & the code that i have written is given below , but the tooltip text is set for all the items of Nonitindustrycombo but the tooltips remain the same even for Nonitdesgcombo's items.
    Is that we need to refresh the ComboboxRenderer every time ?
    I am not able to trace out the exact reason for this,please if anyone can suggest me something regarding this would be of great use to me.
    class Searchpanel extends JPanel {
    String[] str = null;
    public SearchPanel(){
    Nonitindustrycombo.addItem("--Select--");
    ArrayList NonITindus = ERPModel.getAllNonitIndustry(); //gets all the items(strings) for Nonitindustrycombo
    for (Iterator iter = NonITindus.iterator(); iter.hasNext();) {
    String str = iter.next().toString();
    Nonitindustrycombo.addItem(str);
    SetTooltip(Nonitindustrycombo,NonITindus);
    Nonitdesgcombo.addItem("--Select---");
    ArrayList desg = ERPModel.getAllNonitDesg(); //gets all the items(strings) for Nonitdesgcombo
    for (Iterator iter = desg.iterator(); iter.hasNext();) {
    Nonitdesgcombo.addItem(iter.next());
    SetTooltip(Nonitdesgcombo,desg);
    class MyComboBoxRenderer extends BasicComboBoxRenderer
    public Component getListCellRendererComponent(JList list, Object value,
    int index, boolean isSelected,
    boolean cellHasFocus)
    if (isSelected)
    setBackground(list.getSelectionBackground());
    setForeground(list.getSelectionForeground());
    if (0 < (index))
    list.setToolTipText(str[index - 1]);
    else
    setBackground(list.getBackground());
    setForeground(list.getForeground());
    setFont(list.getFont());
    setText((value == null) ? "" : value.toString());
    return this;
    private void SetTooltip(JComboBox combo,ArrayList arr){
    str = (String []) arr.toArray (new String [arr.size ()]);
    combo.setRenderer(new MyComboBoxRenderer());
    public static void main(String[] args){
    new SearchPanel();
    Thanks ,
    vishal

    1) You where given a working example in your last posting on this topic. Compare your code with the working code to see whats different and fix it.
    2) The code you posted doesn't compile.
    3) You didn't use the "Code Formatting Tags" when you posted your code so it not readable.

  • Report on PO's raised for vendors other than fixed vendor

    Hi
    Is there any report which gives list of PO's which are raised for vendors other than fixed vendors
    We are maintaining sourcelist
    we need a helath report which gives list of POs in which buyer used other than fixed vendor
    Thanks

    hi,
    In sap there is no one common report availlable for this. you want to develop a customized report for this.alternate solution is  get the one time vendor list in MKVZ trx. pass the values in me1l trx where you can get the desired result.
    Regards,
    velu

  • Can we have properties value of keyfieldvalue more than one value?

    Hi all,
    Regards File content conversion that we can have properties value of keyfieldvalue more than one value?
    like a...
    row.keyFieldValue = 'aa','bb'
    I try define the value like this but I'm getting the error.
    Thanks and Regards
    Park

    Hi Park ,
    There is an option of specifying generic modules for every adapter that is configured in the communication channel to modify the payload of an XI message . These modules equip the adapters with additional functions.
    Please have a look upon the link :
    http://help.sap.com/saphelp_nw04/helpdata/en/84/2e3842cd38f83ae10000000a1550b0/content.htm
    I hope you can Module :'MessageTransformBean' .
    *Pls: Reward points if helpful*
    Regards,
    Jyoti

  • Resolv.conf's nameserver on other than default port

    Recently i've found out that it's not so easy to use port other than default (53) in DNS client specified in /etc/resolv.conf file, like
    nameserver IP.OF.DNS.SERVER:20
    where 20 is a number of the port.
    Is it even possible?
    Fast search returns it is not, in whole linux's world :-). Also not in Solaris, not in Mac, not in FreeBSD. But it is possible in OpenBSD.
    I have been thinking - what? why? why such an easy thing (at the first sight) to implement isn't done?
    It looks like i need some additional stuff like bind to make it right <sigh>
    Or maybe i'm wrong here?
    I would be very gratefull for any additional info on this topic

    If I understand you correctly, you are going to set up a nameserver outside of your firewalled network (listening on a non-standard port), and you want to have your arch box be able use it from within the network?
    This isn't a direct fix, but as a workaround, you can use pdnsd as a caching proxy, and it can be configured to query the remote server on whatever port you choose by adding
    port = your_port_goes_here
    in the server section of the pdnsd config file. Once you have it all set up, simply have your resolv.conf point to 127.0.0.1
    Hope this helps
    Last edited by b4data (2011-12-11 14:51:31)

  • Error that "specify a value for variable posting period (single value entry

    hi
    My query is running testing fine in RSECADMIN under some username..but when i try and open it using analyzer (under same username) it gives me error that "specify a value for variable posting period (single value entry, mandatry)" it does'nt even asks to enter variable values and gives this error message.
    However the same query appears to be working fine under different username.
    plz advise.

    Hi Abhinav,
    Just do one thing compare the Roles of two different users for which Query is getting executed and not.
    Check the Object S_RFC.
    Compare the Objects detail for Both the Users.
    Please Assign points if useful.
    Regards,
    Rajdeep.

  • Error in saving customer information. Value for contact_point_purpose must be a value defined in lookup type CONTACT_POINT_PURPOSE.

    I was trying to create a text alert. I was calling following in jsp
    email.setContactPointPurpose(myLookUpCode); //say XXMY_SMS_SHIP
            PartyManager.createEmail(email, ApiConstant.CONTACT_POINT);
    Getting following exception:
    Error in saving customer information.
    Value for contact_point_purpose must be a value defined in lookup type CONTACT_POINT_PURPOSE.
    Error trace:
    oracle.apps.ibe.customer.CustomerException: Error in saving customer information. at oracle.apps.ibe.tcav2.Email.create(Email.java:187) at oracle.apps.ibe.tcav2.PartyManager.createEmail(PartyManager.java:116) at _oa__html._myfile__ibeMyFile._jspService(_myfile__ ibeMyFile.java:908) at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119) at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417) at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267) at oracle.jsp.JspServlet.internalService(JspServlet.java:186) at oracle.jsp.JspServlet.service(JspServlet.java:156) at javax.servlet.http.HttpServlet.service(HttpServlet.java:588) at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456) at org.apache.jserv.JServConnection.run(JServConnection.java:294) at java.lang.Thread.run(Thread.java:662) Caused by: oracle.apps.jtf.base.resources.FrameworkException: Value for contact_point_purpose must be a value defined in lookup type CONTACT_POINT_PURPOSE. at oracle.apps.jtf.util.ErrorStackUtil.getFrameworkException(ErrorStackUtil.java:104) at oracle.apps.jtf.util.ErrorStackUtil.getDBFrameworkException(ErrorStackUtil.java:141) at oracle.apps.ibe.tcav2.Email.create(Email.java:185) ... 11 more Error in saving customer information. oracle.apps.jtf.base.resources.FrameworkException: Value for contact_point_purpose must be a value defined in lookup type CONTACT_POINT_PURPOSE. at oracle.apps.jtf.util.ErrorStackUtil.getFrameworkException(ErrorStackUtil.java:104) at oracle.apps.jtf.util.ErrorStackUtil.getDBFrameworkException(ErrorStackUtil.java:141) at oracle.apps.ibe.tcav2.Email.create(Email.java:185) at oracle.apps.ibe.tcav2.PartyManager.createEmail(PartyManager.java:116) at _oa__html._myfile__ibeMyFile._jspService(_myfile__ ibeMyFile.java:908) at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119) at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417) at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267) at oracle.jsp.JspServlet.internalService(JspServlet.java:186) at oracle.jsp.JspServlet.service(JspServlet.java:156) at javax.servlet.http.HttpServlet.service(HttpServlet.java:588) at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456) at org.apache.jserv.JServConnection.run(JServConnection.java:294) at java.lang.Thread.run(Thread.java:662) Value for contact_point_purpose must be a value defined in lookup type CONTACT_POINT_PURPOSE.

    Tried this but it is giving the below error
    APP-FND-01242: Cannot read value from field PER_ASSIGNMENT_ID
    Cause: The field PER_ASSIGNMENT_ID could not be located or read.
    Action: This error is normally the result of an incorrectly-entered field name string in a trigger, or a field name string that does not uniquely specify a field in your form. Correct your trigger logic to precisely specify a valid field.

  • Use printer other than default?  how to hard code it?

    Is it possible to make application to use specific printer but other than default? may be hard code it into application code?
    For example I know the name of print service(the PATH to configured printer) and I want my application to use THAT printer most of the time. how can make it so that my application uses one printer which is other than default..
    printDialog is not a good solutionin in my case I think because user might have 15 printers configured on his machine! and I do not want him to scroll PrintServices combobox looking for needed printer... why not show only 2 or printers out of 15?
    or in my case I think it is even better to hard code couple of configured printers in an application code so that I user does not get tired of working with printDialog window every time he needs to print. When my application is released to client it will be used especially for printing porposes of one particular document so he does not need to see margins and printer settings everytime.

    Basically the print dialog should offer this function without you having to code it. I don't know on Windows but on my Mac you can select printers other than default and get the computer to remember them.

  • Creating dictionary project in other than default datasource

    I want to create a dictionary project in other than default datasource . Every time I create a dictionary project and create archive and deploy it ...It creates tables in SAP default datasource MAXDB . I have created another datasource pointing to MSSQL in visual admin . I want dictionary project to be deployed to this datasource without making MSSQL  as default datasource . Can anyone please let me know how to do this ?
    Thanks in advance
    Bhat

    Hi Alka,
    from your post, it is not entirely clear to me what you are atempting to do.
    1) Do you need help with accessing tables in a non-default schema?
    2) Do you want to determine all tables in the default schema?
    If 1), please follow the hints given by Vladimir Pavlov.
    If 2), currently, the method DatabaseMetaData.getTables() is unfortunately not supported in Open SQL/JDBC. We are currently preparing a new download of the NetWeaver Java EE 5 edition. In this version, the getTables() method will be supported.
    Or do you just want to check for the existence of a specific database table in the default schema?
    I hope this helps,
    Best regards,
    Adrian

  • How to install adobe X or XI in a directory other than default.

    Please,
    I need install Adobe reader in a diferent directory of default.
    How to install adobe X or XI in a directory other than default.
    best Regards.

    What OS? Why are you trying to install i a different directory. No matter what directory you install in, quite a bit must be installed on the boot drive. If you are running out of hard drive space, it is time to get a new hard drive.

  • Hi gurur's in BDC for recording other than SHDB any process is there

    hi gurur's in BDC for recording other than SHDB any process is there

    Hi,
    I think as such there is no other process. You can do the recording through transaction SM35 as well, go there and click on new recording. You can do the recording this way also but this is not different from SHDB.
    Reward if this clarifies your doubt.
    Regards,
    Lalit Kabra

  • HT5457 Cannot get ringtones other than default ringtones since downloading ios 6

    Cannot get ringtones other than default ringtones since downloading ios6

    I should also mention that I tried the posted trick of changing the year to 2013 and attempting to update or download apps. Yeah... that doesn't work.

  • My macbook fell off the couch and now everything on the display is double and slightly transparent. Is there a fix for this other than getting it replaced?

    My macbook fell off the couch and now everything on the display is double and slightly transparent. Is there a fix for this other than getting it replaced?

    Only an Apple Store or an authorized Apple Service Provider can determine if a repair is economically justifiable. It may be as simple as a dislodged display cable.

Maybe you are looking for

  • Flash Builder Design Mode Bug Workaround (!!!)

    I've been fighting this annoyance since FB4 came out, and while I still don't think that custom/embedded fonts in design view are fixed by this, I've been able to reproduce this "fix" (workaround) to get design view to show fonts/theme correctly unde

  • Logitech MX900 Mouse & Solaris 10 x86 results in "Postattach failed for..."

    This USB-Mouse will not work with Solaris 10. I have the bluetooth-set Logitech DiNovo keyboard and MX900 mouse. As seen in the following logfile, the keyboard is recognized and the device is created, but the mouse fails. So i have to use my old dust

  • Pricing for Commission agent

    Dear Gurus, FYI..I have already referred all the SDN threads before posting this. I'm dealing wiht the normal commission agent commission payment. Now i have created a commission agent as vendor master in XK01 and a Z-commission cond type assigned to

  • Default Errors= ORA-00904: invalid column name

    Hi, I nto expert in plsql , whenever i'm trying to run procedure or function mostly i got this same error and even i didn't view the error using show errors , show errors procedure|function name CREATE OR REPLACE PROCEDURE SEND_MAIL ( ERROR at line 1

  • Problem in displaying data in JTextArea

    Please help solve my problem regarding the JTextArea. I have two classes, Destination and AddRegistration class which both extends the JPanel. In the Destination class, there are three radiobuttons, when I click on this, I want the item to be display