How to get the function name/ID  of the current page

HI,
I searched the forum and google, but it is not clear on how to get the function name of the current page.
I have 4 functions in my self service A ,B,C,D (seeded page links ) they all have to go to a page called hhhPG. Based on which function user is clicks I have to show the data in hhhPG.
so my question is how to get the function name ? I mean I need to know if user click on link A , B, C or D link and came to this page.
I found below in one forum and also there is getfunctionID in pageContext , but I do not know what to pass to getfunctionid("???") to get value.
FunctionSecurity funcSecurity = pageContext.getFunctionSecurity();
Or is there a better way of know where user is coming from ? like geturl....
Please help, I need this ASAP.
Thank you.

Use below to find out how the user came into the page
FunctionSecurity funcSecurity = pageContext.getFunctionSecurity();
boolean isFunc1 = funcSecurity.testFunction(funcSecurity.getFunction("YOUR_FUNCTION_SHORT_NAME1"));
boolean isFunc2 = funcSecurity.testFunction(funcSecurity.getFunction("YOUR_FUNCTION_SHORT_NAME2"));
boolean isFunc3 = funcSecurity.testFunction(funcSecurity.getFunction("YOUR_FUNCTION_SHORT_NAME3"));
boolean isFunc4 = funcSecurity.testFunction(funcSecurity.getFunction("YOUR_FUNCTION_SHORT_NAME4"));
So one of them will be true based on the function the user came in.
Write your logic based on these flags.
Regards,
Peddi.

