How get source page name
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"
Similar Messages
-
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
ShaI 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 -
How get all table name from database
hi master
sir
how get all table name from databaseThe big question is 'why'.
Selecting from view 'dba_tables' will indeed give the list of all tables in the database, but that includes the dictionary tables and the internal tables, and many others that are probably not of interet to a person who needs to ask this question. Besides, the dba_tables view requires access to a DBA account.
There are several other views: "user_tables" will list all the tables in this user's schema; and "all_tables" will list all the tables this user can access in some way.
The above do not, of course, include any information about synonyms, sequences, views, indexes and so on.
The correct answer and the meaningful answer may be two different things. -
How to retrieve Page name?
I have a select:
select
step_id Page
, count(step_id) Hits
from
wwv_flow_user_activity_log
where
flow_id = &APP_ID.
and (time_stamp >= (sysdate - 7))
group by
step_id
order by
count(step_id) DESC
Where I show most frequent pages. How to retrieve Page name and link to that page...muist be SQL based and somehow joind with wwv_flow_user_activity_log view.
THX!<br>Guys,
<br>this thread is somehow quiet but I have more questions...To retrieve page_name you have to query FLOWS_020000.WWV_FLOW_STEPS (or FLOWS_020100.WWV_FLOW_STEPS in XE).
<br>to be able to select data yo uneed to grant GRANT SELECT ON FLOWS_020000.WWV_FLOW_STEPS TO "schema";
<br>As you can see here is one mistery...schema owner on different platform...! Is there any way to make unique approach to this if data are develped on HTMLDB 2.0 on 10gR2 and the production is on XE?
<br>THX! -
Hi,
I have a JSP, which is redirected to a servlet. I want to know from which page the request to the servlet is coming from, but am not able to figure that out. If you could please guide me for the same.
Thanks and Regards,
Sapan..Hi,
I found the way out.The page name is in the header of the request object. You can get the page name by giving request.getHeader("referer").
Thanks and Regards,
Sapan. -
Is possible to get the page name from the _pageid
Is possible to get the page name from the _pageid displayed in the url?
It must be stored in a portal oracle table does anyone know which ones or whether there is a api to translate the pageid.
Thanks in advance.You have you execute this query, using both the numbers included in the parameter pageid:
select display_name from portal.wwsbr_all_folders
where caid = :first_number
and id = :second_number -
How to get source table name according to target table
hi all
another question:
once a map was created and deployed,the corresponding information was stored in the repository and rtr repository.My question is how to find the source table name according to the target table,and in which table these records are recorded.
somebody help me plz!!
thanks a lot!This is a query that will get you the operators in a mapping. To get source and targets you will need some additional information but this should get you started:
set pages 999
col PROJECT format a20
col MODULE format a20
col MAPPING format a25
col OPERATOR format a20
col OP_TYPE format a15
select mod.project_name PROJECT
, map.information_system_name MODULE
, map.map_name MAPPING
, cmp.map_component_name OPERATOR
, cmp.operator_type OP_TYPE
from all_iv_xform_maps map
, all_iv_modules mod
, all_iv_xform_map_components cmp
where mod.information_system_id = map.information_system_id
and map.map_id = cmp.map_id
and mod.project_name = '&Project'
order by 1,2,3
Jean-Pierre -
Hi,
I need to know how get a source table name. I need to get a source table name and do some transformation. I am adding the step in IKM to do this and therefore need source table name in there.
<%=odiRef.getSrcTablesList("","[RES_NAME]","","")%> gives work table name (C$_0XXXXX) whereas actual source table name is expected.
Could someone please help?
Thanks.Hi,
May i add a point?
In IKM level, if u use this API it will always return u C$ table name only since for IKM C$ is the source. You need to capture and use this API in LKM level.
In LKM add a step in Command on target and technology as Jython and try the below code.
mySourceTable= '<%=odiRef.getSrcTablesList("", "[RES_NAME]", ", ", "")%>'
And later in IKM use this variable for ur transformation.
Thanks,
Guru -
** How to get Source File Name thru XSLT Mapping
Hi friends,
We require source file name after message processing (SXMB_MONI) in the output structure. We understad from Forums and blog 2664, this is possible thru UDF - DynamicConfiguration class. This UDF will work if we use message mapping. But, in our case we are using XSLT mapping. So, how do we call the same from Java Pacakage ? (Imported Archives). For writing java class separately, what are the changes to be made in the program?
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
String ourSourceFileName = conf.get(key);
return ourSourceFileName;
Kindly reply, friends.
Kind Regards,
Jeg P.Hi,
This is the example in this similar manner u have to call the method in which u have to write the code for picking the source file name.
<name>
<xsl:if test="function-available('javamap:concat')">
<xsl:value-of select="javamap:concat($first, $last, $inputparam)"/>
</xsl:if>
</name>
for reference check the Link,
http://help.sap.com/saphelp_nw04s/helpdata/en/73/f61eea1741453eb8f794e150067930/frameset.htm
Regards,
Phani -
How to make page name and title change with AJAX driven site?
I am building a travel site. I am a fairly basic but longtime
DW user. I built the site in DW. I made a template and all pages
are then based off the template. I hired a programmer to do the
complicated hotel searching code. He says that he used AJAX and I
know also php (all the pages are whatever.php)
What I don't like and he says can not be changed, which there
must be a workaround for, is that, for example, a user will be on
the spahotels.php page. Or perhaps they are on the whatshot.php
page reading the latest article about jungle treehouse eco lodges.
So far so good, the name of the page is "spahotels.php" or
"whatshot.php".
But, on each (and all) of the site pages we also have a hotel
search on the top left nav. So from any page, the user can do a
hotel search. The problem I have is that...once they do this....the
results they are given in the main window of the page, are totally
unrelated to spahotels or whatshot about jungle lodges...so if they
have now searched for tokyo business hotels, it looks ridiculous
and confusing that the page name says "spahotels.php" and the page
title says Find Great Spa Hotels.
My programmer says AJAX was the best way to do the hotel
search functionality (which I dont know anything about so if he
says so maybe so but I don't know) but he also says there is no way
to make the page name or title change to reflect what the user has
done on the left search function. Makes sense..they are clearly
unrelated.
However...this is a terrible user experience in my opinion.
So...one idea he had was to find a javascript code that changes the
page title/name.
Does anyone have some ideas of how to solve this issue?
The page (rough, we are still developing) is
http://www.bluehippotravel.com/spahotels.php
Try doing a seach for something on the left nav hotel
search...and see what I mean...the name of the page stays
spahotels.php and the title stays Spa Hotels. I get it...I
think...why it does...but it looks stupid if you are looking for
something else in your search (which of course the user will be).
Any ideas??? Thank you so much in advance!!
Lauratheir is no out of box way to avoid this but you can change this in the Designer.
check this technet for more details how to do:
http://social.technet.microsoft.com/wiki/contents/articles/17557.sharepoint-2013-change-page-title-in-wiki-sites.aspx
also good information here
http://stackoverflow.com/questions/10799682/change-sharepoint-main-page-name-without-changing-url
http://www.topsharepoint.com/change-title-tag-on-sharepoint-sites
Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog -
Get source file name in the structure itself or in the payload
Hi everyone,
I have a task regarding mapping
In my structure , i defined a field for Filename . What I need is, what ever source file name am sending, that should be mapped into this filed.
If am sending inputfile.txt.
My output file should appear like this,
<?xml version="1.0"?>
<message id=u201DmessageIDu201D>
<header>
<filename>D:\\inputfile.txt</filename>
</header>
<body>
FileContent
</body>
</message>
Any help would be appreciated. Do I need to create any UDF. If So please provide.
Regards,
VarunHi Varun,
are u using the same UDF that I replied. also note that the variable key should be declared only once.
Use this without changing any thing. It works for me...
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
String ourSourceFileName = conf.get(key);
key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","Directory");
String dir = conf.get(key);
return dir+'/'+ourSourceFileName;
Also let us know where do you het this error..
Thanks
SaNv... -
How Get the column name of LOV with code??
Hi i now that exist a SET_COLUMN and i cant change the value the any column, now i want to know the value column in the LOV in any moment. Somebody us made that? i contact a metalink and their tell me that is not possible that not exist a GET....
Thanks.yea but i am not used record group only a LOV with values static. you thiks that i know the values is true but i need with code change the values but before i need know the value.
-
How to get the Portal Page name from PLSQL?
Can anyone tell me how to get the portal page name from my dynamic page using plsql?
Apparently you can get the page id and work it out from there, but my calls to get the page id are not returning any values anyway.
My code for attempting to get the page id is below.
<oracle>
declare
v_pageid varchar2(30);
begin
v_pageid := wwpro_api_parameters.get_value('_pageid', '/pls/portal30');
htp.print('Page is '|| v_pageid);
end;
</oracle>
Ideally I'd actually just like to get the page name. Is there a straightforward way to do this?
Thanks in advance!
SarahFew clarifications -
1. wwpro_api_parameters cannot be used to get default portal
page parameters such as '_pageid', '_dad', '_schema' etc.,
2. Page information can be obtained through any components which
are available in that particular page. For example, in case of
dynamic page, we need to publish it as a portlet and add it to the
page. This process creates necessary packages in the DB, but we
will not have access to the portlet methods.
So, I would prefer creating a simple DB provider & portlet and access
page title from its show method as follows -
//Declare local variable l_page_id, l_page_title as varchar2
select page_id into l_page_id from wwpob_portlet_instance$ where
portlet_id = p_portlet_record.portlet_id and
provider_id = p_portlet_record.provider_id;
select name into l_page_title from wwpob_page$ where id=l_page_id;
More information on DB provider can be found at
http://portalstudio.oracle.com/pls/ops/docs/FOLDER/COMMUNITY/PDK/articles/understanding.database.providers.html
Secondly, usage of wwpro_api_parameters.get_value method is
incorrect. This method expects two arguments -
<ul>
<li><b>p_name : </b> The name of the parameter to be returned.</li>
<li><b>p_reference_path : </b> An unique identifier for a portlet instance on the current page.</li>
</ul>
p_reference_path would be something like 99_SNOOP_PORTLET_76535103 and not some type of path as its name suggests.
The following code fragment fetches all parameters available
for a portlet.
Note : Copy this code into 'show' method of your portlet.
//Declare l_names, l_values as owa.vc_arr
* Retreive all of the names of parameters for this portlet
l_names := wwpro_api_parameters.get_names(
p_reference_path=>p_portlet_record.reference_path);
* Retreive all of the values of parameters for this portlet
l_values := wwpro_api_parameters.get_values(p_names=>l_names,
p_reference_path=>p_portlet_record.reference_path);
//Loop through these arrays to get parameter information
htp.p('<center><table BORDER COLS=2 WIDTH="90%" >');
htp.p('<tr ALIGN=LEFT VALIGN=TOP>');
htp.tableData(wwui_api_portlet.portlet_heading('Name',1));
htp.tableData(wwui_api_portlet.portlet_heading('Value',1));
htp.tableRowClose;
if l_names.count = 0 then
htp.p('<tr ALIGN=LEFT VALIGN=TOP>');
htp.p('<td COLSPAN="2">'
||wwui_api_portlet.portlet_text(
'No portlet parameters were passed on the URL.',1)
||'</td>');
htp.tableRowClose;
else
for i in 1..l_names.count loop
htp.p('<tr ALIGN=LEFT VALIGN=TOP>');
htp.tableData(l_names(i));
htp.tableData(l_values(i));
htp.tableRowClose;
end loop;
end if;
htp.p('</table></center>');
Hope it helps...
-aMJAD. -
How to get the page layouts programmatically and create a page for that pagelayout
how get the page layouts programmatically and create a page for that pagelayout and add webpart
please help me with da code.Thanks
adityadugyalaHi if your page layouts alreday created then create new page programaticaaly and apply your page ayouts to that page by coding you can do something like following
PublishingWeb publishingWeb =
PublishingWeb.GetPublishingWeb(web);
PageLayout[] layouts = publishingWeb.GetAvailablePageLayouts();
PageLayout layout = layouts[0];
string pageName =
"MyPublishingPage5.aspx";
PublishingPage newPage = publishingWeb.GetPublishingPages().Add(newFolder.Folder.ServerRelativeUrl +
"/"+ pageName, layout);
newPageUrl = web.Url +"/" + newPage.Url;
newPage.Description = "This my sample publishing page";
newPage.Title = "My Publishing Page";
newPage.Update();
Please follow link
http://blogs.msdn.com/b/sowmyancs/archive/2008/03/15/create-publishing-pages-in-portal-sites-programmatically.aspx
Please mark answer , if you think answer is helpful or correct. -
How to find JSFF name in managed bean
Hi Gurus,
I am new in adf and using 11.1.2.3. How i can find the name of jsff page name in managed bean. For example if i have abc.jsf contains a fragment xyz.jsff. i want when i click on button in jsff page, a pop shows me the name it is xyz.jsff.
Thanks,Hi,
to get the page name,FacesContext.getCurrentInstance().getViewRoot().getViewId() (returns abc.jsf). If you expose the page fragment through an ADF region, then the call is
ControllerContext.getInstance().getCurrentViewPort().getViewId() (returns xyz if the view activity has the same name as the physical file xyz.jsff)
Frank
Maybe you are looking for
-
Can I read a single PDF file on iBooks, Kindle and Adobe PDF?
Hi there, Is it possible to read a PDF file on iBooks and also read that same file on Kindle and Adobe Reader on the iPad? I can't seem to do that and it seems silly to have 3 copies of the same file, in the same format, to be able to read on these 3
-
Witholding Tax on Rebate Credit Memo
Hello SD gurus, Anyone has an idea on how I could deduct witholding tax on my rebate settlement credit memo? Thanks in advance. Rose
-
Dear ALL, I have a advanced table in that i have a radion button for single selction and added a column with check boxes for multiple selction, now i am able to select multiple rows , but how can select all the rows at a time, i know i can use multis
-
I won't let me change his iPad so that all my iCloud stuff isn't downloading to his iPad???? Help!
-
In my web site template I have header style with an image in it with width of 200px. I then have a headertext style beside it, auto width to fit page, and text in it that says "Welcome". Below the header style with the image I have a spry accordion