How to create dynamic HTML page using PL/SQL code in APEX.
hello,
I am woking on one APEX application in which i want to create one dynamic HTML page on button press using PL/SQL code.
Thanks
It is possible to create HTML page with dynamic content. One way would be creating hidden field (e.g. P1_HTML on page 1) with dynamic HTML and on button click you redirect to page 2 and pass P1_HTML item value to item P2_HTML on page 2. On page you must have PL/SQL region. You can then render your dynamic HTML with code:
htp.p(:P2_HTML);
Don use APEX URL for passing HTML value. Problem and solution is described here: http://blog.trent-schafer.com/2011/04/03/dont-pass-string-parameters-in-the-url-in-apex-its-a-bad-idea/
Edited by: MiroMas on 3.2.2012 3:20
Similar Messages
-
How to generate dynamic HTML pages using Swing Application?
Hello,
I am writing a Java application to connect to a local light-weight java database. I would like to generate and present a HTML on the fly after selecting records from a database. At server side, I could easily use JSP/Servlet to do this. How can I do this on a desktop client machine using Java application? I do not want to install Apache web server on the desktop machine. Any help will be greatly appreciated. Thanks in advance.
DominicThe way u need to generate your html pages depened on what u want to generate,
anyway what i can help with, is how to display a generated page.
u have to use JEditorPane with HTMLEditorKit and HTMLDocument to display any HTML.
also u can use the methods provided with the above objects to generate your html format.
I hope I helped. -
How to create a HTML page like iView, thanks in advance!
How to create a HTML page like iView, thanks in advance!
I'm a newcomer, would you please tell me how to create a HTML page in WebDynpro ? In fact, i want create one welcome page which use html format and include some javascript.
thanks again.jakinapallykrishna , thank you very much for you reply.
The pdf file is a simple application, but i want know how create a view in HTML format (<HTML>... </HTML>), maybe use HTMLB control, i don't sure it.
In fact, I need create a view in portal, some pictures in it, once mouse over one picture, it need change another picture replace old one. I don't know how to do it, just know it can be handled in HTML page. So, i need help.
Thanks. -
Hello,i am very new to dreamweaver 8,and i have searched
everwhere possible on how to create a html page.My website has a
navegation bar.And on the navegation bar it has links,like
forums,your accounts,and etc,but thats already integrated with the
website.Now i have an option in the admin area,wher i can create a
new category so that it would show up in the navegation bar,and i
have a drop down menu where i cans select what to put in that
category.But also i have an option to put a external url,so that
when they click on it,it will take them to where that link is
directed.The point is that i asnt to make a category in the
navigation menu that says Lirics.So that i can put lirics of songs
and etc,and that when users click on that link it will take them to
the lirics page..Do you guys understand?Sorry for the bad english,i
am now quite good with it..The most eloquent description will do nothing for us. To get
a solution to
your problem, we must see your code. Can you upload the file
and post a
link to it, please?
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"don_playboy" <[email protected]> wrote in
message
news:eaadi9$kjf$[email protected]..
> well what i am trying to say is that i created a Folder
named
> Liricas(which is
> lirics in spanish),on my ftp.Now since i created that
folder in my ftp,it
> will
> show on my navegation menu control panel.But it will be
blank since it has
> nothing on it.Now what i want to do is,sicne i created
that folder,and i
> go to
> my nav meny control panel and select it as a category it
will show on my
> navegation menu(the Liricas that is),but when u click it
it has
> nothing,since
> it has no html or anything in the category.Now i want to
create a html
> page so
> that i can put albums names,and under those albums name
i want to create a
> link
> or category thats for lirics.So all this will be stored
on the ftp.and
> when
> users click on the Liricas category on my navigation
menu,it will take
> them to
> the liricas index page,which will show all the lirics...
>
>
>
> -
Launch HTML Page using PL/SQL package
Hi,
Am trying to launch an HTML page in which i have used javascripting using
catridges htp.p
while registering the function , only in the HTML call i have given package.procedure name
are there any special parameters that i need to pass in the package.
How do i build the url of the page to display in the package?
the problem i am clicking on the function i am getting logged as the function is unable to find the right url i guessMOD_PLSQL is an Apache (Web Server) extension module that allows one to create dynamic web pages from PL/SQL packages and stored procedures. It was formerly called the Oracle PL/SQL Cartridge and OWA (Oracle Web Agent). So I guess, you are referring to the same.
As for UI development, why don't you use the Oracle Applications Framework [OAF]? That's the standard for any UI development in apps. As mentioned earlier, mod pl/sql code is not supported on R12, so why use it? Better have a look at OAF.
--Shiv -
How to retrieve the current User using PL_/SQL code?
Hi,
How can find the current logged user within a Dynamic Page using PL/SQL code?
Thanks.Hi,
There is a function wwctx_api.get_user which returns the logged in user. You can use this in your plsql code.
Thanks,
Sharmila -
How to show an html page using JEditorPane in applet.
I have never use jeditorpane with applet so i dont know how to show a html page.if you have some code or any example then please posted that.Thanks
public class MyApplet extends JApplet{
private JTextPane textPane = null;
public void init(){
HTMLEditorKit editorKit = new HTMLEditorKit();
HTMLDocument htmlDoc = (HTMLDocument)editorKit.createDefaultDocument();
textPane = new JTextPane();
textPane.setEditable(false);
textPane.setEditorKit(editorKit);
textPane.setContentType("text/html");
textPane.setDocument(htmlDoc);
Container c = getContentPane();
c.add(new JScrollPane(textPane), BorderLayout.CENTER);
c.add(buttonPanel, BorderLayout.SOUTH);
c.add(Box.createVerticalStrut(5), BorderLayout.NORTH);
c.add(Box.createHorizontalStrut(5), BorderLayout.EAST);
c.add(Box.createHorizontalStrut(5), BorderLayout.WEST);
public void setHtml(String html){
// you should check the textpane's document to detrmine if there
// is already text in there..if so, then clear the textpane text and then
// set the new html...Note: JTextPane only show basic Html ..
// not like a full blown browser
textPane.setTextt(html);
textPane.setCaretPosition(0);
} -
How to display a HTML page using ABAP program.
Hi all,
I know that this is easy and possible too but I haven't worked on this kind yet. I need to display a screen/ABAP program like TCODE PPMDT, where an HTML page is to be displayed and on the click of the HTML links provided, I need to navigate to someother transaction codes.
Cheers,
SamHi,
See this sample code
REPORT ZTESTHTML .
DATA: ok_code LIKE sy-ucomm,
myurl(132).
data: custom_container type ref to cl_gui_custom_container,
myhtml type ref to CL_GUI_HTML_VIEWER,
repid like sy-repid.
DATA events TYPE cntl_simple_events.
DATA wa_events TYPE cntl_simple_event.
CLASS lcl_event_receiver DEFINITION
CLASS lcl_event_receiver DEFINITION.
PUBLIC SECTION.
CLASS-METHODS NC_Handler
FOR EVENT NAVIGATE_COMPLETE OF CL_GUI_HTML_VIEWER
IMPORTING URL.
ENDCLASS.
CLASS lcl_event_receiver IMPLEMENTATION
CLASS lcl_event_receiver IMPLEMENTATION.
METHOD NC_Handler.
myurl = URL.
ENDMETHOD.
ENDCLASS.
start-of-selection.
set screen 100.
*& Module USER_COMMAND_0100 INPUT
text
MODULE USER_COMMAND_0100 INPUT.
CASE OK_CODE.
WHEN 'BACK'.
CALL METHOD myhtml->go_back
EXCEPTIONS cntl_error = 1.
if sy-subrc ne 0.
endif.
WHEN 'FORW'.
CALL METHOD myhtml->go_forward
EXCEPTIONS cntl_error = 1.
if sy-subrc ne 0.
endif.
WHEN 'STOP'.
WHEN 'EXIT'.
LEAVE PROGRAM.
WHEN 'REFR'.
CALL METHOD myhtml->SHOW_URL
EXPORTING
URL = myurl
IN_PLACE = 'X'
FRAME = ''
EXCEPTIONS
CNTL_ERROR = 1
CNHT_ERROR_NOT_ALLOWED = 2
CNHT_ERROR_PARAMETER = 3
DP_ERROR_GENERAL = 4.
WHEN 'OTHERS'.
CALL METHOD CL_GUI_CFW=>DISPATCH.
ENDCASE.
ENDMODULE. " USER_COMMAND_0100 INPUT
*& Module STATUS_0100 OUTPUT
text
MODULE STATUS_0100 OUTPUT.
SET PF-STATUS 'MENU'.
if myhtml is initial.
CREATE OBJECT custom_container
EXPORTING
CONTAINER_NAME = 'CONTAINER1'
EXCEPTIONS
CNTL_ERROR = 1
CNTL_SYSTEM_ERROR = 2
CREATE_ERROR = 3
LIFETIME_ERROR = 4
LIFETIME_DYNPRO_DYNPRO_LINK = 5.
CREATE OBJECT myhtml
EXPORTING
PARENT = custom_container
EXCEPTIONS
CNTL_ERROR = 1
CNTL_INSTALL_ERROR = 2
DP_INSTALL_ERROR = 3
DP_ERROR = 4.
wa_events-eventid = CL_GUI_HTML_VIEWER=>M_ID_NAVIGATE_COMPLETE .
wa_events-appl_event = 'X'.
APPEND wa_events TO events.
CALL METHOD myhtml->set_registered_events( events = events ).
SET HANDLER lcl_event_receiver=>NC_Handler FOR myhtml.
CALL METHOD cl_gui_cfw=>flush
EXCEPTIONS cntl_system_error = 1
cntl_error = 2.
endif.
ENDMODULE. " STATUS_0100 OUTPUT
Svetlin -
How to call an HTMl page using URL in OAF?
Hi,
There is a page that has a toolbar. There we have to provide a help menu in which we need to display a customized html page. Therefore, we need to set the URL property in such a way that it should map to the path where this HTML file is located.
Kindly provide a solution.Create a JSP page. Put your HTML code inside it. Place the JSP page under OA_HTML directory in server.
Mention the JSP page name in destination URL property of the link item.
-ANand -
How to click a HTML page button from Java code?
Know the HTML page name and the button id in this page, how to click the button automaticly in java code(Like in awt or swing)?
ukkus wrote:
Hi,
Thank for the quick reply,
It will be very helpful if you can tell me how can we do this, I am not able to get how to do the same, with the link that you have provided.You haven't even had time to read it yet.
>
Actually main scenario is:
I have to RUN a JSP report which will call this script. That JSP report and script is in UNIX server. Can you please explain how to perform this task.Running this from a JSP is an even worse programming practice than running it from a standalone application. -
How to create user in workspace using command line with Internal APEX
Hi fellows,
I'm newbie with APEX and my i try doing something different. I need to build one application in Internal for create users in another workspaces. So, for do this, need use command line and PL/SQL code.
I know exists a CREATE_USER procedure. But, this procedure just create a user in Internal, not in workspace, like i want.
Its possible? Someone can help me?
Example of create_user procedure:
BEGIN
APEX_UTIL.CREATE_USER(
p_user_name => 'NEWUSER2',
p_first_name => 'FRANK',
p_last_name => 'SMITH',
p_description => 'Description...',
p_email_address => '[email protected]',
p_web_password => 'password',
p_developer_privs => 'ADMIN:CREATE:DATA_LOADER:EDIT:HELP:MONITOR:SQL',
p_default_schema => 'MY_SCHEMA',
p_allow_access_to_schemas => 'MY_SCHEMA2',
p_change_password_on_first_use => 'N',
p_attribute_01 => '123 456 7890');
END;
Thank you.Did you try it like this?
DECLARE
l_workspace_id number;
BEGIN
l_workspace_id := apex_util.find_security_group_id (p_workspace => 'MY_WORKSPACE_NAME');
apex_util.set_security_group_id (p_security_group_id => l_workspace_id);
APEX_UTIL.CREATE_USER(
p_user_name => 'NEWUSER2',
p_first_name => 'FRANK',
p_last_name => 'SMITH',
p_description => 'Description...',
p_email_address => '[email protected]',
p_web_password => 'password',
p_developer_privs => 'ADMIN:CREATE:DATA_LOADER:EDIT:HELP:MONITOR:SQL',
p_default_schema => 'MY_SCHEMA',
p_allow_access_to_schemas => 'MY_SCHEMA2',
p_change_password_on_first_use => 'N',
p_attribute_01 => '123 456 7890');
END; -
Studio 12.0, how to create dynamic sections to use in Workstation?
Hi,
I come from the 11.X world and I've worked mostly with Sections. I haven't worked with Paragraphs even in 11.X. I got a project coming up that requires 12.0 and want to get my feet wet by asking a question about how to construct what will need to be done.
This corr system will be working with Workstation. What I'm trying to do is allow the user to select from either a choice (A or B, Y or N), or a checkbox list (where they can pick more then one), and based on the selected choices, either one or many sections will populate the form and the user can interact with the newly appended sections.
What's the best way to go about this?
I'm looking at the "Documaker Studio User Guide, version 12.0", chapter 6. On page 252, "Creating Paragraph Lists", and this sounds like what I'll need to do. I would then click on the "Select One" checkbox when creating a multiline field to append these 'paragrahs' into.
Right now I'm just trying to get an early feel to what my options are as far as doing what I need. I feel I'm on the right track but was wondering if there are other options available.
thanks!Thank you Gaetan, I appreciate your response. One last question.
Pretend I have a ParagraphList with 4 paragraph choices. In two of those paragraph choices, I need each of them to have another 2 paragraph choices EACH.
So I know that you can't insert more MLT fields in paragraphs. Because of this, I don't think I'll be able to use PSL's and PAR's if I have multi level selections. Can anyone verify that this is correct? or am I missing something?
Since I will need a table selection for multiple sections, and those sections needs to be able to call additional tables for for more sections, I'm thinking TERSUB is probably my best bet. This could go on for three or so levels.
Any inputs? thanks. -
How to create a web page for a transaction code
Hi All,,
i ve created a T-code for a program and i want to put tat T-code in to web page or BSP page or as a web link.
Is their any way to do that.. If yes,, please tell me the procedure of how to do it,,
Thanx in advance,,
Ill assign points
DineshI wanted to call the transactio code from a web link or web page,, i ven't created any BSP or any web page,,
Till now, i ve created a transactio code for a ABAP program,..
i need to make it as a web page..
regards -
How to handle Duplication in records using PL/SQL Code
Hi,
I have table
Table name: PM
and with fields wo_no, wo_descr, pm_no, current_date
wo_no is a Primary key.
I am enter data in this table through loop (Many records at a time), when I press a Button. Data is as under in table.
wo_no wo_descr pm_no current_date
1 cleaning the relays 2 12-DEC-04
2 calibration 3 12-DEC-04
Now the problem is that when I again press the button at second time on same time, the following data will be entered as
wo_no wo_descr pm_no current_date
3 cleaning the relays 2 12-DEC-04
4 calibration 3 12-DEC-04
So this is not required, instead of this when I press the button second time a message will appear like duplication of wo_descr, pm_no in same date
I am using form 6i, please send me the code on urgently basis.
Best Regard,
ShahzadUnique key (wo_descr + pm_no + current_date) on PM
and then control the exception WHEN_DUP_VAL_ON_INDEX -
How to create hyperlink in Html page using Java
Hello every one
I want to know that how can I create a hyperlink in Html page using java ?
Let for example
I have code like this and i want to give hyperlink to it using java.
rember that i am creating node using this id="name" which give me multiple value. and i want to assign diff link to each name..?
<tr>
<td ><span id="name"></span>
</tr>but i m using this code to create node in html file
HTMLLIElement li = (HTMLLIElement)appHTML.createElement("LI");
Text txt = appHTML.createTextNode(name);
li.appendChild(txt);
appHTML.getElementById("name").appendChild(li);
this will display all name value which is coming from database,
and i want to assign a hyperlink to it,
I have id with name also so I thought that using id i will
create javascript like
function popup(id)
if(id==1)
var n1 = window.open("../list/name1.html");
if(id==2)
var n1 = window.open("../list/name2.html");
this way i want to popup particular file if i can pass id value in this function
so want hyperlink like
name
Maybe you are looking for
-
Random Shutoff after nvidia video card replacement
This is pertaining to my Macbook Pro 15.4 inch from 2007 running Lion. A few years ago this MBP completely crapped out. About a year later I received a notification in the mail about this big nvidia lawsuit that would allow me to have my computer fix
-
My home computer which has my iTunes library on it how can I transfer all of my music from my iPhone to my new computer
-
Question: What harm is done when I reinstall Oracle VM Manager?
My company is getting serious about using Oracle VM for Real Production, and I'm trying to thoroughly understand what's going on, so I'm ready when things Go Wrong. I just had an incident, documented elsewhere on this forum, where my 2-node cluster g
-
Hello, I have a Sheet with 2 different Tables, one on Top of each other. Each of these 2 Tables have data that have been extracted from other sheets according to various criterias that vary. I want to print these 2 Tables, with not much gap in betwee
-
How to track down php service fault
I have a small FlashBuilder4 project that runs fine on my local computer under Apache, PHP and MySQL.The first thing it does is populate a DataGrid with data from a MySQL table (the grid's creationcomplete event triggers a PHP service call and has it