Similar Messages

  • How to get target file name and buffer the incoming messages?

    Hi Experts
    I have one scenarion like
    I wanted to find whether is there any file existing in target folder. If it exists I dont want to overwrite it but I have to buffer the incoming messages in some queue or something like that. And when ever the request comes next time I have to send the data buffered in queue first.
    I dont want to add any time stamp for target file to avoide duplication.
    Can we do this using XI. If yes please suggest me how to achive this.
    Regards
    Sowmya

    >
    Sowmya wrote:
    > Hi Experts
    >
    > I have one scenarion like
    > I wanted to find whether is there any file existing in target folder. If it exists I dont want to overwrite it but I have to buffer the incoming messages in some queue or something like that. And when ever the request comes next time I have to send the data buffered in queue first.
    >
    > I dont want to add any time stamp for target file to avoide duplication.
    >
    > Can we do this using XI. If yes please suggest me how to achive this.
    >
    >
    > Regards
    > Sowmya
    there is no standard way to achieve this. I suggest a redesign.
    post the files to a different directory and write a script which will move the file to the required target directory only if it is not present there.

  • How to get the function name in controller class

    Hi experts ,
    I am new to the OAF framework.
    i have created the two functions and bot he the function have the same controller class .i want to capture the function name or function id in the controller class.
    can you please let me know how to get the function id or function name in the controller class.

    Hi apurba,
    Thanks for the quick reply.
    i am trying to get the function name from the FunctionSecurity class,
    However in FunctionSecurity class there is no such method defined as getFunctionName();
    my requirement is ,i have two functions functionA and functionB defined.
    both the function has the same controller class.in controller class ,i need to get the function name ,based on the function name
    i will redirect the page to respective page.
    looking forward for you response.
    appreciate your help
    Thanks,
    KT

  • How can I get the infoset name by giving the name of a program of a query?

    How can I get the infoset name by giving the name of a program of a SAP Query?
    Regards,
    Subho

    Use FM RSAQ_DECODE_REPORT_NAME.
    You can also use AQLQCAT table.

  • How to get ther servlet name from the Httprequest / servletContext

    Hi,
    How can I get the servlet name from the Http Request / Servlet conext?
    Arthik

    I have a requirement to call the business logic either in local server / external server.
    Local / External server
    The original / main request is made to the server from the client and from the server if the main request requires some resource (second request from server side) available in the external server then I need to make a URL connection. If the requested resource is the local resource then I need to by-pass the HTTP call. So I need to verify the server name , port with the originally requested server.Then I need to check if the request servelt is available in local or not.
    Can you please help me.

  • How to get list of active users with the details like samaccountname, name, department, job tittle, email in active directoy?

    how to get list of active users with the details like samaccountname, name, department, job tittle, email in active directoy?

    You can use third party software True Last Logon 2.9.You can export the file in excel for report creation.You can use the trial version this will achieve what you are looking for.
    True Last Logon displays the following Active Directory information:
    --Users real name and logon name
    --Detailed account status
    --Last Logon Date & Time
    --Last Logon Timestamp (Replicated value)
    --Account Expiry Date & Time
    --Enabled or Disabled Account
    --Locked Accounts
    --Password Expires
    --Password Last Set Date & Time
    --Logon Count
    --Bad Password Count
    --Expiry Date
    --You can also query for any other attribute (Example: Description, telephone Number, custom attibutes etc)
    Refer the below link for trial version:
    http://www.dovestones.com/products/True_Last_Logon.asp
    Best Regards,
    Sandesh Dubey.
    MCSE|MCSA:Messaging|MCTS|MCITP:Enterprise Adminitrator |
    My Blog
    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.

  • How to get the Country name from where the user access the website ?????

              Hi ,
              i have a requiremtn in which i want to display the country name from where
              the user browse our webpages . for example if he is browsing from us , then i
              should display US and if he is browsing from UK , then i should dispaly "uk" etc...
              can anyone guide me how to proceed .
              thanks in advance
              Regards
              Subu
              

              Hi Laura Taylor ,
              Thanks for your Reply and Thanks for ur Guidelines.
              Thanks & Regards
              Subu.
              "Laura Taylor" <[email protected]> wrote:
              >
              >Unfortunately, there is no way to determine the country unless the client
              >indicates
              >that to you directly(i.e. via a form input value). However, there are
              >two request
              >headers that can help you determine the language preference(s) of the
              >client:
              >
              >Accept-Language -- Specifies the language preference(s) the client prefers
              >to
              >receive.
              >Accept-Charset -- Identifies the charset(s) the client understands.
              >
              >Laura
              >Developer Relations Engineer
              >BEA Support
              >
              >
              >"Subu" <[email protected]> wrote:
              >>
              >>Hi ,
              >> i have a requiremtn in which i want to display the country name
              >from
              >>where
              >>the user browse our webpages . for example if he is browsing from us
              >>, then i
              >>should display US and if he is browsing from UK , then i should dispaly
              >>"uk" etc...
              >>can anyone guide me how to proceed .
              >>
              >>thanks in advance
              >>
              >>Regards
              >>Subu
              >
              

  • Significance of function name property in the OAF Page

    Hello, I am trying to find out how the seeded LookupPG works as i need to use the same logic in my application. In the LookupPG page, in the function name property, it's specified as 'FND_LOOKUPS_SSWA'. I tried to open the function to see what is defined in that function and it's nothing but the path of the same page is defined in the function. I tried removing the function name from the page property and it gives me error. Can anyone tell me what's the significance of this function name property in oaf page? Appreciate your advice. Thanks KK

    HC,
    You can add a Region of type Header and set the Text for that and add your table under the Header region.
    Or you can Enter the Text attribute value for that table to get the header.
    Thanks,
    With regards,
    Kali.
    OSSI.

  • How to get Sequence File Name ?

    Hello everybody !!
    I'm using TestStand 3.1 and i would like to get sequence file name. I've tried to use NameOf() function, but without success.
    Of course, I've searched previous posts about the same question, but nothing works.
    Is there someone able to tell me how to get sequence file name ?
    Thanks a lot.
    MrOrange

    MrOrange,
    first of all, the solution i will present only works for saved sequence files.
    you got all information you need within TestStand itself, just browse for RunState.SequenceFile.Path. here you can find the filename. but the path of the file is also included in the string, so this is a part you have to get rid off.
    you can use statements to extract the filename from the path. just search the string for the last occurence of "\\" (searchinreverse!) and then you can retrieve the right() part of the path. beware that right() needs the number of characters you want to extract, not the startindex!!
    hope this helps,
    Norbert B.
    NI Germany
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • How to debug a function module using in the generic datasource?

    Hi all,
    We have created a generic data source using function modulle and have been extracting the data for a single customer it contains single records but it has pulled out more than 10,000 records. how to debug the function module used in the data source.
    since we schedule for extraction in bi and back ground job gets triggered in ecc for extraction,
    i know in se37 we can select the function module name and then debug but still need to check while the bacground job is trigered through bi.
    Thanks

    Yes you can debug the Function Module.
    Open the function module in SE37 and put a break point in the code where you want to check from, then come to RSA3 and give the datasource name and check the Debug check box on this screen, once you click on the start button it will take you the place where you have placed the break point in the FM, by pressing F5 you can see the flow of the FM.
    Let me know whether this solves your issue.

  • How to get XI host name & IP address in Message Mapping

    Hi,
    Does anyone have an idea how we can get XI host name & IP address dyanamically in our mapping.
    Thanks in advance.
    Regards,
    Sarvesh

    Hi,
    Please find the code below for the UDF which serves the function: to check value for the PI system id (probably use System.getProperty("SAPSYSTEMNAME")) - if the system name is PIP then the function returns u201CPu201D; otherwise the function should return u201CTu201D
    String SystemID = null;
    SystemID = System.getProperty("SAPSYSTEMNAME");
    if (SystemID.equals("PIP"))
    result.addValue("P");
    else result.addValue("T");
    No input is required for the UDF and also no import packages required apart from the default ones in UDFs..
    regards,
    Kishore

  • How to get a computer name in teststand step ?

    how to get a computer name in teststand step ?

    Hi,
    Use an ActiveX Automation Adapter with the following settings,
    ActiveX Reference : RunState.Engine
    Automation Server: TestStand API (depends on your version)
    Object Class: Engine (IEngine)
    Action: Get Property
    Property: ComputerName
    Then set your Parameters: to pickup the String ComputerName.
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • How to get carrier company name on windows phone 8.1?

    how to get carrier company name on windows phone 8.1?

    excuse me, i referrer the link http://stackoverflow.com/questions/26973111/get-carrier-name-cellular-mobile-operator-name-using-windows-phone-8-1 to
    modify my universal app.
    but i always get 0 count from the GetNetworkNames() method. 
    if my sim card is for 3G, but i setting 4G in highest connection speed. i got the "the pipe is being closed".
    how can i solve the problem? thank you.

  • How to get Owner's name in workflow and disable it?

    hai
    When i open any workflow process, by default the first page gives itemkey, user key, Process name and Process Owner attributes. But we can change the owner's name here. This allows the user to launch the process on behalf of another user. How to disable it so that the user can not change this?
    ( default it will the user who started the process). Also I want to get the owner's name in any fuction in between the process. How to get it? Pls help me.

    The Launch Process screen is only available for Workflow Administrators (set on the Global Preferences screen) and is typically used for testing workflows.
    hai
    When i open any workflow process, by default the first page gives itemkey, user key, Process name and Process Owner attributes. But we can change the owner's name here. This allows the user to launch the process on behalf of another user. How to disable it so that the user can not change this?
    ( default it will the user who started the process). Also I want to get the owner's name in any fuction in between the process. How to get it? Pls help me.

  • How to get right folder name/location on import?

    I can't seem to get LR 3.x to import into the desired folder structure like I used to do with
    LR 1.x and 2.x.  I'm trying for a structure that looks like this:
    I want LR to automatically create a folder with the date stamp in it and located in the right year and then let me enter the the last part of the folder name that identifies the subject matter before the import starts.  So far, all I can get is the auto-generated folder name by date with no ability to edit that or a fully custom folder name where I have to both locate it properly and type the entire name including date.  In LR 1.x and 2.x, this was really easy.  LR would suggest the folder name (or multiple folder names if the images span multiple dates) with the date in it and I could just double click on it to add to the supplemental name before the import.  Can't find any way to do that in LR 3.x.  What it means is that I have to do the import, wait for it to complete, then come back and manually rename each folder it created.  This is particularly a pain when there are multiple folders (across multiple dates) and/or when my backup program has already kicked in and done a backup of the auto-generated date before I come in and manually rename it.
    So, my question is, how do I get LR to auto-suggest the right date-based folder name in the right folder location and let me add something onto the end of it before the import?  This was very easy in LR1.x and 2.x import.

    It slipped under the radar when redoing the new import window.
    Hopefully, we'll get it back in next major update. In the meantime. you
    can add the additional text post import by right clicking on folder name
    then choosing Rename from context menu.
    Thanks Ian.  I hope it does indeed come back.  Renaming the directories manually is what I do now - it just extra work from how I used to do it and it doesn't fit smoothly into the workflow because LR seems to get confused sometimes if I rename while it's still importing or while still building thumbnails.  For a big import, that means I have to go away, let the thumbnails build, then remember to come back promptly to rename the directory before my backup scheme starts backing up the wrongly named directory.  I've managed since 3.x came out, but it finally annoyed me enough I thought I'd post in hopes I was just missing a way to do this.  I sure hope this comes back in a future version.  Organizing by named "shoot" is a very natural way for me to do it.

Maybe you are looking for

  • How to Prevent the Executing a Program but Allow to Run as Background Job?

    Hi All, I have an ABAB List Program. I need to restrict this program from executing. This has to always run as a Background Job. How do I check this condition in the program? Thanks, Kishan

  • ISE Reports notification

    I'm generating scheduled reports to get Guest Activity sent to an FTP repository every hour. The dialog box to schedule, includes a field to indicate an email where a notification should be sent. I can get the report on the FTP repository as expected

  • I am not able to apply my Illustrator update

    Hello I have a PC with Windows 8. I bought creative suite 6, it says I have installed all available updates for Photoshop, although there is one update for Illustrator I have been unable to download (I only get the message when I open Photoshop thoug

  • Color management setting wont stay set?

    Running Acrobat Pro 9.4.1 in conjunction with CS5 Design Premium. Not only does the color management setting in Acrobat not change when set and synced from Bridge. The setting wont stick when set directly in Acrobat. Does anybody have a similar issue

  • Acrobat 9 Pro - Change Image Compression/Quality w/ Javascript?

    Hello, I've got a folder-level script that will merge PDFs by using "insertPages" to add a list of PDFs to a new document. The file size is too large, and I've noticed that if I go into the PDF Optimizer manually and change the Image Settings so the