How to put value in Session from AM ?

in AM : i have a condition like this
if (tool_id != null)
//initialize lov and pass this tool_id to lov's controller.
how can I do it ? If I had to do it from the controller, I would have put the value in session parameter, but how Do I put a parameter's value in session from AM ?
I dont have the method : putsessionvaluediret() in am ??
or say : how do i pass a value from am to an lov's contoroller ?
Edited by: OAF-dev on Mar 8, 2010 4:53 PM

You can create a method of string type and return the value to the controller.
IN AMImpl:
public String getToolId(String InputParameterIfAny)
//initialize lov and pass this tool_id to lov's controller.
// Capture toolID in variable and return
return toolID;
In Controller:
String toolId = (String)am.invokeMethod("getToolId",InputParameterIfAny);
Thanks
--Anil                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Similar Messages

  • I tried to sinc my photos and i ended up deleting off my phone all the pictures.  i only ended up with one folder, and i cant figure out how to put rest of folders from my computer back on my phone.....help

    i tried to sinc my photos and i ended up deleting off my phone all the pictures.  i only ended up with one folder, and i cant figure out how to put rest of folders from my computer back on my phone.....help
    and on a second problem.  I need to know for sure that my contacts are backed up on my computer

    Create a parent folder on your computer to store the named folders of photos that you want transferred to your iPhone. Under the Photos tab for your iPhone sync preferences with iTunes, select the parent folder. All named folders of photos within will be transferred to your iPhone as separate folders or albums.
    Regarding your 2nd question, this should be easy. Your contacts should be available on your computer with or without an iPhone or any cell phone, which can be lost or stolen.
    Although contacts are included with your iPhone's backup which is updated by iTunes as the first step during the iTunes sync process, not a good idea to depend on this either since the iPhone backup includes a significant amount of other data. Contacts are designed to be synced with a supported address book app on your computer. With Windoze, this can be with Outlook 2003, 2007, or 2010 along with syncing calendar events and notes, or with the address book app used by Outlook Express with XP and by Windows Mail with Vista and Windows 7 called Windows Contacts for syncing contacts only.

  • How to passing value into Captivate from html?

    How to passing value into Captivate from html?
    Or
    How to communicate between objects in one slides?

    Hi czhao0378 and welcome to the forums!
    Captivate does not natively allow you to communicate your own
    data, either internally or externally. The only way to make this
    happen is to create your own functionality, either via custom-built
    Flash objects or JavaScript code executed in the browser or a
    combination of both.
    The only example I've seen of any "data passing" inside
    Captivate is a custom text input/output solution that was posted on
    the Captivate Developer Exchange:
    http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetail&loc=en_us&extid=1253 021
    This solution consists of an input box that takes information
    from the user on one slide and a second box that displays that
    information on another slide. The functionality was built in Flash
    and is embedded in Captivate as a Flash "animation". Unfortunately,
    since this is a custom functionality, the information is not
    included in the user completion results Captivate can pass to a
    Learning Management System.
    Since the solution mentioned above relies on a Flash
    Actionscript variable to hold the information that is displayed,
    you can also pass the information from HTML to Captivate using the
    "SetVariable" command in JavaScript. This would at least allow you
    to display your own HTML-based data inside Captivate.
    Beyond that, I'm not aware of any other way to gather and
    pass data in Captivate.

  • How to change value of ${eol} from \n to \r\n, writing by File Adapter

    Hi All,
    How to change value of ${eol} from \n to \r\n, while writing file through File Adapter.
    As my file is being created in Linux environment, so for new line separater, \n is used. I mounted this file directory to windows System.
    As Windows requires \r\n for new line seperator. So I need to change value of ${eol} in the Schema created for file writing.
    Can any one provide help regarding this.
    Thanks in advance

    Hi,
    When an XML payload is written to a file \n would be used as the default line separator regardless of if its windows or linux, as per the XML specification http://www.w3.org/TR/REC-xml/#sec-line-ends.
    As such, one need not worry about the line separators because, the XML file would eventually be processed by a parser which usually would be able to understand both line endings (as they are whitespace characters as far as the parser is concerned).
    If you want to convert the line terminators (for readability etc), 10.1.3.4 has a new feature - in the XML schema definition for the file adapter payload, add these two top level directives to the schema element:
    xmlns:nxsd="http://xmlns.oracle.com/pcbpel/nxsd"
    nxsd:normalizeLineTerminators="false"
    Regards,
    Shanmu.

  • How to put values from selection screen to  ztable

    hi all,
    i have created a ztable.
    now i want to put data through se38.
    i have given 5 parameters in selection screen same as there in ztable.
    now if i put values in selection screen then it should put that values to my ztable .
    how can i put values into my ztable.
    i used insert but not workiing.

    Hi,
    Try this.
    TABLES : ztable.
    SELECTION-SCREEN:BEGIN OF BLOCK b1 WITH FRAME TITLE text-t01.
    PARAMETER : p_field1 TYPE field1_in_ztable,
                            p_field2 TYPE field2_in_ztable.
                            p_field3 TYPE field3_in_ztable.
                            p_field4 TYPE field4_in_ztable.
                            p_field5 TYPE field5_in_ztable.
    SELECTION-SCREEN:END OF BLOCK b1.
    DATA : itab TYPE TABLE ztable,
                 wa_itab TYPE ztable.
    AT SELECTION-SCREEN.
          MOVE p_field1 TO wa_itab-field1.
          MOVE p_field2 TO wa_itab-field2.
          MOVE p_field3 TO wa_itab-field3.
          MOVE p_field4 TO wa_itab-field4.
          MOVE p_field5 TO wa_itab-field5.
    INSERT ztable FROM wa_itab.
    IF sy-subrc = 0.
    MESSAGE 'Successfully saved' TYPE 'I'.
    ENDIF.
    Thanks,
    Sri.
    Edited by: Sri on Jul 28, 2009 4:15 PM

  • How to kill particular Oracle Session from the multiple Session of User

    Hi,
    I am working on Web Application using ASP.NET , C# with Oracle. I am excuting queries from multiple connection of same user. I want to kill particular user session. I have tried to Kill session by using ALTER SYSTEM KILL SESSION 'sid,serial#' it is working fine but how can i identify which session is generated by particular connection so that i can kill that particular session.
    Suppose there us user 'abc' there are multple instance of this user and all are active but same USERNAME. So Please tell me how can i identify that session through which i am executing the query.
    Thanks,
    Nitin

    Some ideas for how to pick the right session:
    -Look at the time the session was connected (logon_time)
    -Look at the time the session last started it's most recent statement (last_call_et)
    -Look at the sql that the session is running (join with sql_address and sql_hash_value over to v$sqltext_with_newlines or one of the other views that show you the sql they are running)
    That usually gets me most of the way, if it's possible to distinguish them. ("Yeah I just started this query and I want you to kill it." is different than "I started five different queries at about the same time and I'm not sure which one I need killed.")

  • How to put userinfo into session?

    Hi everyone:
    I have a login page.I want to put all the user information into user's session if the user logon successfully.How can I do it?
    I means that if the user input the "name" and "password" is correct then put the user's address,age,registetime,city,lastname ..etc into user's session.
    Thks.

    Hi,
    just create class(bean) User with any of these name, age... setter and getter methods and put it into session. So, during the session you will have one user in your hand.
    Then you'll be able to use user.getAge() user.setAge and all that stuff and what is the most important - you will have ONE session variable.
    Using beans you can make very smart application.
    good luck

  • How to delete last user session from backend SQL query?

    Sometimes user session gets closed between some work by any reason.
    When next time that user logs to P6, he gets some error or particular functionaly dosen't work for that user or system hangs.
    In that case if i decided to clear last session history of that user from database, how to write SQL query?
    I don't want to delete all user sessions from table USESSION and USESSAUD, i simply want to delete last user session of particular user (E.g XYZ).

    I am quoting this from MOS Doc Id "Why would multiple session records be present in the User Sessions screen in P6 Web, and why might some of them have different IP addresses? (Doc ID 1600172.1)"
    Multiple sessions show up for users since different sections of P6 Web have their own sessions associated with them. If a user is authorized to use multiple areas of the software they will have multiple sessions each time they log in. Additionally, if users are closing their browsers before logging out of P6 Web Access you might see some past sessions still appearing in the list. These will eventually be cleared out by background jobs, however you can also reset the sessions in the software by clicking the "Reset User" link (Administer > User Sessions > Manage User Sessions), or by choosing the "Reset All Users" link (Administer > User Sessions > Manage User Sessions) to do this for all past sessions.
    Multiple IP addresses for sessions can happen when a user logs in from different machines. For example, a person may login at their desk, but then go to a colleagues workstation to discuss a project, and log in from there. Doing so will leave them with multiple IP addresses in the session records.
    Hope this helps
    Regards,
    Sachin Gupta

  • How Do You Assume A Session From Event Gateways?

    I am using event gateways to send and receive via SMS, IM,
    and Email. I can go back and forth just fine, and if the client
    initiates the session, session persistence is not a problem.
    Sometimes, though, we need the server to initiate the session
    and the client to assume that session so we don't have to
    re-establish the thread before we move on.
    For example, if the client says "Approve John Doe" for
    something, the bot can respond with "John Doe found. Reply with A
    for admin rights, W for web rights", and so on. Because the client
    established the session, replies are cemented in the bots brain so
    they know if an "A" is returned, it will give John Doe Admin
    access.
    The trouble is if the SERVER initiates the call to the IM
    Client: "This is the server speaking. John Doe is attempting to
    access the double-secret files. Reply with A to Allow or X to send
    10,000 volts to their computer". Reply with A and the bot will
    respond with, basically, "request unknown" because the client
    actually initiated a new session and nothing the server said was
    heard or can be viewed by the client.
    When the server creates a session in the event gateway, there
    also appears to be no sessionid, cfid, or cftoken. Especially for
    SMS, it's difficult to pass a UUID or specially coded variable for
    the client to use to at least search and retrieve the particulars
    of the event.
    So, how does one get a CLIENT IM, Email or SMS to assume the
    Session from the server?
    Alternative solutions welcomed!
    RLS

    BKBK,
    Thank you for your response. That does adequately cover the
    client-originated sessions, but still leaves the ability I am
    looking for unavailable.
    It did serve to definitively answer my most pressing
    question, however, with this statement:
    Note: ColdFusion cannot create a session if an initiator
    application uses a SendGatewayMessage method to start an
    interaction with a client, such as an SMS user. In this case, the
    sending code must keep track (for example, in a database) of the
    messages it sends and their destinations. When a response event
    arrives, it can look up the origniatorID to determine whether it
    was in response to an outgoing message.
    I will play around with the Application scope to see if there
    might be a workable solution there.
    RLS

  • How to put value in Ring

    I forgot how to input value into ring control. Could anyone tell me how?

    Programatically: Create a property node (right-click on the control) and select the Strings property. Write an array with all the names of the values to that property. If you need to update the item list often try holding the current array in a shift-register instead of reading the current one back using a read property...
    Manually: Right-click on the control and select add Item...
    MTO

  • How to fetch already created sessions from Informatica Repository (Informatica SDK)

    Hi guys,I'm using the Informatica SDK to create a java application that accesses the Informatica repository. I'm having a bit of an issue while trying to fetch the names of already created sessions from the Informatica Repository. I'm able to connect to the repo without any issues and have been able to add sources, targets, mappings, sessions, workflows, etc... and save them directly afterwards. However, when I try to fetch the session names from a folder in the repository, I get the following error:Mon Jul 27 15:03:01 PDT 2015 Severity:DEBUG ThreadID:14 Running the pmrep process in the working directory: [C:\Informatica\9.6.1\clients\PowerCenterClient\client\bin].Mon Jul 27 15:03:01 PDT 2015 Severity:DEBUG ThreadID:14 Running the command [listobjects -o session -f "TechOps" -s . ]. Mon Jul 27 15:03:01 PDT 2015 Severity:DEBUG ThreadID:14 Running the command [exit ].Mon Jul 27 15:03:01 PDT 2015 Severity:DEBUG ThreadID:14 Parsing the output of the ListObjects command for each folder.Mon Jul 27 15:03:01 PDT 2015 Severity:DEBUG ThreadID:14 The following errors occurred while running the ListObjects command: [Failed to read repository connection information. Please first connect to the repository using the connect command. Failed to execute listobjects.]. The following errors occurred while running the ListObjects command: [ Failed to read repository connection information. Please first connect to the repository using the connect command. Failed to execute listobjects.].com.informatica.powercenter.sdk.mapfwk.exception.RepoOperationException: The following errors occurred while running the ListObjects command: [ Failed to read repository connection information. Please first connect to the repository using the connect command. Failed to execute listobjects.]. atcom.informatica.powercenter.sdk.mapfwk.core.Folder.fetchSessionNamesFromRepository(Unknown Source) atcom.informatica.powercenter.sdk.mapfwk.core.Folder.fetchSessionNamesFromRepository(Unknown Source) at com.mars.Main.main(Main.java:170)This doesn't really make sense to me as I'm able to connect to the repo fine to add and save changes. Here's my code for fetching:// Create a list of session names and store the names
    List<String> sessionNames = null;
    try {
        sessionNames = folder.fetchSessionNamesFromRepository();
    } catch (RepoOperationException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
    } catch (MapFwkReaderException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
    // Print the list of session names
    for (int i = 0; i < sessionNames.size(); i++) {
        System.out.println("Session " + i + " is " + sessionNames.get(i));
    }I've confirmed that the folder object works fine as I can add and save other objects to that folder in the repo.The other odd thing is that if I go to the install path for Informatica on my machine and I run pmrep from the command prompt followed by the command to fetch session names, it works fine.Any help on this would be greatly appreciated.Thanks

    Hi neel007,
    Just use a List instead of a Vector, it's more performant :
    List<Folder> rep_FetchedFolders = new ArrayList<Folder>();If you need to synchronize your list, then
    List<Folder> rep_FetchedFolders = Collections.synchronizedList(new ArrayList<Folder>());Also, if you're using Java 5 or higher and if you're sure listOfTargets contains only Target objects, instead of this
    for(int b=0; b<listOfTargets.size();b++){
       Target trg = ((Target)listOfTargets.get(b));
       t_folder.addTarget(trg);
    }you may do this :
    for (Target trg : listOfTargets) {
       t_folder.addTarget(trg);
    }Edited by: Chicon on May 18, 2009 7:29 AM
    Edited by: Chicon on May 18, 2009 7:35 AM

  • Q: how to put values of two VO in a search table that is dependent

    Hi
    my requirement is somehow complicated, it is as follows:
    i have an employeeEO and a DirectorEO with the corresponding employeeVO and DirectorVO i want to make a search on the two VOs but with one search table and one go button.
    I have put a query region then region using wisard for the EmployeeVO then add an item for the director with no view instance and no view attribute, now i don't know how to put the name of the director in DirectorVO according to the empID in EmployeeVO
    any help would be appriciated
    Thanks

    i have also put the following in the processRequest
    OATableBean employeeTable = (OATableBean)webBean.findChildRecursive("EmployeesVO1");
    OAMessageChoiceBean directorIdList = (OAMessageChoiceBean)employeeTable.findChildRecursive("Director");
    OAMessageStyledTextBean empIdList = (OAMessageStyledTextBean)employeeTable.findChildRecursive("EmpId");
    directorIdList.setListVOBoundContainerColumn(0, employeeTable,"empIdList");
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    am.invokeMethod("putDirector");
    but the problem is how then i can put the empId in the Am without a specific reference ??

  • How to get value in variable from query in PLD / ALD

    Hi, everyone,
    I want to retrieve value from database via query in PLD/ALD variable on basic of PLD / ALD variable's content. is it possible ?

    Hi
    Try this,
    ->> Open the GRPO document.
    ->> Click the Tools on menu bar and Open the Form Setting widnow.
    ->> put the tick mark in BaseRef, BaseDoc, TrgetDoc
    i think, Base Document no field default in SAP B1.
    try to search the Base doc. Date in row level on GRPO document.
    Try to Create UDF & FMS then assign the FMS in UDF
    SELECT Distinct T1.DocDate
    FROM PDN1 T0 INNER JOIN POR1 T1
             ON T0.BaseEntry=T1.DocEntry
    WHERE
    T1.[DocNum]=$[PDN1.BaseRef]
    OR
    SELECT Distinct T1.DocDate
    FROM PDN1 T0 INNER JOIN POR1 T1
             ON T0.BaseEntry=T1.DocEntry and
                T0.BaseLine=T1.LineNum and T0.BaseType=22
    WHERE T0.[BaseType] =22
       and T1.[DocNum]=$[PDN1.BaseRef]
    IF you more details, Check the below thread.
    Re: How to store the invoice number in the head of the related delivery ?
    Regards,
    Madhan.
    Edited by: Madhan Babu C on Dec 11, 2009 6:57 AM

  • How to store values in session variables for use later

    I am trying to read user input from a form, lookup some values from a database,
    store the combined data into session to retrieve later in the subsequent pages
    in a pageflow application. Could someone guide me as to how exactly to do this?
    The documentation doesn't seem to be of much help.
    Thanks,
    Krishna K

    Krishna,
         If you will be using the data within the course of the same page flow
    or nested page flows then you should store the data in the page flow
    itself. Simply declaring variables in the .jpf will do this. The page
    flow is stored in the session for you and it is deleted when the user
    exits the page flow. This is good because it keeps down session size.
         If you have data that you want to use across page flows then you will
    need to store in the session or globalApp.
         Here is a link to "Using Data Binding in Page Flows" it has an example
    of storing data into the session and it goes into the pros and cons of
    using each data binding scope.
    http://edocs.bea.com/workshop/docs81/doc/en/workshop/guide/netui/guide/conDatabindingXScript.html
    - john
    Krishna Kuchibhotla wrote:
    I am trying to read user input from a form, lookup some values from a database,
    store the combined data into session to retrieve later in the subsequent pages
    in a pageflow application. Could someone guide me as to how exactly to do this?
    The documentation doesn't seem to be of much help.
    Thanks,
    Krishna K

  • How to put value of specific line number in BDC

    Hi all,
    I am working on a BDC (MI04)which has 3 fields as header:
    Document Number:
    Date:
    Fiscal Year.
    After entering I get a screen having default Material Number, its description and its serial number. There is one field named QTY where I need to push the value through BDC.
    But the issue is that I am not able to reach to that Material Code to push the qty value. I am getting the Material Code and its serial number in the text file from user.
    May some times the given material code in on the NEXT PAGE (P+). So dont know how to go to the next page and push the qty in front of the correct material code..
    Please help. Its very very urgent.
    Thanks in Advance.
    -=Maddu=-

    Try something like
    perform bdc_dynpro      using 'SAPMM07I' '0731'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'ISEG-ERFMG(01)'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=KLA'. " Menu goto/position
    perform bdc_dynpro      using 'SAPMM07I' '1701'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'RM07I-ZEILE'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=ENT2'.
    perform bdc_field       using 'RM07I-ZEILE'
                                  '8'. " give the "iseg-zeile" of the record to fill
    perform bdc_dynpro      using 'SAPMM07I' '0731'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'ISEG-ERFMG(01)'. " fill line 1 displayed
    Regards

Maybe you are looking for