Dynamic link in a report with confirmation popup and plsql call
Hi all
I have a table T1 with Name, City, Status.
I create a report in an html region with a query to obtain Name and City and for each record with status = '5' a link with "Remove" label.
To generate the link I need to use a Case so the link will be present only for some records (status = '5').
Then I want to use a dynamic action with "Confirm" to show a confirmation pop up and an "Execute PL/SQL Code" to remove the record with a simple delete command.
My question: how should I write the link in the case statement to call the dynamic action in my form?
Thanks,
Massimo
Hi Tauceef,
im trying to use your solution in this way
The report is
,case when min(status) = 'New'
then '<a href="---URL---"><img src="#WORKSPACE_IMAGES#Trash.ico" alt="Delete"></a>'
else '<img src="#WORKSPACE_IMAGES#Banned.ico" alt="-">'
end col_name,where ---URL--- is javascript:Delete('||myTable.ROW_ID||');
The javascript is
function Delete(parID) {
document.getElementById('P30_SELECTED_ROW_ID').value = parID;
if (confirm('are you sure?')) {
doSubmit('DELETE');
};The PL/SQL anonymous block is
DECLARE
parId number;
BEGIN
parId:=:P30_SELECTED_ROW_ID;
PKG_myPack.test(parId);
-- delete from myTable where row_id = :P30_SELECTED_ROW_ID;
-- :P30_SELECTED_ROW_ID := null;
END;As you can see i first try to execute my simple delete but not work, then i create a test procedure to inspect the item value and i realize that it has no value. I show the item on the page and afer selection it still remain null.
My qyestions are:
- which is the correct Process Point to set for the PL/SQL anonymous block?
- which is the correct syntax to refer to the item ? (:P30_SELECTED_ROW_ID, &:P30_SELECTED_ROW_ID. or v('...'))
Im sorry for the length of the request and i hope you can help me.
Best regards.
Alex
Similar Messages
-
Form report with both edit and column link
hi experts,
How can we create form report with both edit and column link. Ie, the form should have both the Edit link and column link. When we click on the edit link(in page1) it should go for the page2 and the page2 should display the corresponding row fields which should be editable. but when i click the column link it should bring me to the next page but the corresponding values of the column should not be editable.
Regars,
KKhi,
Here i have achieved this by making the column link and page navigation. -
Validation popup conflicting with confirmation popup
I am using 11gR1.
I have a form with three buttons on it CreateInsert, Next, Cancel.
The next button fires model layer validation on a new record, the cancel button opens a confirmation popup and if the user clicks yes, navigates the away from the form. When a user clicks next AND the form does not pass the model layer entity validation, a validation error is raise in a validation popup. The problem comes when the user then decides to not fix the validation, but instead cancel out of the form via the cancel button AFTER they have already clicked next.
When the user clicks the cancel button it raises the confirmation pop-up and whether the users clicks yes or no on the pop-up, the model layer validation still fires. I have immediate set to true on the cancel button to bypass validation, BUT if they user has already clicked next the validation still runs when they try to answer the pop-up. This results in the user being stuck in a never ending series of pop-ups because the confirmation pop-up can not close because the model layer validation keeps firing.
I have a dialoglistener on the dialog and a method in the backing bean (backingBeanScope.backing_IAEdit.cancelConfirmDialog) but that code never fires. Anyone else run across this problem or have any ideas how to resolve it?
Here is the code from the command buttons...
<af:commandButton actionListener="#{bindings.CreateInsert.execute}" text="CreateInsert" disabled="#{!bindings.CreateInsert.enabled}"
id="cb5"/>
<af:commandButton actionListener="#{bindings.Next.execute}" text="Next" disabled="#{!bindings.Next.enabled}" partialSubmit="true"
id="cb2"/>
<af:commandButton text="Cancel" id="cb4" action="Cancel" immediate="true">
<af:showPopupBehavior popupId="p1"/>
</af:commandButton>
<af:popup id="p1">
<af:dialog id="CancelConfirmDialog" title="Confirm Cancel" type="yesNo"
dialogListener="#{backingBeanScope.backing_IAEdit.cancelConfirmDialog}">
<af:outputText value="Are you sure you would like to cancel?" id="CancelOutput"
inlineStyle="font-weight:bold; font-size:small;"/>
</af:dialog>
</af:popup>Thanks for the suggestion, but the code in the dialoglistener never fires.
When the user clicks yes or no to dismiss the dialog box, the validation from the bc layer fires (even though immediate is set to true on the cancel button) and pops up an error box. When the error box opens, it opens in a modal way, the dialog box grays out and all you can do is dismiss the error box. When the user clicks ok to dismiss the error box, the dialog box is still open. Then when the user again clicks yes or no on the dialog box, it again fires validation and pops up the error box in a modal way. So now the user is stuck with these two pop ups and can never get rid of the dialog box.
Just to clarify, this ONLY happens if the user FIRST clicked the next button which triggered the bc layer validation. If the user just clicks the cancel button, everything works as expected with the dialog box popping up, the user selects yes or no, the dialoglistener code is run and the user is navigated to another page. If the user just clicks the cancel button validation is never run as is expected by having immedate set to true. -
Summary Report with 4 Dimensions and 5 Facts
Hello OBIEE Czars:
I have a problem.
I am trying to make a summary report with 4 Dimensions and 5 Facts.
Out of that only 2 Dimensions are Confirmed.
Now when I try to bring in all the facts, I get view display error.
I searched forum for similar issues.
So I have tried following so far.
1) Add other dimensions as source and set level to Total for those dims.
- After doing this, I dont get view display error, but I get blank rows for couple of facts.
2) I am already aggregating all the measures.
Please help me out.
This forum has been very helpful so far.
Thanks.
~VinayHi
This method seems fine until you run a request that includes a filter on an unconformed dimension.
The SQL itself should be quite straightforward (see below) but the BI Server instance does not seem to be joining this data correctly after posting the 2 separate queries to the database.
SELECT
x.dim1, x.dim2
x.fact1_agg_measure
y.fact2_agg_measure
FROM
SELECT
dim1, dim2
SUM(fact1.measure) fact1_agg_measure
FROM
dim1,
dim2, --UNCONFORMED+
fact1
WHERE
.... .... join fact1 to dimensions as normal
AND dim2 = 'BUSINESS_IDENTFIER'
GROUP BY
dim1, dim2
) x,
SELECT
dim1
SUM(fact2.measure) fact2_agg_measure
FROM
dim1,
fact2
WHERE
.... .... join fact2 to dimensions as normal
GROUP BY
dim1
) y
WHERE
x.dim1 = y.dim1
The result set returned in Answers is firstly a correctly aggregated record plus ALL rows from the second query above ??
Just wondering if anyone else has come across this issue?
cheers
Tony -
Call Report with ParamForm=yes and Rep-52007
I have forms and report services 10.2.0.2 installed on my Win2003 server.
Reports runs perfectly with paramform=no but when i use paramform=yes it show html param form but pressing submit query it show The page cannot be displayed page. the same report with paramform=no and hard coding paramter runs perfectly.
This is the procedure i am using after adding hidden_action i start getting REP-52007 instead of the page cannot be displayed.....
PROCEDURE show_report(pRptServer varchar2,pRptObj varchar2,pRptFormat varchar2,pRptPath varchar2,pRptParameter varchar2,pParamForm varchar2) IS
repid REPORT_OBJECT;
rep_status varchar2(30);
v_rep VARCHAR2(100);
vjob_id varchar2(100);
v_reportserver varchar2(50):=pRptServer;
v_runformat varchar2(50):= pRptFormat;
hidden_action varchar2(1000);
v_report_other VARCHAR2(4000) :='';
begin
repid := FIND_REPORT_OBJECT(pRptObj);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_FILENAME,pRptPath);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,CACHE);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,v_reportserver);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,v_runformat);
--SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,pRptParameter||' paramform='||pParamForm);
-- code for pfaction
hidden_action := hidden_action ||'&report='||GET_REPORT_OBJECT_PROPERTY(repid,REPORT_FILENAME);
hidden_action := hidden_action ||'&destype='||GET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE);
hidden_action := hidden_action ||'&desformat='||GET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT);
hidden_action := hidden_action ||'&userid=' ||GET_APPLICATION_PROPERTY(username)||'/'||GET_APPLICATION_PROPERTY(password)||'@'||GET_APPLICATION_PROPERTY(connect_string);
hidden_action := hidden_action ||'&'||v_report_other;
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,'pfaction='||hidden_action||' '||pRptParameter||' paramform='||pParamForm);
v_rep := RUN_REPORT_OBJECT(repid);
vjob_id := substr(v_rep,length(v_reportserver)+2,length(v_rep));
rep_status := REPORT_OBJECT_STATUS(v_rep);
while rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
loop
rep_status := REPORT_OBJECT_STATUS(v_rep);
end loop;
if rep_status = 'FINISHED' then
WEB.SHOW_DOCUMENT('/reports/rwservlet/getjobid'||vjob_id||'?server='||v_reportserver||'','_blank');
message('Finished');
else
message('Error');
end if;
end;
Edited by: Zahid Rahim on Oct 2, 2009 10:39 AMbut when i use paramform=yes it show html param form but pressing submit query it show The page cannot be displayed page
for Paramform=yes u have to enter values manually.
open the following link.
REP-52007: Parameter form format error
http://www.orafaq.com/forum/t/97088/2/
sarah -
Project mat. proc. report with monthly breakup and cumulative for year
Hi All,
can any body suggest a report for "Project material procurement report with monthly breakup and cumulative total for a financial year "
Thanks in Advance.
Regards,Hi Ahmed,
Thank you very much for the response.
I am seeking the std sreport which can give the details for the project material consumption report with monthly breakup with the cumulative month total to year.
ex. jan 10 units , june -10 units , nov 10 units, total (year) =30
regards, -
Please help to get onhand stock report with last purchase and billed date warehouse and item wise
please help to get onhand stock report with last purchase and billed date warehouse and item wise
Hi Rajeesh Ambadi...
Try This
SELECT distinct T0.ITEMCODE , t1.ItemName, T0.ONHAND as 'Total Qty',
T1.LASTPURDAT ,t1.LastPurPrc
FROM OITW T0 INNER JOIN OITM T1 ON T0.ITEMCODE = T1.ITEMCODE
INNER JOIN OITB T2 ON T1.ITMSGRPCOD=T2.ITMSGRPCOD left join ibt1 t3 on t3.itemcode = t0.itemcode and t3.whscode = t0.whscode
WHERE
T0.ONHAND>0
AND T0.WhsCode ='[%0]'
Hope Helpful
Regards
Kennedy -
Run Report with Pass Number and Varchar Lexical Parameter values
Dear Sir/Madam
Due to an urgent change required to a report I would most appreciate it if you can please advise me if it is possible to get this report working by either passing in multiple lexical parameters or one signle lexical parameter when calling the SRW.RUN_REPORT command with the following methods:
Firstly: When calling report with a run_no and spr_cd passed in through one lexical:
cmd_line: REPORT=D:\DEV\REMITTANCE.rdf BACKGROUND=YES BATCH=NO DESFORMAT=PDF DESTYPE=FILE DESNAME=D:\DEV\REMITTANCE.pdf
CP_L_PARAM=RUN_NO=TO_NUMBER(28) AND SPR_CD=SUPP1
Both with a TO_NUMBER and without, whereby I attempt to do a SUBSTR within the query of the called report to derive the RUN_NO Oracle Reports fails to accept the SUBSTR.
Secondly: I am now trying to call the with passing two lexical parameters into the report as follows:
cmd_line: REPORT=D:\DEV\REMITTANCE.rdf BACKGROUND=YES BATCH=NO DESFORMAT=PDF DESTYPE=FILE DESNAME=D:\DEV\REMITTANCE.pdf
CP_L_RUN_NO=||TO_CHAR(lv_run_no)|| CP_L_SPR_CD=||lv_spr_cd;
NOTE: The above is an output of the actual command line and not what is passed into the command line, thus the quotes are missing. Please also note that the report is running fine with the only a hard coded RUN_NO value PASSED without the SPR_CD.
Unfortunately this is also causing issues as the RUN_NO is a number and as you know you can only pass in strings.
Your urgent help is required on this matter please as our client is expecting a solution this afternoon.
Hope to hear form you soon.
Kind regards
Andrew MasonDont Worry I've worked it out...
-
Report with material number and planned delivery time
Is there any standard report with material number and planned delivery time ?
Hi,
I do not know any standard report. Please try SE16 + MARC...
BR
Csaba -
Hi
i have a report with 2 queries and prompts on same object tell me how many times it request for I/P? can any one please guide me.
Regards,
MahendraIs this question related to Dashboards or webi ?
-
Delete records in a report with a popup
Hi.
In my report, the first column contains edit buttons for each record. Now, the second column should provide a delete button for each record. Is it possible to create a popup window that comes up if the user presses the button and ask to submit and to cancel? And after a submit, the record is deleted from the database and the page refreshed? How do I create this popup and the process?
Thanks in Advance for your help.
StephanHi Denes.
Yes. Your example makes exactly that what I'm going to try. I had a closer look at the settings of your page and tried to transfer it to my problem.
Unfortunately, it don't work and I don't know why.
the URL with the javascript popup is:
javascript:confirmDelete(htmldb_delete_message,'f?p=&APP_ID.:3010:&SESSION.:DELETE:&DEBUG.::P3010_DELETE_ID:#ACT_ID#');
The debug modues displays the following messages:
A C C E P T: Request="f?p=100:3010:4471084058876053:DELETE:YES::P3010_DELETE_ID:22"
S H O W: application="100" page="3010" workspace="" request="" session="4471084058876053"
...Session State: Save "P3010_DELETE_ID" - saving same value: ""
If I use the page as target of the button with the request value and the setting of delete_id it works but without a popup confirmation dialog.
I have nearly done it like in your example. What could be the problem?
Thanks for help
Stephan -
Send Workflow email to User SAP Inbox with a Popup and cproject link
Hi,
I am working SAP portfolio and project management workflow.
Requirement: Trigger workflow when Portfolio Execution Decision Point status changes,
We have to send two email notifications as part of the requirement;
First notification should go to user’s (Only one user) SAP Inbox, Containing two links
Popup link (It will contain list of question which the user has to confirm) if he
confirms we have to send second email notification. (Pop-up layout is attached)
Link for the user to navigate to SAP PPM cProject to upload the documents. (NWBC)
The second notification should go to Outlook of the users (via group email) with Link for the user to navigate to SAP PPM cProject.
We can trigger the workflow using event DECISION_POINT_STATUS_CHG in Class CL_RPM_DECISION. My question is how should design the pop-up and incorporate the Pop-up and cproject link in first notification email sent to user SAP Inbox.
Please let me know if you need more details.
Thanks & Regards,
Amit SinghWe use transaction NWBC to login to netweaver business client. Then from there we navigate to Project management view and double click to select the project. It opens project element --> Collaborations tab. There we select the folder link. (screenshot attached)
Regarding addition of multiline container element (Table) let's say 'A'; I create multiline container element A in Workflow element list, Populated element A using a utility class/method assigned to a background task.
Then, I created a user decision task, inside the task container another multiline container element 'B' with same type and I did binding b/w workflow container element 'A' and task container element 'B'.
Now, I am passing &B& in the decision task description. If I execute the workflow, The user decision task description is blank.
Secondly, I did not get any pop-up asking how to display it (all lines with line break).
PS: My internal table also has only one field.
Am I doing something wrong here? -
Open Purchase Orders Report with Confirmation Dates
Hi Friends,
I have searched a lot for the following need and I have found nothing. I was wondering if there ia any report that I can show the scheduled delivery dates from a Purchase order. I have seen in ME2L that by placing EINT in scope of list I can see the schedule lines. However, if there is a new delivery date due to supplier confirmation that have been placed in PO with the indicator AB this is not appeared. At the same time if there is a partial quantity that has already been delivered then it does not appear as well. So, I need a report with all the scheduled delivery line plus the open quantity.
Many Thanks in advance,
IoannisIt is very strange. Because what I see is that in this report the confirmation date is not appeared although the schedule line is appeared. Then If I go to change the confirmation date in PO for second time then it is appeared. I have no idea why this is happening
-
Link to interactive report with filters
I want to put a link to a page with an interactive report. But the link should setup a filter for the interactive report.
For example, if I'm looking at a client, I want a link that sends me to the activity reports, but filtered to show only that client already.
Is there a way to do that?
Thanks
Edited by: user1415525 on Sep 21, 2009 7:34 AMHello,
Set a parameter IR_<COLUMN_NAME_IN_IR> to #<COLUMN_NAME_IN_LINK>#
Example : Set IR_ORDER_ID to #ORDER_ID#
or for you
Set IR_CUSTOMER_ID to #CUSTOMER_ID#
(Of course you have to change the column names)
Greetings,
Roel
http://roelhartman.blogspot.com/ -
Link to summary report with filtered data set within FormsCentral
Is it possible to generate a link to a summary report with a filtered data set within FormsCentral?
If I have 4 sales agents each using the form to submit their repsective sales (with a dropdown indicating the sales agent) is it possible to filter the data so that only Sales Agent A see a report of their sales?
Thanks,
DTry following forum:
http://forums.adobe.com/community/formscentral?view=discussions
Maybe you are looking for
-
DVDSP output to my NTSC Monitor?
Hey there, I have a JVC NTSC monitor that is plugged into my AJA Kona LH. I'm having great luck using it with Motion, FCP and After Effects, as the "Output" preferences allow me to choose the Kona and my work shows up on the JVC just like it's suppos
-
is it possible to enable the bit locker only for windows 8.1 machines through windows 2008 r2 server group policy ? Thanx and Regards, Shanif
-
Error installing creative cloud
While trying to install it shows error message "remote desktop is not responding in proper manner"
-
HT1430 Email was rejected by the server because it doesn't allow relaying?
Why would my email that I am trying to send be rejected by the server because it doesn't allow relaying? What does that mean in English?
-
Everything i download and try to install is corrupt
can anyone help me with this? i bought an hp pavilion, it has windows 7 ( 64 bit ). everytime i download anything and try to install, it says it is corrupt and unknown author. i also had to buy a zoom usb 56k dialup modem, because your computer does