How to get a Page name?
Hello,
I have a dynamic page component portlet, which display different images depending upon page name.
Is there any APIs to get the current page name in pl/sql.
or is there any way to get the page name ?
Thanks
Sha
I can't help you with the Javascript option - don't know if this is possible.
A simple PL/SQL item type that demonstrates how to do this:
declare
page_id varchar2(100);
begin
page_id := WWPRO_API_PARAMETERS.GET_VALUE('_pageid','a');
htp.p('The page id is ' || page_id);
exception
when others then null;
end;
A custom item type procedure is even simpler - you can pass the page group id and page id directly to the procedure, so you don't need to call WWPRO_API_PARAMETERS.GET_VALUE to pull the pageid off the URL.
There is a very good example of using custom item type procedures in this submission on the Knowledge Exchange. You must register for Portal Developer Services to access the Knowledge Exchange.
If you are not familiar with PL/SQL item types and/or custom item procedures, please consult the documentation.
Regards,
Jerry
PortalPM
Similar Messages
-
how i get source page name?
i am want to implement MVC 2 model.
i made a Servlet controller.java, now i want to get source page name
how i achieve?are you meant "servlet name" because never heard anything like "source page name"
-
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. -
Dear Expert,
I have one requirement like to read the selected workset name in portal by the current user.I have read two documents regarding how to retrieve the PCD contents (iViews, Pages, Worksets and Roles) and its properties like Created by, Changed by, Last changed by and others using PCD API.
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/6112ecb7-0a01-0010-ef90-941c70c9e401?overridelayout=true
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/508baf88-9335-2d10-efa6-c6ad61e5fc4b?quicklink=index&overridelayout=true
But I am not able to understand how to get the specific name of the workset which is currently selected by the user.Can you please help me.
I am using portal 7.0.
Thanks & Regards,
PatralekhaHi Expert,
I found that we can use Interface INavigationHelperService to read Portal Role selected by user at runtime from http://scn.sap.com/thread/52194
But this class is available in SAP NetWeaver 7.30 Enterprise Portal .
But in SAP NetWeaver 7.0 Enterprise Portal that interface is not available.
INavigationService is available there.
But didn't get any proper discussion on this interface for the same requirement.
Can you please help me.
Thanks & Regards,
Patralekha -
How to get the page number in the break section?
Hi expert,
The user wants the page number came right after the Break group name if the break section contains more than 1 page. E.g.
ABC Compnay
XXXXXXXXXXX XXXXXXXX
XXXXXXXXXX XXXXXXXXXXXX
BCD Company, p 1
XXXXXXXXXXX XXXXXXXX
XXXXXXXXXX XXXXXXXXXXXX
BCD Company, p 2
XXXXXXXXXXX XXXXXXXX
XXXXXXXXXX XXXXXXXXXXXX
CDE Company
XXXXXXXXXXX XXXXXXXX
XXXXXXXXXX XXXXXXXXXXXX
How to get the page number in section break level?Hi Wes
* Create a Field on the margin.
* Set its "Source" to "Page Number"/"Physical Page Number".
* Click "Page Numbering" button.
* In "Reset At" list box, choose the Repeating frame that surrounds your detail group in the layout.
This should cause Reports to increment the page number until the "Company" repeating frame resets.
Regards
Sripathy -
Quick doubt.. from cursor vairable how to get into page vairable
Hello
i am creating an apex page where i have 2 regions. From the Top region stores all fields entered into the bottom region
Text fields like first name and last name and address fields are in region 2(bottom).After region 2, i have a add person button.
Once i click add person, that person will get into top i.e region 1.
Now, Region 1 got person1 first name ,last name
person2, first name,last name
etc..
I am not able to display like p1_first_name,p1_laast_name as the list is not stable..it is growing and not showing the person who already got saved..I can retrieve them from DB using a cursor..But from cursor vairable how to get into page vairable..
appreciate ur help..
kpYour explanation is not good enough. You have to make a better description of your problem or create an example at apex.oracle.com.
Denes Kubicek
http://deneskubicek.blogspot.com/
http://www.apress.com/9781430235125
http://apex.oracle.com/pls/apex/f?p=31517:1
http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494
------------------------------------------------------------------- -
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 the Text name to pass in the parameter header in save_text
Hi,
I am trying to change the long text of operation for historical order by using the flat file.I am using the save_text to do this.I would like to know how to get the text name in order to pass the parameter header in save_text.
I went to the tcode iw62 to get the header information of the long text.300100000009200000001
i would like to know what this 1000000092 indicates and where is this value updated in the table so that i can link it thru the order no to get the link and pass it in the text_name.
can anyone help me out?
krishnanHi,
Your query is.
I went to the tcode iw62 to get the header information of the long text.300100000009200000001
i would like to know what this 1000000092 indicates
In above number
300 - Client
1000000092 - AUFPL - Routing number of operations in the order (You can fetch this from table HIVG)
00000001 - APLZL - General counter for order ( You can fetch this from table HIVG).
BR,
Vijay -
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 the VARIANT name in the program
Hi Guys,
Can somebody tell me how to get the VARIANT name in a program.
I have to perform some code with specific variant only. So I want to check in program which variant has been used to call the program.
Thanks,Hi,
Variants are stored in table VARI and VARID.
You can use RS_ALL_VARIANTS_4_1_REPORT to get all the variants for a report program.
please check out the link below it will be helpful to you
Re: Programs for a transaction variant
Hope this helps.
ashish -
How to get the role name in which query is published ?
Hi Experts,
Is there any table where i can get the name of the role in which a particular query is published. I know that if i have a role , i can check in pfcg giving that role name and in menu tab i can see all the queries published under that role. But if i know query but not role how to get the role name . Is there any table or functon modules or programs to get the information.
Thanks & Regards
Vamsi KiranCheck this table
AGR_HIER -
How to get the field name of an internal table during runtime?
How to get the field name of an internal table during runtime?
Hi Sudhir,
Declare and Use Get Cursor Field in Your Prm to get the field Name of the Intenal Table
Example Code:
<b> DATA: v_field(60). " Insert this code.
GET CURSOR FIELD v_field. " Insert this code.</b>
<b>CHECK v_field = 'ITAB-KUNNR'. " Insert this code. (or)
Write: v_field.</b>
Regards,
Ramganesan K. -
How to get the column names of the table into the Dashboard prompt
how to get the column names of the table into the Dashboard prompt
Thanks & Regards
Kishore PHey john,
My requirement is as follows
I have created a Rank for Total sales by Region wise i.e RANK(SUM(Dollars By Region)) in a pivot table.
My pivot table looks like this
COLUMN SELECTOR: TOTAL US , REGION , DISTRICT , MARKET
---------------------------------------------------- JAN 2009 FEB 2009 MAR 2009
RANK REGION DOLLARS DOLLARS DOLLARS DOLLARS
1 CENTRAL 10 20 30 40
2 SOUTHERN 10 30 30 70
3 EASTERN 20 20 20 60
4 WESTERN 10 20 30 40
When i select the District in column selector
Report has to display rank based on Total Sales by District. i.e
------------------------------------------------- JAN 2009 FEB 2009 MAR 2009
RANK DISTRICT DOLLARS DOLLARS DOLLARS DOLLARS
for this i need to change the fx of rank i.e RANK(SUM(Dollars By Region)) to RANK(SUM(Dollars By District)) and fx of Region i.e Markets.Region to Markets.District dynamically.
so , i need to capture column name of the value selected from the column selector and dynamically i need to update the fx 0f RANK & fx of region.
do you have any solution for this?
http://rapidshare.com/files/402337112/Presentation1.jpg.html
Thanks & Regards
Edited by: Kishore P on Jun 24, 2010 7:24 PM
Edited by: Kishore P on Jun 24, 2010 7:28 PM -
How to get the Page Number in CS3 with VB?
Hi, Everybody
I use the Visual Basic to read the words and their page number where the Words are at. I want to do it according to Story. Some TextFrame of the Story waw placed in other pages: How can I get the Page number according to the Word that is selected?
For myStoryCounter = 1 to Document.Stories.Count
Set myStory = Document.Stories.Item(myStoryCounter)
For myWordCounter = 1 to myStory.Words.Count
Set myWord = myStory.Words.Item(myWordCounter)
myWordContents = myWord.Contents
Rem ** How to Get the Page Number according to the Word ***
Next
Next> But I don't understand why Item(1) are set.
because Word can have more than one parent TextFrame - when split across TextFrames
only Character have one ParentTextFrame accessed also by ParentTextFrames.Item(1)
> why Story.TextFrames.Count alway is 0, Is it bug?
no - it's not bug
in older IDs - Story.TextFrames collection refer to all TextFrames as containers for Story text
but in CS3 - collection Story.TextFrames contain all TextFrames inserted as InLine/Anchored objects - same like Story.Rectangles or Story.Ovals
in CS3 - when you want to refer to TextFrames as containers for Story text - you need to use Story.TextContainers - because now you can link TextFrame and Text-On-Path as Story - Text-On-Path isn't TextFrame
robin
www.adobescripts.com -
In Mac how to get the Full name of a file Programmatically?
Hi Friends,
I am doing one Mac application for displaying the contents of a file. I can able to get some information about the file by using this code below...
NSDictionary *dict=[fileManager attributesOfItemAtPath:myPath error:nil];
Now I want to get the some other informations also like Full Name, copyRight, version... So Please suggest me how to get the full name of a file Programmaticallly?Your question doesn't make sense.
First off, if you are going to get the attributes of a file, you need its full name before you can do anything. So that's part one taken care of.
This function returns a dictionary full of typical file information (type, size, mod dates, etc.) as well as some HFS data (creator code, type code) which, I strongly suspect, are not "pulled out of the file" but rather generated on the spot. (See NSFileManager for the full list of attribute keys.)
The other items you hoped of retrieving are not part of the regular file system. Sure, a Truetype font has a copyright string and a version, but what about an HTML file? A PNG? A text file you just created?
There simply are no standard functions to retrieve copyright and version.
Maybe you are looking for
-
Help on the selection screen.....Select-options default values
Dear Friends, We have one requirement,i.e. In Report program i am using select-option once will execute the program ALV report will be generated.In ALV Report we have one button like 'WM DATA'.Once click the WMDATA one pop-up is displaying...In that
-
Changing SID using Sysprep without starting from scratch
Long story short, we have a vmware environment with several vm's set up by an outside vendor. The vm's were set up and put into production just in a workgroup. A domain was set up on another physical server but never implimented. Had to work on se
-
Cant find my pics from photostream in my icloud
The memory on my iphone 4 is running low, so i want to get the photos from my photostream out. I thought they automatically loaded into my icloud account but when i go there i do not see a folder for pictures. Anynone know what i am doing wrong?
-
Having problems getting IDSM-2 to report to MARS. Running IDSM 6.0.1 and MARS 4.3. What is the basic setup to make this work?
-
How do I spend last $0.10 store credit so I can change countries?
Hi. I've recently moved from US to New Zealand and I can't change my store country to NZ because of $0.10 store credit is left. I don't have any US credit card - I always used gift cards. Also, my PayPal does not have any US credit cards attached, so