Js-confirm box with request and passing value: incorrect url
Hi folks!
Scenario: User clicks on link-column field in tablular form, Confirm box pops up with a confirmation message, with "OK" generates a request and should pass a value from the form into an item for further processing.
The URL in the column link as of now looks like that:
javascript: apex.confirm("message goes here...", {request:"EQDONE", set:{"P2100_X": "#EQMID#"}});For some reason just nothing happens. When I omit the "javascript:", I get an unvalid-url error message. But if I change the procedure name, shoudln't I get some error message also?
Please tell me what's wrong. Thank you! :)
Hmm... Ok, makes sense... a little.
The use of (in my case) #EQMID# works, if the target is not URL but "Page in App", and you use the Column Link Dialog fields "Name" and "Value", but maybe because at this point it gets renderes into html and not when called from a javaScript function? Thats how I understand it now.
However: I have just looked into the html-sourcecode. The java Script call IS actually fully rendered with the corrosponding IDs.
This is a sample of one table row:
<tr class="even"><td align="left" headers="Erfasst">13.08.2012</td><td align="left" headers="KundenNr">4784668</td><td align="left"
headers="Kontrolle">XML-Abrechnung - Abrechnungsart überprüfen bei KundenNr: 4784668</td><td align="left" headers="Details">TD, STEWEAGSTEG_LF:
Papier+Archiv (GK)</td><td align="left" headers="Ausnahme bis">-</td><td align="left" headers="bearbeitet von">-</td><td align="center" headers=
"'ERLEDIGT'"><a href="javascript: apex.confirm("message goes here...", {request:"EQDONE", set:{"P2100_X": "34"}});" ><img src="wwv_flow_file_mgr.get_file?
p_security_group_id=6519817386341009&p_flow_id=150&p_fname=ausnahmeBtn_check.png" alt="" title="Fehlerhaften Verrechnungstyp im SDK-PS ausbessern
und Eintrag als erledigt kennzeichnen."></a></td><td align="center" headers="'AUSNAHMEREGELUNG'"><a href="f?p=150:2100:1212226464451606:EINGAU
SNAHME:NO::P2100_KUNU_AUSNAHME,P2100_EQMID,P2100_DATEPICK_AUSN:4784668,34," ><img src="wwv_flow_file_mgr.get_file?p_security_group_id=
6519817386341009&p_flow_id=150&p_fname=ausnahmeBtn.jpg" alt="" title="Diesen Kunden als Ausnahmeregelung bis zu vorgegebenem Datum deklarieren.">
</a></td></tr>The set statement containe the correct ID in each row! Here 34.
So, according to http://docs.oracle.com/cd/E17556_01/doc/apirefs.40/e15519/javascript_api.htm#AEAPI274 , it should work.
Anyway, I will try your suggestion using the fnn array.
Edited by: tpetri on 16.08.2012 08:34
Similar Messages
-
Dropdown box with query *and* static values?
Hi guys,
If I had a dropdown box with a LOV being generated from a query,
Select distinct PERSON from USER_TABLE
Bill
Fred
Steve
Is it possibe to somehow add static values so that they sit permanently on top of what ever values are produced by the query?
Null
Not Null
Bill
Fred
Steve
Thanks,
Neil.select 'Null' d, 'Null' r from dual
union all
select 'Not Null' d, 'Not Null' r from dual
union all
select distinct person d, person r from user_table
...like that?
Scott -
Query from the data abse and pass values to a pdf form
query from the data abse and pass values to a pdf form
Hello
Hello i have this html report that i have written to output a
report.
now, i am assigned to pass the same fields to a pdf form so
the fields in the adaobe form can be populated or the term
Pre-populate the form.
can anyone help me get started.
first i would like to know if it can be done.
second, what do i need to get started (tools )
third how do i do this.
i am really lost at this point.
can anyone give me tips in how to approach this
subject??It can be one using Adobe Acrobat Designer which is packaged
with Acrobat
Professional Pro 7. It uses all XML to create and populate
forms.
If you had the time, you can also create <cfdocument
type="pdf"> to have
them ready and just pass the info to it so it autogenerates
the PDF on the
fly. -
Cant login with sap* and pass
Hi,
I created a new entry in SCC4 for new client 100 in nw2004s and now i saved them and tried to login with 100 client sap* and password as pass, but i am not able to login with this default password for client copy.Surya,
In NW2004s by default the "automatic" SAP* user is not created. This is controlled by a parameter setting in the profile, which you can edit with RZ10. Open the instance profile, create parameter "login/no_automatic_user_sapstar" and set the value to 0. Save and activate the profile, restart your system, and now you'll be able to login with SAP* and pass.
After you finish the client copy, you may want to deactivate this parameter again, for security.
--Matt -
Open a web page and pass values from a java file
Hi,
I need to open a web page and pass values in the text boxes.
Finally submit needs to be triggered. All this needs to be done from a java file. i.e instead of entering my values in a web page and submit, i need to do it from my java file..
Any inputs so that I proceed in the right direction..or is there any alternate way to achive this ??
Thanks in advance..
SidI hava found a lines of jaa that can open a URL , lets say www.net.java
You can open it writable or not.
It is half of the job you need.
If you are interested.
I am wrinting a program to print a URL , and have developed this small
code.
Angel Portal -
i have a problem with mail. the spelling and grammer check box before sending the messege is no longer there. I did everything but cannot get it back. is ther anyone who knows how to get the box with spelling and grammer checks before sending the mail.
Also the mail is acting very funny by not getting the rules work in a proper method. Is ther a software to repair mail.i did both of them, but still the while sending the mail the diolog box is not showing up and also the spelling and grammer does not do the spelling check.
This problem just started for about 3 to 4 days now. earlier it was working normally. -
Connecting Crystal reports with dashboards and passing parameters
Hi ,
Can anyone have any document on Connecting Crystal reports with dashboards and passing parameters.
I would appreciate for this.
Thank You.Hi Ganesh,
You can refer the following links for connecting Crystal reports with dashboards:
Dashboard integration in Crystal Reports using flash variables | Clariba Blog
https://websmp102.sapag.de/~sapidp/011000358700001426732009E/Xcelsius_EmbeddingInCR2008.pdf
http://events.asug.com/2012BOUC/0315_Integrating_SAP_Dashboards_into_SAP_Crystal_Reports.pdf
Regards,
Renu -
I was in a chat box with SKYPE and I clicked on the link to copy the text but it came back with "can't copy because not permitted in your browser"
I can highlight copy and paste from other web screens with no problem.
The chat window however doesn't give access to the lines that have scrolled past the window so highlighting the text won't work. Other chat windows grab the entire text when the user clicks on the copy link or icon.
I just installed firefox and haven't tried other chat windows to see if the problem could be repeated.Use the keyboard if the buttons on the web page aren't working.
* Copy: Ctrl+C or Ctrl+Insert
* Paste: Ctrl+V or Shift+Insert
* Cut: Ctrl+X or Shift+Delete
*http://kb.mozillazine.org/Granting_JavaScript_access_to_the_clipboard -
Navigate between 2 reports and pass values between 2 different columns
Hello
I have a question about navigating from 1 report to another while passing the value from column 1 to column 2 in the second report...
In OBIEE 11G, I create action link on report 1, column 1 and this action link is navigate to BI Content and the destination is report 2. Now report 2 has column 2, which is an alias of column 1 from report 1, from user's point of view they are the same, but from OBIEE point of view they are different.
My action link is able to navigate to report 2, however, the value in column 1 which I clicked to execute the navigation, does not get passed to column 2 in report 2..
Is there a way around this issue?
Let me know if I need to provide more clarification
ThanksThank you Anirban
I think this is the best solution you just provided.The current post and the post at below looks same
Navigate from report to dashboard and pass values between different column
is it not answered?
Thanks :)
Edited by: Srini VEERAVALLI on May 7, 2013 3:07 PM -
When attempting to sync my new android phone (galaxy S4 to galaxy S5), my firefox profile name on firefox sync is incorrect by one letter. Instead of kokochako it reads kokocako. Im concerned because my name and password are the same ones i use to log in on my laptop and my previous smartphones. I am unable to sync my acct or make any changes to my profile name. I hit forgot password to reset, but since the email is incorrect Im not getting an email to change it. I havent changed my name ever and my password hasnt been changed in at least 6 months. It keeps saying name and pass are incorrect. Has my acct been hacked or compromised? All my info is still working on my laptop, just under the wrong email address, im scared...
I'll forward this to the correct people at Firefox so they can better assist you!
-
Creating a dialog box with OK and Cancel buttons without OADialogPage
Hi Experts,
i want to create a dialog box for Delete Confirmation means after clicking on delete it should pop up a small dialog box with OK/Cancel buttons
and need code for the same to handle the buttons.
i have created with OADialogPage but its showing in a complete page but i want to show those buttons in a small box.
Plz help.
THANKS IN ADVANCE.
Thanks
Raja.Hi,
I have not tried using javascript in destination URI as suggested by Mukul.
I have tried the below code for opening a page as dialog box.
You can try it for your requirement by creating a dialog page of your own, say XXDialogPage (with OK and Cancel button)
StringBuffer l_buffer = new StringBuffer();
l_buffer.append("javascript:mywin = openWindow(top, '");
String url = "/OA_HTML/OA.jsp?page=/xx/oracle/apps/fnd/dialog/webui/OADialogPG";
OAUrl popupUrl = new OAUrl(url, OAWebBeanConstants.ADD_BREAD_CRUMB_SAVE );
String strUrl = popupUrl.createURL(pageContext);
l_buffer.append(strUrl.toString());
l_buffer.append("', 'lovWindow', {width:500, height:500},false,'dialog',null);");
pageContext.putJavaScriptFunction("SomeName",l_buffer.toString());
In dialog page's controller, you can forward it to the page onc ethe user selects OK or Cancel.
Pass the selected value back to the main page and further you can use it for deleting.
Regards. -
PresaveAction() Popup message box with save and cancel button
Hi,
I want to give user an option from popup box with the message "Are you sure to Save you record".
I got below javascript code but don't know how to show two buttons on popup if user wants to recheck before final saving then he should click CANCEL otherwise SAVE button.
<script type="text/javascript">
function PreSaveAction()
alert("Your request has been submitted");
return true;
</script>
Please advise in above code.Hi,
For your requirement, you can use the JavaScript Confirm Box which will contains two buttons in a popup window.
Here is a demo about checking the value in the “Title” field, if it equals “asdf”, then a Confirm box will come out, then user will be able to choose whether to save or not.
<script type="text/javascript" src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
<script type="text/javascript">
var $j = jQuery.noConflict();
function PreSaveAction()
var txtStatus = $j(":input[title='Title']").val();
if(txtStatus == "asdf")
alert("Invalid Input");
var r=confirm("Are you sure to Save you record?");
if (r==false)
var statusfocus = $j(":input[title='Title']");
statusfocus .focus();
return false;
else
return true;
</script>
Feel free to reply if there still any questions about this.
Best regards
Patrick Liang
TechNet Community Support -
Calling a report and passing values!!
Hi Experts,
i have a requirement. I have a report [zrep1] with billing doc field and shipment field on the selection screen.
The logic for billing document is written. Im writing logic for shipment numbers. I am finding the billing documents of delivaries for each shipment.
I want to pass those billing documents as input to the same report program [zrep1] for the existing billing document code to get the output.
How to call the same report and pass the values from internal table as input to it.
Please suggest the way to proceed. i knw it is possible.
Thanks in advance.
Edited by: Craig Cmehil on Jul 3, 2008 3:30 PMHello,
Try this:
The program report1 has a stand-alone selection screen with the screen number 1100. In the program report2, an internal table with row type RSPARAMS and a ranges table are filled for this selection screen. These are transferred at SUBMIT together with a single condition.
Program accessed
REPORT report1.
DATA text TYPE c LENGTH 10.
SELECTION-SCREEN BEGIN OF SCREEN 1100.
SELECT-OPTIONS: selcrit1 FOR text,
selcrit2 FOR text.
SELECTION-SCREEN END OF SCREEN 1100.
Calling program
REPORT report2.
DATA: text TYPE c LENGTH 10,
rspar_tab TYPE TABLE OF rsparams,
rspar_line LIKE LINE OF rspar_tab,
range_tab LIKE RANGE OF text,
range_line LIKE LINE OF range_tab.
rspar_line-selname = 'SELCRIT1'.
rspar_line-kind = 'S'.
rspar_line-sign = 'I'.
rspar_line-option = 'EQ'.
rspar_line-low = 'ABAP'.
APPEND rspar_line TO rspar_tab.
range_line-sign = 'E'.
range_line-option = 'EQ'.
range_line-low = 'H'.
APPEND range_line TO range_tab.
range_line-sign = 'E'.
range_line-option = 'EQ'.
range_line-low = 'K'.
APPEND range_line TO range_tab.
SUBMIT report1 USING SELECTION-SCREEN '1100'
WITH SELECTION-TABLE rspar_tab
WITH selcrit2 BETWEEN 'H' AND 'K'
WITH selcrit2 IN range_tab
AND RETURN.
Regards. -
Hierarchal Columns and Passing Values to a Detail Report (Action Links)
I have a question in OBIEE 11.1.1.5 around Hierarchal Columns and passing the values to a detail report. I have create a report with a Hierarchal column (Two Levels only), Month Column and a metric.
I created a detail report and see both columns used in the hierarchy to "is Prompted" as well as the Month column.
On the Summary report I put an Action Link on the Metric to navigate to this Detail Report. When I select the metric I see that the Month value gets passed to the Detail Report but none of the Hierarchal columns have been passed at all.
When I replace the hierarchal column with just the two columns, the values get passed fine.
Is this a known issue with Hierarchal columns? Is this functionality even available?
ThanksI am assuming then that no one has attempted this on the forum?
-
Writeback with 'NA' and decimal values
Hi All!!!
We are making some tests on the writeback with the BIBeans; we migrated a db from express to 10gR2 and converted it in
standard form and we try the writeback on this aw.
We found some problems when in the worksheet there are one or more 'NA' values to writeback.
In particular when we call the submitChanges method on the crosstab object (like in the BI sample) if there are one or more
'NA' values the submitChanges fails and return false.
We solve this problem implementing the cellSubmitting method and catching the cellSubmittingEvent; in this method we
substitute the values 'null' for the QDR with an "NA" string.
We also found that the decimal values (like 180.4) make the writeback to fail; we think it is due to the fact that the
writeback engine add a '.0' to all the values that we try to writeback so for decimal values we have two character '.'; we
solve this problem with a support's variable for converting the value to a string and pass it to the set data to the QDR to
writeback.
Is this the rigth way?
Is this a bug?
Following We report the code we implementing for this method
public void cellsSubmitting(CellsSubmittingEvent e)
String app;
ArrayList qdrCollection = (ArrayList)e.getQDROverrides();
if (qdrCollection != null)
int iSize = qdrCollection.size();
for (int i =0; i < iSize; i++)
QDRoverride qdrOverride = (QDRoverride)qdrCollection.get(i);
if(qdrOverride.getData()==null)
qdrOverride.setData("NA"); //for the problem with 'NA' values
else
app=qdrOverride.getData().toString(); //for the problem with decimal values
qdrOverride.setData(app);
Hi!
Daniele De FaveriThanks for your post, it is great solution and it's work for me. I'm supprised that those oversights are still in bibeans and nobody from Oracle havent answered your question.
Message was edited by:
Moks
Maybe you are looking for
-
How can I stop the last character of my password from being displayed?
Sorry, I'm sure this would have been asked before, but I couldn't locate it.. When unlocking my iPad, how can I stop it from displaying the last character of my password to everyone in the vicinity? This has got to be the fastest way to find out some
-
Output file is not reaching the destination
Hi, I am doing a simple file to file scenario using SAP PI 7.0. I am posting my input file in one location and after a simple mapping I need to receive my output in another location.My file is getting picked up and I can see that in the message mon
-
Moving all Materialized View and logs at schema level using data pump
Hi Experts, Please help me on how can I exp/imp all Materialized Views andMV logs (as these are local MVs) only of complete schema to other database. I want to exlude everything else. Regards -Samar-
-
Double page spread for photobooks
Hi folks, anyone know if its possible to create a photobook (soft cover style) with one photo as a double page spread?
-
Can I download my Photoshop and Premiere II on 2 of my personal computers?
Can I download my Photoshop and Premiere II on 2 of my personal computers?