How to - link from HTML Region to Report Column?
Dear Apex gurus,
Ok, I'll go straight to my question. I have a file upload page with Report Region (conditional) which comes up after file uploading process. Under Report I have a column to delete uploaded file (column has an image in link, target in application, item name: P2_DELETE_ID and value: #DOC_ID#). Basically the Report picks up just uploaded file ID and allows me to delete the file by having Hiden Page Item (P2_DELETE_ID) and Before Header Process:
BEGIN
DELETE FROM EBA_ASSET_ORDER_TEMP_DOCS
WHERE doc_id = :P2_DELETE_ID;
END;with condition: Value in Expression 1 is Not Null, and Expression 1 set to:
P2_DELETE_IDI have and another conditional Region (which is HTML) and it comes up after file uploading process as well. The region Source is:
<div id="FinalMessage"></div>
<br />
<div ><a href="javascript:confirmFileDelete(htmldb_delete_message,'f?p=&APP_ID.:2:&SESSION.:REMOVE_ID:::P2_DELETE_ID:#DOC_ID#');"><img >src="/i/delete.gif" style="position: relative; top: 1px;"/>Remove Uploaded File</a>
</div>where id="FinalMessage" - is the Sucess/Error message from JS
and .....href="javascript:confirmFileDelete....... - is my actual question. So, I am trying to hide my Report Region and show only my HTML region where I will be able using this (.....href....) link delete file from my table. I am able to dele file using report colum link but my .....href.... link dosnt want to delete my file, doen't even want to pick up file ID. Is there a way where I can link my .....href.... link to pull from Report Column????
Thanks
I am getting crazy now:
It gives me an error message whan I am trying to add RETURN to my process, here is my process, seems to be fine and I can fined what is going on, may be I am blind:
DECLARE
n_size NUMBER;
v_filename VARCHAR2(500);
P2_FILE_INPUT VARCHAR2(1000) := v('P2_FILE_INPUT');
BEGIN
INSERT INTO EBA_ASSET_ORDER_TEMP_DOCS (DOC_ID, NAME, CONTENTS, mime_type, CREATED_ON, DOC_SIZE, FILENAME)
SELECT ID, P2_FILE_INPUT, BLOB_CONTENT, mime_type, CREATED_ON, DOC_SIZE, FILENAME
FROM apex_application_files
WHERE NAME = P2_FILE_INPUT
RETURNING DOC_ID INTO :P2_DELETE_ID;
DELETE apex_application_files
WHERE NAME = P2_FILE_INPUT;
END;error:
1 error has occurred
ORA-06550: line 13, column 38: PL/SQL: ORA-00933: SQL command not properly ended ORA-06550: line 10, column 4: PL/SQL: SQL Statement ignored
Edited by: Yasen® on Oct 5, 2009 3:28 PM
Similar Messages
-
How link from html page to a specific frame in flash cs5 as3
Hi!
I'm kinda new around here. I am interested in knowing how to link from a specific html page to a specific frame in flash cs5 as3.
I have a website that I originally began to design in flash but later started developing new pages for it in html. The flash part of it has several pages on different frames and I have created links from the flash part to the other html pages, but, I can only link the html pages back to the main flash home page, and not the other pages in the flash part of the website.
I have read that in cs3 it was possible using the flashvars skip variable, but I don't know how to do it. I have not yet seen any working examples and I could not find any instructions / tutorials online for cs5.
Can someone help here?add a query string, to the swf's embedding html, with variable/value indicating the frame you want to display in your swf. add a javascript function to return the query string (or entire url), call the javascript function from flash using the externalinterface class. and finally add code to your swf to parse the returned url or query string, parse it and then direct your timeline to the appropriate frame.
-
Display word/pdf document in the HTML region or report
Hi,
How to display blob content stored in a table in HTML region or report region.
I already have a process to display the image content.
But my question here is how to display word/pdf document within the html region so that the user can read the document without downloading it.
Any suggestions/solutions would be of great help.
Thanks in advance...
Thanks,
Ramesh P.I was dead wrong.
The display of images from BLOB is a special case because APEX provides a Display Image item type.
Moreover, HTP/HTF packages also do not provide for handling of BLOB content. So AJAX cannot be used.
Which implies that the only way to get binary content, other than images, is with the use of a WPG_DOCLOAD.DOWNLOAD_FILE call.
This in turn implies that it may not be feasible to "inject" the BLOB into an exist HTML DOM in the Browser.
Regards, -
How to add a link to html region to fire a dynamic action?
Hi, guys:
I need to add a hyper link to a html region (I wish it could be a button :( ) , the value of items in this region is loaded by a pl/sql process before loading header. And this link needs to fire a dynamic action to update database. I know how to add a hyper link to this region, but how to set this link so I can fire a dynamic action by clicking this link, could anyone give me a hint?
Thanks a lot in advance.
Sam
Edited by: lxiscas on Apr 11, 2013 5:04 PMHi, Jorge:
Thanks for your reply. I cannot use updateRec, I have to use my own PL/SQL procedure. I tried to use similar way as people set dynamic action for modal page.
I set column link for ncic_approve_link
SELECT SOR_ALIAS.ALIAS_ID,
SOR_ALIAS.OFFENDER_ID,
SOR_ALIAS.FIRST_NAME|| ' '|| SOR_ALIAS.MIDDLE_NAME|| ' '|| SOR_ALIAS.LAST_NAME || ' ' || SOR_ALIAS.SIR_NAME AS " Alias Name ",
NVL(SOR_ALIAS.NICKNAME, 'No Nick names ') AS "Nick Name",
(case when SOR_ALIAS.ncic_verify_date is null then 'NCIC' else null end) ncic_approve_link
FROM SOR_ALIAS
WHERE SOR_ALIAS.OFFENDER_ID = :p216_detail
AND SOR_ALIAS.ADMIN_VALIDATED IS NOT NULL
AND upper(SOR_ALIAS.STATUS) = upper('active')the link attributes is
onclick="return false;" class="alias_ncic" title="NCIC Approve"then I pass two values to two hidden variables:
P216_H_NCIC_APPROVE_TABLE_NAME--->'SOR_ALIAS'
P216_H_NCIC_APPROVE_KEY_VALUE--->#ALIAS_ID#
and I declare a dynamic action to execute PL/SQl code as :
event: click
selection type: JQuery seclector
JQuery selector: a.alias_ncic
declare
begin
sor_admin.update_NCIC_verify_date(:P216_H_NCIC_APPROVE_TABLE_NAME, :P216_H_NCIC_APPROVE_KEY_VALUE);
end;However, the PL/SQL was called but raised exception that both the parameters are null. It looks when user click the column link, the value is not passed to hidden items. Could you help me on this?
APEX 4.1
Oracle 11G R2
Thanks.
Sam
Edited by: lxiscas on Apr 29, 2013 10:00 AM
Edited by: lxiscas on Apr 29, 2013 10:01 AM -
How can i get all links from html file ?
I tried some code:
List<string> metas = new List<string>();
string text = "";
string mys = "";
public List<string> LockedThreads(string filename)
HtmlWeb web = new HtmlWeb();
HtmlAgilityPack.HtmlDocument doc = new HtmlAgilityPack.HtmlDocument();
doc.Load(filename, Encoding.UTF8);
var metaTags = doc.DocumentNode.SelectNodes("//meta");
if (metaTags != null)
foreach (var tag in metaTags)
if (tag.Attributes["name"] != null && tag.Attributes["content"] != null)
text = tag.Attributes["name"].Value;
mys = tag.Attributes["content"].Value;
var linksOnPage = from lnks in doc.DocumentNode.Descendants()
where lnks.Name == "a" &&
lnks.Attributes["href"] != null &&
lnks.InnerText.Trim().Length > 0
select new
Url = lnks.Attributes["href"].Value,
Text = lnks.InnerText
foreach (HtmlNode node in doc.DocumentNode
.SelectNodes("//a/@href | //img/@src"))
metas.Add(node.Name);
In the var linksOnPage i'm getting all the links but some of them not only links for example the first item i see:
[0] = { Url = "/", Text = " " }
Then the second item:
[1] = { Url = "http://rotter.net/cgi-bin/forum/dcboard.cgi?az=login", Text = "התחבר" }
Next i want to add another loop or variable that will contain only the links after im src for example:
<img
src="http://mysite.com"
border="0"></a></TD><TD
ALIGN="right"
VALIGN="TOP"
WIDTH="55%">
So to get only http://mysite.com
So in the end i will have two Lists:
First List will contain all links from the html file.
Second List only links that are in img srcOk i'm using regex now and i can get the links i need:
List<string> metas = new List<string>();
List<string> metas1 = new List<string>();
string text = "";
string mys = "";
public List<string> LockedThreads(string filename)
string[] fall = File.ReadAllLines(filename);
foreach (string hh in fall)
if (hh.Contains("http://rotter.net") && hh.Contains("locked")||
hh.Contains("locked_icon_general") ||
hh.Contains("locked_icon_anchor") ||
hh.Contains("icon_anchor") ||
hh.Contains("locked_icon_fire") ||
hh.Contains("locked_icon_sport")||
hh.Contains("locked_icon_camera")||
hh.Contains("locked_icon_movie"))
Regex linkParser = new Regex(@"\b(?:https?://|www\.)\S+\b", RegexOptions.Compiled | RegexOptions.IgnoreCase);
foreach (Match m in linkParser.Matches(hh))
metas.Add(m.Value);
So now in the metas i have in this case two links.
For example the first link is from this block in the file:
The link i got is : http://rotter.net/forum/Images/hot_icon_anchor.gif
And this is the right link from this block but now how do i get the text from this block and how i connect how do i know that this text belong to the link ? I need to add this text from this block to a new List. Before all that i counted on my own lines
and got the text but that's a bad idea.
I need somehow to get: שרשור תשדירי בחירות מרוכז:
To get the text between the ToolTip',' and the second ',' but not from all the html file only in places of this two links i extracted.
<TD ALIGN="RIGHT"
VALIGN="TOP">
<body onmousemove="overhere()">
<a onmouseover="EnterContent('ToolTip','שרשור תשדירי בחירות מרוכז:','<u><span style=color:#000099;>כתב: menahem בתאריך: 03.03.15
שעה: 08:51</span></u><br>1.<br>http://youtu.be/utUaqyiRkJ8<br><br><br>...'); Activate();"
onmouseout="deActivate()"
href="javascript:void(0)">
<img src="http://rotter.net/forum/Images/hot_icon_anchor.gif"
border="0"></a></TD><TD
ALIGN="right"
VALIGN="TOP"
WIDTH="55%">
<FONT CLASS='text15bn'><FONT
FACE="Arial">
<a href="http://rotter.net/cgi-bin/forum/dcboard.cgi?az=read_count&om=187966&forum=scoops1"><b>
<font color="red">שרשור תשדירי בחירות מרוכז:</b>
</a></font></TD> -
How to create a Hyperlink from HTML region
How can I create a Hyperlink to another site from an html region in an apex page. It should be something simple, but I could not find it
Please help
GeorgeHave a look here:
http://htmldb.oracle.com/pls/otn/f?p=31517:1
There are lots of examples that may be usefull for you.
Denes Kubicek -
Html region print report in APEX 3.0
Hi all!
I have some HTML regions on some pages of my application.
Do you know how to receive print reports of this regions in some formats e.g. PDF, EXCEL, HTML, rtf ?
Is't any idea or any link ?
Regards,
RomanHi all!
I have some HTML regions on some pages of my application.
Do you know how to receive print reports of this regions in some formats e.g. PDF, EXCEL, HTML, rtf ?
Is't any idea or any link ?
Regards,
Roman -
Using Link from one region as parameter to another region on the same page
I have a page with two regions.
Region 1 has a list of items that are dispalyed as links
Clicking on a specific item I need to have a calendar report displayed using the value of the link for eg
Region 1 Region 2
abc Calendar based on the link selected in region1
def
xyz
How is this possibleI spent quite a few hours after this was posted trying to figure it out and I did.
Select Mailbox > Export Mailbox. This asks you a location to export the mailboxes to. It just uploads the exported mailboxes into Dropbox.
Then change the User that I want to import the mailboxes into. Select Import and select the location of where you placed the folder in Dropbox. This then imports the mailbox into a folder called Import. You then drag and drop the copied mailboxes from the Import folder to the folder in the structure you have. If you decide to delete the folders from the import folder list, do this. You can also delete the copied folders from Dropbox if you wish.
Took a while, but I got there and I'm happy now.... -
Use SESSION variable in URL from HTML region
Hello,
I have what looks like a simple question but i've been struggling with it for three days now, and i need your help!
I have a page, with an HTML region. I want to display some links to other pages within the application, so i thought i'd use this:
a href="http://server.xxxx.com:7777/pls/htmldb/f?p=114:13:&SESSION"
But the session ID is not interpreted, and the link doesn;t work. Any idea what's wrong here? or how i should create links with the session id in it?
Thanks!!!! Matt
Message was edited by:
matt_amsterdamMatt,
You've missed off the period (.) off the end, use &SESSION. instead -
How to Link Organizational Structure to a report program
Hi All,
Can anyone pls help me out with my requirement. How can we link a organizational structure created in transaction PPOMW to a report program. Basically i want to send the report output as an XLS attachment to an external email id. For that i need to link Organizational Structure to the report program.
There are many ways of doing it but i want it to be done by linking Organization structure to the report program. Pls help me as soon as possible as its a bit urgent for me.Hi,
Please follow the below function modules and the paramters for reading archived data:
CALL FUNCTION 'ARCHIVE_OPEN_FOR_READ'
EXPORTING
OBJECT = archiving object name
IMPORTING
ARCHIVE_HANDLE = archive read handle
Then in the loop(DO-ENDDO), use this FM:
DO.
CALL FUNCTION 'ARCHIVE_GET_NEXT_OBJECT'
EXPORTING
archive_handle = archive read handle
Then records from the data objects using this FM:
CALL FUNCTION 'ARCHIVE_GET_TABLE'
EXPORTING
archive_handle = archive read handle
record_structure = 'TABLENAME'
all_records_of_object = 'X'
automatic_conversion = 'X'
TABLES
table = internal table for which you want to retrieve records.
ENDDO.
Then close the archive file using this FM:
CALL FUNCTION 'ARCHIVE_CLOSE_FILE'
EXPORTING
archive_handle = archive read handle
This will help u in reading archived data from archive file.
may give some idea also on how to code the read prgram.
Thanks,
Shamim -
Extracting Image Links From HTML
Hi, at the moment am trying to extract image locations from the html files i.e. the "src" part of <img> tag. Have tried using HTMLParserCallback as I know this allow you to extract links from a page. However when I open a document I know to have <img> tags in it, handleStartTag() is not called, I only get all the other tags. Any idea how to solve this problem? Thanks very much,
RossHi,
Here's a portion of a class I wrote a while back....
Note the useMap variable I introduced in the constructor.
Some HTML files had the images in a "map" attribute, others in an "imgmap" attribute.
regards,
Owen
private class CallbackHandler extends HTMLEditorKit.ParserCallback
private HTML.Tag tag; // The most recently parsed tag
private HTML.Tag lastTag; // The last tag encountered
private int nested = 0;
private boolean useMap;
public CallbackHandler(boolean useMap)
super();
this.useMap = useMap;
public void handleText ( char[] data, int pos )
public void handleStartTag ( HTML.Tag t, MutableAttributeSet attSet, int pos )
public void handleSimpleTag ( HTML.Tag t, MutableAttributeSet attSet, int pos )
if ( t.toString().equalsIgnoreCase ( "input" ) )
boolean imagemap = false;
String name = null;
String src = null;
if ( attSet instanceof SimpleAttributeSet )
SimpleAttributeSet sattSet = (SimpleAttributeSet)attSet;
Enumeration atts = sattSet.getAttributeNames();
Object att;
while ( atts.hasMoreElements() )
att = atts.nextElement();
if ( att.toString().equalsIgnoreCase ( "name" ) )
name = (String)sattSet.getAttribute ( att );
// got the name of the attribute
// Note : useMap is a boolean flag for you to set.
// Some HTML pages used "map" attributes, others "imgmap" attributes
if ( useMap )
if ( name.equalsIgnoreCase ( "map" ) )
imagemap = true;
else
if ( name.equalsIgnoreCase ( "imgmap" ) )
imagemap = true;
if ( att.toString().equalsIgnoreCase ( "src" ) )
src = (String)sattSet.getAttribute ( att );
if ( imagemap )
try
imagemapURL = new URL ( src );
catch ( MalformedURLException malEx )
System.out.println ("Invalid Image Map URL : " + src );
public void handleEndTag ( HTML.Tag t, int pos )
} -
How to link from query to executable program (38)
Hi Experts,
I develop one sq01 query and that I want link to my executable program which is created by from se38 to display the interactive report .
The basic list is coming from the query and secondary list is displaying from the program.
please explain how to link the query and program to store the values TRSTI table.
Please help me,its criticalKindly search on the net with the keyword "Report assignment in SAP Query", you will get lot of links.
-
How can I create html link to flash paper files page ?
ex: When I click to page5 link, it shold be open flashpaper
document and goto page 5 automatically.
This feature is avaible at pdf files.
Please help.
Thanks.I looked into this. From what I read, I don't think this is
supposed to work from compiled help. It can work from WebHelp. What
you are looking for is a "named destination" in Acrobat, not a
"bookmark." Apparently these are two separate things, but the named
destination is accessed like an HTML bookmark, e.g. <A
HREF="filename.pdf#destination>. You can also use a page number,
e.g. <A HREF="filename.pdf#page=4">
Hope this helps.
John -
How is "linked from these webpages" determined?
I'm trying to write an automator workflow that will scrape images but it's not working.
Should be straight forward as the html has a bunch of <img tags that reference another site
now is that "on these webpages" or "linked from these webpages"
these arent hrefs which is what I'd expect the later to be but you never know how this is determined.
needless to say neither approach is workingWell in my case it would appear there's something wrong with the actual scraping since View results shows {} for the image urls returned when either linked or this page is selected.
So now i'm screwed because I have no other way to diagnose the problem ie. why the <img elements are being missed by the action. -
How can i define the width of report column in report region ?
Hi,
I have report region and i want to have a static width for each column ( not based on column name of column data ), how can i do it ?
Thanks in advance ,
YoelCan you provide more details pls? I am also trying to change widht of report columns and I do not see anywhere in reports atrributes where it allows me to do that...Thanks so much!
Maybe you are looking for
-
IMac freezing and shutting down
27" iMac late 2011. 3.4 GHz i7, 16 GB RAM. 251 GB SSD system disk, 2 TB SATA disk. Now running Mavericks OS X 10.9.3 - after install of which trouble started. My machine freezes and/or restarts without warning. Several times a day. I am running VM w
-
Sir in MD04 when i am converting planned order to production order i am getting following message also release is rejecting :- No valuation variant found for valuation area AMBA Message no. C6015 Diagnosis The system could not find a valid valuation
-
Sending an email with html tags in it using apex_mail.send
Hello, I am using APEX_MAIL.SEND to send emails from my apex applications. now I need the email body to have html features: bold, underline, colors etc. If I use regular html tags, they show up in the email. How can this be done? Thanks Rani
-
Simple Java Question - How to test if a given string is numeric or not
Hi Experts, I have written one Java program. It fetches user ID from UME. The code is as below: Iterator itr = role.getUserMembers(true); while (itr.hasNext()) { String uniqId = (String) itr.next(); IUser thisUser = myUserFactory.getUser(uniqId); wdC
-
all my sites lose their sign in when i delete history at end of the day when i have yosimite. Befoe i loaded new OS when i removed JUST the histories i didnt have to sign in the next day in mail or yahoo ore any other sites. Yosimite clears all my h