Report based on the return values from checkboxes
Hi guys,.I have a question about the boxes and a report.
Is it possible to create a report based on a list of dynamic control, where I can score different points of the brand. for example:
select * from table where colomn <> :PX_CHECKLIST
With a radio group ii without problem and when I mark only 1 entry in the list of control that works too, but I would like to have the ability to mark more than one entry and validity of these marked entries that the report should be implemented...If anyone has an idea how to get account, please let me know.
Should I create a box separated each entry area to be able to refer to them?
Thank you
Patrick
Hi Patrick
We are working on the same problem... ;-)
I'spent 2-3 recent
days attempted to understand how to treat the boxes in a tabular form
Looks like you had the same problem
My solution is...
The checkox "ChkBox" returns the values 36:58:423:46:422:421 etc.
This box is passed to a function of package 'GetEquipmentSql (ChkBox-online pArr2)"used s Source for a Pl/Sql statement
Function GetEquipmentSql (pArr2 in Varchar2)
Return Varchar2
as
When Varchar2 (2000);
Wselectionnez Varchar2 (2000): = ' Select re. Room_Id, r.Name, Count (1) of Room_Equipment re, Hall r';
Win a Varchar2 (2000);
l_vc_arr2 APEX_APPLICATION_GLOBAL. VC_ARR2;
BEGIN
l_vc_arr2: = APEX_UTIL. STRING_TO_TABLE (pArr2);
If l_vc_arr2.count > 0 Then
FOR z IN 1.l_vc_arr2.count LOOP
If z > 1 then
Win: wIn = | ',';
end if;
Win: wIn = | l_vc_arr2 (z);
END LOOP;
Wselectionnez: = Wselectionnez | «where are.id = re.» Room_Id';
If l_vc_arr2.count > 0 Then
Wselectionnez: = Wselectionnez | ' and re.equip_id IN ('| win |') ' ;
End If;
Wselectionnez: = Wselectionnez | When;
Wselectionnez: = Wselectionnez | "Room_Id group, r.name';
Wselectionnez: = Wselectionnez | ' Having count (1) > = ' | l_vc_arr2. Count;
On the other
Wselectionnez: = "Select Room.Id, Name, 0 from Room;";
End If;
Return (wSelect);
END;
The function returns
*' Select Re. Room_Id, r.Name, Count (1) of Room_Equipment re, Hall r where are.id = re. Room_Id and re.equip_id (36,58,423,46,422,421) GROUP of Room_Id, r.name'; *
I did it the easy way, I showed you the code
Do you understand my solution?
/ Gunnar
Tags: Database
Similar Questions
-
Display success or failure in report based on the return value
Hello
I try to incorporate TestStand to TestComplete by using the ActiveX/COM server adapter I have the COM setup so that TestStand can call a test in TestComplete and have TestComplete to return a string value (true | false) to TestStand.
Now I need to get the TestStand report to view 'pass' or 'fail' text for this call sequence, by the return of TestComplete string.
Is there a place in Expressions or Actions Post I can say and how:
Returns 'True' = pass
Returns ' false ' = failure
Thank you.
Hello
(Option 1). Use a string value Test. The Limits.String would be 'True '. It would be the easiest because you already channels return of your ActiveX call. You could do your ActiveX calls a test of a string value.
(Option 2). Use a step of success/failure. You can set the string returned in a local variable and then create another step of success/failure that would pass/fail criteria as Locals.StringReturned is 'True '.
Here are the two options that we hope can help you get started...
Thank you
PH
-
How to create a report based on the item selected from the list of selection?
Hello
I created a tables_LOV based on:
Select table_name table_name user_tab_cols r, d
where column_name like '% _type % '.
Then I created a ListOfTables page element, display in a selection list and pointing to tables_LOV.
I run the page, and I can choose the table I want in the drop-down list.
How to create a report based on the selected element? (ex: select * from selected_table)
Thanks in advance
Salah
Hi Salah,
Allright, take a look at this page: http://apex.oracle.com/pls/apex/f?p=vincentdeelen:collection_report
I think that simulates what you are trying to accomplish. I've implemented the simplest method I could think of.
The report is based on a collection of apex. If you are not familiar with this, you should study the documentation: APEX_COLLECTION
To recreate my example, you should:
(1) create a report (interactive) on your collection
SELECT * FROM APEX_collections WHERE collection_name = 'MY_COLLECTION'
(2) create a selection list page_item for the tables that you want to display (in my case, this is called "P38_TABLES")
(3) create a dynamic action that triggers on the evolution of your selection list page_item. Dynamic action must be a parade of PL/SQL procedure the following code:
declare l_query varchar2(4000); begin l_query := 'select * from '||:P38_TABLES; if apex_collection.collection_exists ( p_collection_name => 'MY_COLLECTION' ) then apex_collection.delete_collection ( p_collection_name => 'MY_COLLECTION' ); end if; apex_collection.create_collection_from_query ( p_collection_name => 'MY_COLLECTION' , p_query => l_query ); end;
Make sure that you add your page_item 'Page to send items' section.
(4) add a real extra action that makes an update of the report area.
Here are two photos describing the da:
http://www.vincentdeelen.com/images/OTN/OTN_COLLECTION_REPORT_DA1.PNG
http://www.vincentdeelen.com/images/OTN/OTN_COLLECTION_REPORT_DA2.PNG
Good luck and greetings,
Vincent
-
Hi all
I'm calling javascript from COM (c#) and it works fine. Passing parameters to javascript and playback by using the syntax of the [x] arguments also works very well.
What I can't seem to get to work is to know how to move something from javascript to the calling COM Summoner, in this case, c#. How and where should I place the return value in javascript?
Thanks in advance.
Rachiud
doScript() evaluates an expression, so just make sure that your Javascript is an expression.
For instance "(3 + 3)" 6 "
-
How to get the return value from Java runtime.getRuntime.exec?
I am running shell from a (GR 11, 2) Oracle database commands on aix.
But, I would get a return value of a shell comand... as you get with "echo $?"
I use a code like
but I do not get a return value... because I don't know how to get the return value...CREATE OR REPLACE JAVA SOURCE NAMED common."Host" AS import java.io.*; public class Host { public static int executeCommand(String command) { int retval=0; try { String[] finalCommand; finalCommand = new String[3]; finalCommand[0] = "/bin/sh"; finalCommand[1] = "-c"; finalCommand[2] = command; final Process pr = Runtime.getRuntime().exec(finalCommand); pr.waitFor(); } catch (Exception ex) { System.out.println(ex.getLocalizedMessage()); retval=-1; } return retval; }; /
Published by: user9158455 on 22-Sep-2010 07:33Hello
Your pr.exitValue () has tried?
I think you also need a finally block that destroys the sub-process
Concerning
Peter -
the detailed report based on the selected value
Hello experts,
I use 10g obiee.
I have a requirement were on the dashboard there are 4 guests say product, region, year, color.
All are select muli-value prompt.
on the dashboard, there is a synthesis report that reflects the value according to the selected data from the command prompt. His work so far.
Now below the customer wants a link that has the title of 'detailed report '. When they click the hyperlink, they want to see detailed but it show only the values selected in the command prompt.
They claim as detail as there are more number of columns found in the report detail than the summary report following.
Can we can suggest me how to achieve in 10g.
Thanks a lot for your help.Hello
Just add your detailed report to the dashboard as a link or an Image and keep the required columns, you are invited into the report. It should work.
Thank you
Gerard -
Offshoot of page based on the return value of function
I have a combo box (P2008_SUPPORTING_MATERIALS) with 'Yes' and 'No' values.
I need a button that will save the selected value, and then create a branch to the 1092 page if it of 'Yes' or branch to page 2094 if it is 'no '.
That's what I did:
1 create a SAVE button
2. created a page process of type PL/SQL with function (see code below) inside (PageBranchDecision). The conditional processing I put him "when press button" for the "SAVE" button.
3. create a branch of the page with a branch type of DIRECTION to the FUNCTION RETURN A PAGE. For the action of the branch, I put the name of the procedure on the page (PageBranchDecision). Because these are conditions, I defined him "when press button" on the "SAVE" button.
This is the code for the page process:
DECLARE
whole n_page_id;
v_sup VARCHAR2 (3);
BEGIN
v_sup: =: P2008_SUPPORTING_MATERIALS;
IF v_sup = "Yes".
THEN
SELECT 1092 INTO double n_page_id;
RETURN n_page_id;
ON THE OTHER
SELECT 2049 INTO double n_page_id;
RETURN n_page_id;
END if;
END;
Now, that's the problem... According to the 'Oracle HTML DB manual"page 294 books and ' easy Oracle HTML-DB' page 307, with the type of the branch of 'Branch to function returning a Page', a function PL/SQL is written which returns a digital page at junction id. In my code, it would be 'n_page_id '. But, when I run my page and click on my "SAVE" button I gives me an error that a RETURN statement cannot contain an expression.
I don't know why I get this error. I need to get the value of the page to the branch based on the 'yes' or 'no '.
Someone has an idea what I am doing wrong? My situation seems, as it is possible through the logic, I'm following?
Thanks in advance,
Maggiech - ensure that any unconditional branch on the page has a largest number in sequence to ensure that this branch is triggered and ensure that there is no other branch that is triggered by the "SAVE" button
-
Change the report based on the selected value frm the prompt
Hello
I have a requirement where we invite dashboard that has three columns namely year, month, and report the name.
The user will choose the name at the prompt report, once made the report that was selected should appear
on the dashboard page and he should be able to select the data on the basis of the month and the year of it.
Also, if the user wants to go to the other report it should be able to select in the guest and view it.
Pls enlighten us on the way of progress on this issue. From now on, think that if something like this is possible, then it would definitley
need two prompts a report name and one for the month and the year.
THX :)Are you looking for this?
http://oraclebizint.WordPress.com/2008/01/17/Oracle-BI-101332-selecting-reports-from-Dashboard-prompts-and-guided-navigation-sections/
-
How to return values from the record following instead of in the same record in LOV
Hi all
I use Forms 10 G.
I have a block of details. In what in the 3rd column, I have a LOV.
My requirement is let say I asked for it from the 1st and 2nd column, and it shows 1 record.
After that if I pressed F9, then it should display the LOV list and, when I select a value any then it will create a new record with the same value of 1st and 2nd column.
Example: -.
Agenda provider country 123 ABC India We here in the column 'Country' LOV. Then when I pressed F9 then Lov should be displayed.
as below.
List of countries India U.S.. Japan It works very well so far.
Now if I select from the USA in the list then it should create a new record with the values of 1st and 2nd column.
Agenda provider country 123 ABC India 123 ABC Japan How can I do this?
Besically I need, rather than return the value in the same record, he must return to the next with the exsiting values record.
The algorithm is:
-use the KEY-LISTVAL about to 'COUNTRIES '.
-LOV execution using builtin show_lov
-store the return value Lov any parameter or a local variable in your trigger code ( vL_dummy_Deger varchar2 (100); )
-Create registration
-assign value to any new item you want to
code like this:
declare
vLDummy boolean;
vL_dummy_Deger varchar2 (100);
Start
-lov runs lov ruturns value is assigned to all the dummy elements to store Lov, return value. (no need to display)
"-" DUMMY "point lets store lov, return value.
vLDummy: = show_lov ('LOV_ULKE');
--
vL_dummy_Deger: =: model;
create_record;
: new_item: = vL_dummy_Deger;
end;
-
Impossible to retrieve the return value of function from pl/sql using the DB adapter
Dear Experts,
I use the DB adapter in my BPEL process. Using the DB adapter I invoke a PL / SQL function. I am able to send two input parameters for the pl/sql function. But I do not know how to retrieve the return value of the function. Please suggest me.
Thank you
RajeshCan you tell how pl/sql function looks like you? you return the value of the function, right?
-
Report based on the result of the sorting function?
Dear all,
I will make this issue in general terms:
We have a report based on a query that reads data from a single table (P). It will take to provide a field more (X) in the report which is obtained using more than two tables (E, 1 m approx).
I wrote a function that produces this extra field based on a join of tables E and P1. Please note that this function depends on the report query variables. This output is correct and provides all the necessary information, but it is necessary to sort the report based on the result of this function, i.e. the value of field X.
Is this possible?
I appreciate your comments.
Note: I've tried incorporating pictures E, P1 in the request report (I can then sort on the required field) but gets reduced the number of lines in the report. This is because the join between the tables, P, E and P1 reduces the number of lines (which is not the correct result).
Yes, it is possible. If you have ended up above a formula column.
Create the formula column. For example, CF_SALARY_TOTAL. Place a level to the top of the query and set your desired sort (Asc/Desc)
Hope this helps
Hamid
-
based on the prompt value see the FDF anayasis
Hello
I have a situation like this
I use obiee 11g
Based on the prompt value in him would like to show 3 different analayses.
I mean that if the value of guest in the page has as abc data it should show the anlaysis1
If the prompt value data as def it should show the anlaysis2
If the prompt value data as the IGS, it should show the anlaysis3
If the prompt value data as jkl it should show the anlaysis3
Why 3 diff analysis is because I have my list 2 columns in each anayaiss and they are 3 different tables.
One more thing
Obiee do we have a show and a return value for a radiobutton/drop-down list. As show us abc how invites and returns 1. is possible?
Thank you
Published by: user123 on July 12, 2011 12:29You can have n number of reports, simply use the union all in the dash prompt sql results and this will give you the choice to select any report you want.
-
Restore the default value from the drop-down list
Hyperion Inreatctive reports.
I have an embedded in a dashboard report. I drag the lists that filter the report. Filter feed results and it works fine.
I want to put a command button on the dashboard that restores the default values from the dropdown lists. I have a selection in each drop-down menu, 'all '. "All" is the default value.
For example, for the year
drop_Year
for the region:
drop_Region
What command should I put on the command button that any value is displayed in the drop-down lists of this command, restore it to "all"?
Watch the Select() method
w
-
Use the return value to do step digital multiple success or failure
Hello
I use a multiple digital step to check several measurements by an external DMM through a function created in CVI. I would like to use the return value of the function to replace the global status of the step. The reason is that the return value indicates a communication error, while steps are being taken, and which would lead to a "fake" fake or false 'Pass '.
What I would do is more or less this >
If the return value is 0, then check if the measuremets are between the limits
If return value! 0 = there was a communication error so step continues to operate independently of the measure.
I tried combining multiple digital step with a step of pass/fail, but it does not work.
I also trie to change the expression of the status of the multiple digital steps but basically ignores him.
Any ideas?
Thank you
Javier
Why don't you just make that return the value limits for multiple numerical limit stage. Comparison of the EQ value and the low limit to 0.
That would make the most sense.
-
Hi all
I'm doing a vi where I save the selected value from the ListBox with values respective tab control dropdown selected in another list box. Whenever I select Item1 can change of course and the respective tab will be open for this element. But now I want to just save the selection and put it into another ListBox.SO I can't renmove or add my wishes. Please help me.
It will work.
Probably not the greatest solution well.
Maybe you are looking for
-
Download speed of Safari 9.1
Hello Whenever I download something, I see the time but not the download speed. Is this a bug or did apple remove this feature? Thank you!
-
Help. I'm at a total loss what to do next. My printer is telling me it is disconnected. I was on different websites and downloaded the troubleshooting to solve the problem. When I ran the computer troubleshooting somes back saying the printer isn
-
Satellite 4030cdt - HARD drive upgrade
I want to upgrade the 4.3 GB to 10 GB + are there problems or limits
-
10.3.1.1581 &; text blackBerry 10 notification
You wonder where links to the change notification text is gone, it is no longer in "settings > notifications? Anyone know?
-
HP eva 6300 create simple VMFS 5 - U2 5.5 ESXI search and add the data store, (note that I have this shortcut down hoping you already know how to do these parts). Add HS to VM by navigating to the VMFS - thin and done data store of value.BUT - the V