Urgent!! How to publish a session Info Object once and pass it to sevaral forms

Hi , I am using JDev 3.1. I have this problem when i create several forms in Jdev, where the wizard adds a sessionInfo object for each form. It also publishes them on the Infobus every time the form is called.I tried to use 1 marster sessionInfo Object from a marster form publish it there and then pass it to the other forms, but then the rowsets don't work propally. I f any one has any ideas please post as soon as possible.

We do have a FAQ, and the topic is part of the FAQ. Unfortunately, it seems that the FAQ is not yet available on OTN. In the meantime, I'll post some of the content here which may be useful:
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>
Q
How do I share database information across multiple Frames?
A
This describes using a SDI with multiple frames that share common database information (for example, a master-detail application
based on Dept-Emp where Dept information is dispayed in one frame, and Emp in another). For help in constructing an MDI
application, please refer to the JDeveloper documentation.
1.Create an empty project
2.Add a class to this project (this class will contain the SessionInfo, RowSetInfo, AttributeInfo)
3.Switch to Design mode for this class, and create the SessionInfo and RowSetInfos for your application by selecting the
appropriate object from the Component Palette, then clicking in the Structure Pane.
4.Set the properties of these objects as normal.
5.Create an Application with an empty Frame
6.In design mode, drop the desired controls into the Frame.
7.You can set all the properties for these controls as usual except for the properties that bind the control to a datasource. To bind
the controls to a datasource, switch to Source mode and add the appropriate code, for example:
textFieldControl1.setDataItemName("infobus:/oracle/sessionInfo1/rowSetInfo1/Deptno");
8.Repeat steps 6 and 7 for the second Frame.
9.Modify the Application to instantiate the class that contains the database information, and optionally to display the second
Frame (you may want to use a button on Frame1 that shows Frame2 instead).
Note that if you wish to access the methods of the database information objects programmatically, you may need to make the objects
public static.
<HR></BLOCKQUOTE>
Also in regards to Ali's comment that executing all these queries when the app starts, you may be interested in the following:
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>
Q
How do I delay the execution of one or more queries?
A
By default, all queries being used by RowSetInfos in your application are executed when SessionInfo.PublishSession() is invoked.
There are two methods to potentially improve the performance of your DAC application if your queries return a large number of
rows.
1) As a workaround, you can dynamically alter the Where clause of your queries so that fewer rows (or no rows) are retrieved
initially. For example, include the condition 1=2 in the Where clause. Then, based on some interaction from the user, you can set a
"real" where clause condition. For information on dynamically altering the Where clause, see the appropriate FAQ.
2) A slighter cleaner method is to delay the association and subsequent publishing of the RowSetInfo until AFTER
SessionInfo.publishSession() is invoked. The following illustrates the order in which the key steps would be performed:
1.define the all RowSetInfo objects and their attributes
2.parent any RowSetInfo whose queries should be executed immediately to the SessionInfo object
3.publish the SessionInfo
4.parent any RowSetInfo objects whose queries should be delayed to the SessionInfo object
5.when appropriate, publish the RowSetInfo using RowSetInfo.publishRowSet(true)
<HR></BLOCKQUOTE>
And, finally, the above makes reference to a FAQ for how to dynamically set the where clause:
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>
Q
How do I dynamically alter the Where clause of a RowSet?
A
There are two ways to accomplish this task. You can either call the setWhereClauseCondition on the RowSet, or you can use bind
variables. Both of the samples below assume a TextField named textSearch in which the user has entered a search value.
void buttonSearch_actionPerformed(ActionEvent e) {
// Two ways of "refreshing" the RowSet with condition specified by user
// Note that both samples use AttributeInfo.getColumnName() to get the appropriate
// format of the column name which differs depending on whether the VO uses "Expert mode"
// Example using dynamically created condition
rowSetInfo1.setQueryCondition(NamerowSetInfo1.getColumnName() + " LIKE '" + textSearch.getText() + "%'");
// Example using bind variable in condition (Note that the VO and its associated views must use ? style parameters)
rowSetInfo1.setQueryCondition(NamerowSetInfo1.getColumnName() + " LIKE ?");
rowSetInfo1.setQueryConditionParams(new Object[] {textSearch.getText() + "%"});
// Execute the query in either case...
rowSetInfo1.executeQuery();
<HR></BLOCKQUOTE>
I hope this helps!!!
-- Brian
null

Similar Messages

  • How to extract text of info object

    how to extract text of info object ?
    Example text of project defination from 0PROJECT

    Hi Siri,
    I think you can't display the text element if you display the data in the dso.
    In the dso, you will see only the key part.
    So you don't have to load the infoobject text into the DSO, you just have to load the infoobject.
    In Bex you have the option to see either key,text or both.
    Refet the below thread for details.
    Link: [Loading Master Data Text to DSO.;
    Hope it helps you in clearing your doubt.
    Regards,
    Nikhil Joy

  • How to locate only inactive info objects

    How to locate only inactive info objects..The table RSDIOBJ contains all the versions (M,A,D). If the objects presents in both the version( A, M) , i need not to retrieve...I need to retrieve only the objects in M but not in A. how to fetch?

    Hi
    First fetch all the objects from the table RSDIOBJ into ITAB  where OBJVERS = 'M'.
    then fetch the all objects with OBJVERS = 'A'  into ITAB1.
    loop at ITAB.
    read ITAB1 with key .. = itab-f1.
    if sy-subrc = 0.
       delete itab index sy-tabix.
    endif
    endloop.
    Now ITAb will have only the Objects with Version M but not with A.
    Reward points if useful
    Regards
    Anji

  • My computer froze during match initial formatting.  Now some songs are uploaded others are "greyed out."  If I go song by song, I can update match.  How can I do this all at once and also update album art?

    My computer froze during match initial formatting.  Now some songs are uploaded others are "greyed out."  If I go song by song, I can update match.  How can I do this all at once and also update album art?

    Hi gdogk,
    If there was an interruption during the initial iTunes Match process and you are now having issues with playback and album art, you may find the troubleshooting steps outlined in the following article helpful. In particular, you may want to turning iTunes Match off, then back on again, as noted here:
    If iTunes Match is already enabled on your computer or device, try turning iTunes Match off and then on again.
    Mac: While holding down the option key, choose Store > Turn Off iTunes Match.
    Turn iTunes Match on by selecting Store > Turn On iTunes Match.
    Windows: While holding down the shift key, choose Store > Turn Off iTunes Match.
    Turn iTunes Match on by selecting Store > Turn On iTunes Match.
    How to troubleshoot iTunes Match - Apple Support
    Regards,
    - Brenden

  • How to load data from info object to ODS

    Hello BW Gurus,
    Is their any way to load data from info object to ODS and I am unable to fine the Info source for that particulate info object master data.
    For ex: we have 0PROFITCENTER as info object which is getting loaded everyday. We want same data in ODS too but I don't find any info source related to this info object to create update ruled.
    Please advise me how to proceed with this,
    Thanks,
    Swathi.

    hi Swathi,
    as mentioned, if you just need the master data text or attribute update, then it's sufficient to load 0PROFITCENTER master data. (don't forget to 'apply hierarchy/attribute change' - rsa1->tools)
    if you are going to update attribute in ods with attribute from 0PROFITCENTER, you can choose look up master data attribute method in update rules.
    if the requirement is really need 0PROFITCENTER to assign to update rules, then first you have to 'generate export datasource' for infoobject 0PROFITCENTER, right click the infoobject and 'generate export datasource', then do 'replicate datasource' from bw myself, after that it will available. to display it you may go to rsa1->infosource, and menu settings->display generated objects.
    hope this helps.

  • How to load Data in Info Object

    Hi, i have a info-object Called "TYPE"
    the value for this is always going to be "S1".
    I dont want to add it manually as i want this data to get filled up automatically when transported.
    the other objects i either get it from R/3 data source or Flat file.
    Should i use a flat file to load this single data ???
    Thanks,
    GG

    Hello GG NN,
    How r u ?
    You could do this in the Transfer Rules, Click the EDIT TRANSFER RULES(Triangle with Grid) icon opposite to the InfoObject. It will show some options like InfoObject, Constant, Routine and Formula.
    Select Constant and enter the "S1" value and CONTINUE.
    SAVE & ACTIVATE the InfoSource.
    ***No, the source may be anything, the value "S1" will be transferred for this InfoObject by the Transfer Rules.
    Best Regards....
    Sankar Kumar
    +91 98403 47141

  • Urgent-How to publish the screen in the web?

    Hi,
    I created a screen in SRM system, and wanted to publish the screen in the web, can any one tell me how to publish the screen in the web?
    thanks
    Murali

    Hi,
    R u want to publish ur screen in ITS .Then you have to create a IAC in SE80 internet service file.Rgt click the service and publish or run the pgm <b> w3_publish_services </b>,slt your serive and publish ?
    Cud you specify how you want to publish ? Thru ITS / BSP / EP ?
    Rgds,
    Jothi.
    Mark useful answers.

  • How to install business content Info Objects..

    Hello all.
    I am trying to do some BW extraction in our sandbox. Unfortunately I dont know how to install BC infoobjects. I have searched thru this forum but am still not fully sure. I have the source system client connected to BI. I replicated the datasources and see a ton of datasources under the UNASSIGNED NODES tree.
    Eg: How do I install the InfoObject 0Material. Can somone tell me steps..I think I can figure out the rest after that.
    Thanks in advance.

    Hi
    The Data Warehousing Workbench for installing BI Content has three navigation windows:
    In the left-hand window you determine the view of the objects in the middle area of the screen.
    In the middle window, you select the objects that you want to activate.
    In the right-hand window, you make the settings for installing the BI Content. The right-hand window also contains an overview of the objects you have selected, and it is here that you start installation of BI Content.
    In the Data Warehousing Workbench, you use the Navigation Window On/Off pushbutton in the toolbar to display or hide the left-hand navigation window. The rest of this section assumes that the left-hand navigation window is displayed.
    2. Assign Relevant Source Systems
    If you want to assign a source system, select the Source System Assignment function. The Choose Source System by Default? dialog box appears.
    Select one or more source systems by setting the corresponding indicators in the Default Assignment column.
    Only ever select the source systems that you really need, otherwise you may have to wait unnecessarily when objects are collected.
    The assignment of the source system is only relevant for source-system dependent objects (such as transfer rules, file DataSources, and InfoPackages). If more than one source system is available, only those objects assigned to the specified source system are collected ready for the transfer. Objects that have not been assigned to the specified source systems are ignored.
    For more information about the special features inherent in activating process chains that can reference source-system dependent objects, see the Customer Content documentation, under Process Chains and Process Variants.
    If you do not select a source system, all the source systems are assigned automatically. You can change your selection later using the Source System Assignment function.
    3. Group Objects To Be Included, Determine Mode of Collection for Objects
    Make the settings you require from the following selection lists on the right-hand side of the screen:
    Grouping
    Choose the objects that you want the system to include. The groupings combine the objects from a particular area. You have the following options:
    Only Necessary Objects (default setting)
    Data Flow Before
    Data Flow Afterwards
    Data Flow Before and Afterwards
    If you change the default setting (Only Necessary Objects), the new setting becomes the default setting for your user.
    The grouping selection has an impact on system performance during BI Content installation. For more information, see View of Objects and Object-Specific Recommendations.
    Collection Mode
    Select how you want to collect the objects:
    Collect Automatically (default setting): The data is collected when the objects are selected.
    Start Manual Collection: The data is only collected when you choose Collect Dependent Objects.
    Set the collection mode to Start Manual Collection. You can select all the objects without having to wait.
    4. Determine View of Objects
    In the left-hand navigation window, specify how you want the objects to be displayed. For more information, see View of Objects and Object-Specific Recommendations.
    5. Transfer the Objects to Collected Objects
    In the central area of the screen, select the objects that you want to install, and drag and drop them into the right-hand Collected Objects area of the screen.
    The Find Object function allows you to use strings of characters (for example, 0CUST) or wild card searches (for example, 0CUST_*B) to search for objects.
    Input help is available for every type of object: Double-click on the Select Objects icon in the tree structure of the corresponding object type to display the Input Help for Metadata screen. Select the required objects. Choose Transfer Selection.
    If you implement BI Service API Releases lower than 7.0 in the source system, you have to install the active version of the BI Content DataSources in the source system and replicate them in the BI system before you can use them for transferring data into BI. For more information, see Installing BI Content DataSources and Metadata Upload for SAP Systems.
    In the Collected Objects area of the screen, the system displays the selected objects and all dependent objects. Collected objects are stored by default in the repository cache. This reduces the time it takes to access these objects when you want to use them again.
    When you transfer objects into the Collected Objectsarea of the screen, these objects are also added to the tree structure of the corresponding object type in the central area of the screen and stored for your user. This personal object list can be called up each time the program is restarted.
    If you want to remove objects from your personal list, select the objects that you want to remove and choose the Remove Object from Display option from the context menu or click on the icon.
    Objects that are listed in several tree structures can only be changed in the place where they first appear. All additional instances of these objects are grayed out so you cannot modify them.
    6. Check Settings for Collected Objects
    Check the following columns in the Collected Objects area of the screen:
    Install
    The following BI Content objects are highlighted in this column by default:
    Objects that are being transferred for the first time. There is not an active version of these objects in the system.
    BI Content objects that have been redelivered in a new version. These objects can be identified by the Content time stamp in the corresponding object tables.
    When setting this indicator, check whether the checkbox refers to a folder of an individual object: If the checkbox refers to a folder, the indicator is set for all the objects that belong to this folder. If the checkbox refers to an individual object, the indicator is set for a single object and the indicators for the other objects in the folder are not changed. The same applies if you deselect this indicator.
    In the context menu, the following options are available for the installation:
    a. Install All Below
    The object in the selected hierarchy level and all objects in the lower levels of the hierarchy are selected as to Install.
    b. Do Not Install All Below
    The Install indicators are deselected for the object in the selected hierarchy level and all objects in the lower levels of the hierarchy.
    Match (X) or Copy
    If the SAP delivery version and the active version can be matched, a checkbox is displayed in this column.
    With the most important object types, the active version and the SAP delivery version can be matched.
    Note that the InfoSource TRCS supports the match, but the 3.x InfoSource ISTD does not.
    From a technical point of view, the SAP delivery version (D version) is matched against the M version. As in most cases the M version is identical to the active version (A version) in a customer system, this is referred to as a match between the D and A versions for reasons of simplification.
    When a match is performed, particular properties of the object are compared in the A version and the D version. First it has to be decided whether these properties can be matched automatically or whether this has to be done manually. If you are sure that the object will be used in the same way after you install BI Content, you can perform an automatic match for those properties. When performing matches manually you have to decide whether the characteristics of a property from the active version are to be retained, or whether the characteristics are to be copied from the delivery version.
    Assign points if useful.
    Thanks & Regards,
    Hari

  • How to find master data info objects. Partner function and customer class.

    hi,
    Can you please tell me what are the available extractors for Partner Function (PARVW from VBPA)and Customer Class (KUKLA from KNA1).
    I hope these fields are master data. I checked in 0customer. But I didn't find it. There is a info object (Business partner). Is it the same?
    pls reply

    I will admit that I am not familiar with ECC and there may be different interpretations of what KUKLA means and different means of extracting Customer information to/from ECC.
    However, for us, when extracting Customer Attributes using the 0CUSTOMER_ATTR datasource in R/3, we map KUKLA to 0CUST_CLASS.  They are both set up as 2 CHAR.  That is not to say that you should also.  You can map it to a custom infoobject in BW as long as you set it up as an attribute of 0CUSTOMER.  KUKLA is available in the standard datasource 0CUSTOMER_ATTR in R/3.  When looking at what is available in the infosource for 0CUSTOMER in BW, 0CUST_CLASS is a logical choice to map.
    As far as VBPA-PARVW, VBPA is not a source for master data for 0BPARTNER.  VBPA contains the business partners associated with Sales documents.  So if you are going to create a data provider (cube/ODS) in BW and VBPA-PARVW is part of the transactional datasource in R/3, the you can map it to 0BPARTNER in your cube/ODS.
    Hope this helps.

  • Session info via audititng and System trigger?

    Hi,
    I am using the following logon trigger to store all the session
    information into a table "client_info".
    When ever the user logon , his session information stores in the
    client_info table.This is our requirement.
    And when the session logoff its information will be deleted from
    the table client_inf via Logoff trigger.
    But the problem is that , The information will not be deleted from
    the client info table , if the user logoff abnormally from the
    database.
    How to overcome this issue.
    I am using auditing + logon and logoff trigger in order get the
    session info.
    Any idea will be great.
    Regards
    Bill>>
    >>
    >>
    >>
    CREATE OR REPLACE TRIGGER trg_client_info
    AFTER LOGON ON DATABASE
    BEGIN
    execute immediate
    'INSERT INTO client_info(session_id,client_name,sid,
    serial#,workstation,host_name,logon_time , description)
    select a.sessionid,a.username , b.sid, b.serial#, a.os_username,
    b.machine,b.logon_time,a.comment_text from user_Audit_trail a ,
    V$session b
    where a.sessionid = b.audsid
    and a.username = b.username
    and a.sessionid=userenv(''sessionid'')';
    commit;
    END;
    CREATE OR REPLACE TRIGGER logoff_session
    BEFORE LOGOFF ON DATABASE
    BEGIN
    DELETE from client_info where session_id = userenv('sessionid');
    commit;
    END;

    See here for a similar discussion:
    LOGOFF TRIGGER for getting Ip address info,etc

  • Info object creation and master data attributes

    Hai All,
              I have customerid, customer name, customer address, customer location. Similarly I have buyerid,buyer name, buyer address, buyer location. I have some more fileds like this for seller and vendor. I am thinking of creating a central location for all this master data creating a infoObject with name "personid" and making all the others attributes like "personname", "personaddress", "personlocation". I will load all the details of customer, buyer, seller and vendor to these objects.
    The cental idea is to get all the master data to a central location and then create objects with reference to these objects and let all the data flow. so that I just load the central objects and everything takes whatever it wants from there.
    Now my questions
    1. Can I just create an object for customerid referencing personid and then as all the other attributes get copied, can I just report on it or do I need to again create all the info objects for the customer details? Also the same for all others buyer, seller and vendor.
    2. Is this of any problem if I am reporting on customer or vendor or buyer or seller's details?
             Please advise me if the above situation works and let me know if I am going wrong.
    Thank you.

    hi Visu,
    yes, you can do so, should no problem.
    business content has this kind of approach,
    0sold_to, 0ship_to reference to 0customer.
    and also 0employee if i'm not wrong.
    one thing to consider if the volume data is very high,
    put it as line item dimension in infocube.
    hope this helps.

  • How to find out my verizon account number and pass code?

    Recently I tried to port one Verizon prepaid cellphone number to another carrier. During the porting the carrier asked me to provide the Verizon account number and pass code. How can I get this info?
    Thanks.

    Just as SuzyQ stated, Verizon Prepaid account numbers should be your mobile number, and as for the passcode, unless changed should be the last 4 digits of your mobile number. If you need more assistance give customer service a call.

  • How to open a page from a Form and pass parameters to the form on that page

    I found a similar example on this forum, but it did not work for me:
    declare
    l_names owa.vc_arr;
    l_values owa.vc_arr;
    i number;
    begin
    PORTAL.wwpro_api_parameters.retrieve(l_names, l_values);
    FOR i in 1..l_names.count
    LOOP
    htp.p(l_names(i) || ' ' || l_values(i));
    END LOOP;
    end;
    By using this method i get the parameters for the Form, like the session ID, but not the parameters for the Page that the form is displayed in.
    Another method I tried:
    To open a Form from a Form and pass parameters works fine like this:
    --In the After processing page PL/SQL event.
    declare
    v_id number;
    blk varchar2(10):='DEFAULT';
    Begin
    v_id:=p_session.get_value_as_number (p_block_name=&gt;blk,p_attribute_name=&gt;'A_ID');
    if v_id &gt; 0 then
    htp.formOpen('PORTAL.wwa_app_module.link?p_arg_names=_moduleid&p_arg_values=2649500412&p_arg_names=_show_header&p_arg_values=YES&p_arg_names=ID&p_arg_values='||to_char(v_id),'post');
    htp.formSubmit(NULL,'Upload Files');
    htp.formClose;
    end if;
    End;
    But I want to open a Page containing the Form instead of just opening the Form. Is this possible to open a Page and pass paramters to the page, and then let the form inside the Page access the passed paramters. The reason for this is that a Form cannot be based on a page template, or can it? When opening the form i want to keep the left menu, which I can if it is a page based on my template with the left menu.
    Best regards
    Halvor

    Hi,
    You can do this by calling the url of the page with the form. You can then use p_arg_names and p_arg_values to pass parameters. In the called form you can get the value from p_arg_names and p_arg_values and assign it to the form field.
    You can call this code in the success procedure of the calling form.
    declare
    v_id number;
    blk varchar2(10):='DEFAULT';
    v_url varchar2(2000);
    Begin
    v_id:=p_session.get_value_as_number (p_block_name=>blk,p_attribute_name=>'A_ID');
    v_url := <page_url>;
    if v_id > 0 then
    call(v_url||'&p_arg_names=id&p_arg_values='||v_id);
    end if;
    End;
    In the called form in "Before displaying form" plsql section write this code.
    for i in 1..p_arg_names.count loop
    if p_arg_names(i) = 'id' then
    p_session.set_value(
    p_block_name => blk,
    p_attribute_name => 'A_ID',
    p_value => p_arg_values(i)
    end if;
    end loop;
    This code picks up the value from p_arg_values and assigns it to the form field.
    Hope that helps.
    Thanks,
    Sharmila

  • How to set database session info

    Jdev 9.0.3.3
    My app manages user logins via a custom jaas implementation, but it connects to the db using a shared username/password. I capture the real username password of the logged in user in my app and want to add that info to some audit columns on my tables like Created_By, Updated_By, etc.
    How do I pass in a value stored in my Java code to the db session so I can use that data in a trigger or whatever.
    I understand there is a way to access the db session from the app mod, but I am unclear on how to do this.
    TIA

    Jdev 9.0.3.3
    My app manages user logins via a custom jaas implementation, but it connects to the db using a shared username/password. I capture the real username password of the logged in user in my app and want to add that info to some audit columns on my tables like Created_By, Updated_By, etc.
    How do I pass in a value stored in my Java code to the db session so I can use that data in a trigger or whatever.
    I understand there is a way to access the db session from the app mod, but I am unclear on how to do this.
    TIA

  • Urgent - How to create instance of Business Object in workflow at runtime

    Hi all,
       I have a requirement as follows...
    1) I have a Business Object ISUPOD in which the Key field is Pointof Delivery
    2) I am getting the value for Pointof Delivery in the step-2 of my workflow.
    3) Now I want to create a instance for the Business Object using this key field value in my Workflow at runtime and use the instance in the following steps.
    How can I do this ???
    Thanks,
    Sivagami

    Hi Ravi,
      Thanks for the solution...
      There is also a wizard that will generate an activity to do this. We have to just go to Wizards->Include "Create Object Reference" which will create the task  with the BO & Method referred by you.
    Thanks,
    Sivagami

Maybe you are looking for