Lines of transformation in a collection based on the css class?
Hi all - I'm sorry if the answer to this is obvious, but I am a bit stuck. I have a report based on a collection of apex_. I have a simple dynamic action that allows users to click and highlight some lines in the collection report (I use just toggleClass on a jQuery selector). Now, I want to use only the highlighted lines in a process of pl/sql.
I guess I also need to update the collection sort to indicate that a line is "selected", as perhaps together an unused column as c050 to a certain value, and then I can query the records and use it in my plsql? Put in evidence is right in the browser and is not visible to the db (correct?) so I think it's the best option?
I also have the same question for the columns, that is if I let the user select an entire column and I want to use only the column values in a plsql.
All the tips are greatly appreciated.
Thank you
John
You're already halfway there - add another action to your dynamic action that uses jQuery on the trigger and execute some PL/SQL to add the Member to the collection.
Is it enough to go?
Tags: Database
Similar Questions
-
Printer skips lines and enlarged fonts between pages based on the web.
bold text Range of printers HP c7200 connected wireless to MacBookPro w/Lion. Using the browser Firefox to version 9.0.1. Printer prints the first page very well, then the second page starts by skipping several lines and large print. PC connected to the same printer, and printer works OK. Safari works OK, too. Solutions would be appreciated.
Problem started before the upgrade to Mac Lion. Lion updated printer driver. The same problem. Only happens when I try to print a web page or something downloaded from a web page, like a financial spreadsheet. Non-Web-based print OK. Help. Thank you.
I saw this happen when the Page layout on FireFox browser has been set to 80% (or probably anything less than 100%). Make sure that the setting and change it to 100% and try printing again.
-
Access the ArrayCollection class MXML ActionScript collection?
I have a MXML file that has a collection for my tree component arraycollection. I am overriding the updateDisplayList function to add lines to all of my nodes in the tree... However, I can't seem to understand how to access this ArrayCollection collection of inside the actionscript class?
I tried the methods used to pass variables between two MXML files (like a popup window - which I've used in the past and it works very well).
My actionscript class code is almost identical to this example here:
http://www.iepl.NET/treeControlSample/treeControlSample.html
In the example above, the data is static, but sometimes my data's going to change and I need to access the set dataProvider (collection ArrayCollection) in order to make the lines work well... This has been very frustrating for me! :)
If someone knows a better way to reach gettign lines for brothers and sisters in a tree... Please let me know!
Any help would be super duper awesome!I found the solution to this. My problem was similar to cheftimo was seen in this post:
The answer is to import the component you are trying to access the variable from and then call using mx.core.Application ' Application.application.'
Thanks to Greg Lafrance!
-
Sum on a column in a collection based report
Hi all
I have a sql report based on a collection, it comes to my query
Select c001, c002, c003 or c004,
seq_id
of apex_collections
where collection_name = "ADDSERVICES."
Initially, this collection is empty, the user adds the lines in this collection.
as and when the user adds rows to this collection, I want total (sum) of a column, but its always showing 0.
How to get the value of the sum?
Apex4.1
Oracle 11g R2
Concerning
TauceefTauceef wrote:
Hi allI have a sql report based on a collection, it comes to my query
Select c001, c002, c003 or c004,
seq_id
of apex_collections
where collection_name = "ADDSERVICES."Initially, this collection is empty, the user adds the lines in this collection.
as and when the user adds rows to this collection, I want total (sum) of a column, but its always showing 0.
How to get the value of the sum?
Apex4.1
Oracle 11g R2Concerning
TauceefHi Tauceef,
How do you calculate the sum? means on which column? and finally you calculate the sum in a session of apex? (because apex_collections view is related to the current session of the application)
I see that your columns (c001, c002, c003 or c004) are only varchar2, if you are sure that it is a number column then it is best to use the number of columns (n001, n002...)
Thank you
-
Collections by ignoring the lines that were not updated
Hi all
I have a report based on a collection. In the present report is a lov in which a user can assign a value to the recording. However, the user doesn't have to update all records before saving. Based on the examples of the collection I've seen, it seems to be an assumption that all records will be updated. I'm having trouble trying to update only the lines in the collection that the user has entered a value for.
Any ideas would be greatly appreciated.
Thank youDon't know what you have in mind. If you are thinking to add another value of the column to the collection and handling, it should work better than the box. You will have at least a NULL value or a value of text associated with each line in your collection.
-
Update of the collection based on (wwv_flow.g_f01) report
Hi all
I have a page in my application that contains 3 standard reports based in a collection. There is a main report and from there you explore the other report, and from there you can go down to another (3rd report) that I'm trying to update a member of the collection based on an lov. I don't know how to insert the value from the lov in the 3rd report.
Select seq_id
IN CURR_SEQ_ID
of apex_collections
where collection_name = "ARGYLL_INVOICES."
and c001 | C002 =: P12_EPSB_JE_HEAD_LINE_NUM;
apex_collection.update_member_attribute (p_collection_name = > 'ARGYLL_INVOICES',)
p_seq = > CURR_SEQ_ID p_attr_number = > 17, p_attr_value = > "EDMO");
It works fine, but of course, it is hard coded. I would use the api wwv_flow.g_f01 but I can't make it work with my rudimentary understanding of this api call.
apex_collection.update_member_attribute (p_collection_name = > 'ARGYLL_INVOICES',)
p_seq = > CURR_SEQ_ID p_attr_number = > 17, p_attr_value = > wwv_flow.g_f01 (a few references here);
Any guidance would be most appreciated.
Thank youHere is an excerpt from a quick tutorial on the use of collections. I'm including the section of the report you can see the corresponding values:
SELECT rownum, apex_item.hidden(1, c001), --Key ID apex_item.text(2, c002, 8, 8) VALUE1, apex_item.text(3, c003, 3, 3) VALUE2, apex_item.text(4, c004, 8, 8) VALUE3, apex_item.date_popup(5, null,c005,'MMDDYYYY',10,10) MY_DATE FROM APEX_COLLECTIONS WHERE COLLECTION_NAME = 'MY_COLLECTION'
It will be a report as a SQL report - you are just pulling the data from the collection. You can always ask the nice formatting, naming, sorting, etc. of a standard report. In the report, the user will have 3 values 'text' and a Date with the date picker. You can change the format, make sure just to change all four procedures.
What is critical to note here are the numbers that come just before the column names. These numbers become identifier in the table used to capture data. What is APEX is creates an array of up to 50 items designated as F01 - F50. The F is static, but the number that follows, it matches the number on your tax report above, IE, F01 will contain the primary key value, F02 will contain the first numeric value, etc.. Although not strictly necessary, it is advisable to assign these values so you don't have to guess.
A note more: I try to align c00x values in the column with the values of F0X collection in the table to stand straight, but they are values that do NOT have to match. If you have a request that you think could get developed, you can leave gaps where you want. Remember, however, that you have only 50 columns of table to use for the data entry. It is the limit of F0X table even if a collection can have up to 1000 values.
Now, you need a way to capture the user input. I like to create this as a PRELIMINARY procedure CALCULATIONS/VALIDATIONS in this way the user can see what they changed (even if it is false). Use Validations to intercept errors.
declare j pls_integer := 0; begin for j1 in ( select seq_id from apex_collections where collection_name = 'MY_COLLECTION' order by seq_id) loop j := j+1; --VAL1 (number) apex_collection.update_member_attribute (p_collection_name=> 'MY_COLLECTION', p_seq=> j1.seq_id,p_attr_number =>2,p_attr_value=>wwv_flow.g_f02(j)); --VAL2 (number) apex_collection.update_member_attribute (p_collection_name=> 'MY_COLLECTION', p_seq=> j1.seq_id,p_attr_number =>3,p_attr_value=>wwv_flow.g_f03(j)); --VAL3 (text) apex_collection.update_member_attribute (p_collection_name=> 'MY_COLLECTION', p_seq=> j1.seq_id,p_attr_number =>4,p_attr_value=>wwv_flow.g_f04(j)); --VAL4 (Date) apex_collection.update_member_attribute (p_collection_name=> 'MY_COLLECTION', p_seq=> j1.seq_id,p_attr_number =>5,p_attr_value=>wwv_flow.g_f05(j)); end loop; end;
Clear as mud? Walk slowly through it. The syntax tells APEX Collection (p_collection_name) (p_seq) line, then what attribute/column (p_attr_number) updated with the value (wwv_flow.g_f0X (j)). The number of the attribute is the column number of the collection without the 'c' on the front (IE c004 in the collection = attribute 4).
See if this helps answer the question. You'll notice that I'm grabbing values SEQ_ID of the collection and a loop through them one at a time and using them to find the index of the JavaScript array holding the corresponding value, I need to use in the update part.
-
I took Basic training courses so DIAdem Advanced and have been scripting for several months. I am interested in how to include specific lines of code based on the computer. Told me it would be similar to .ini in LabVIEW files, although I've never used myself .ini files.
Hi Karen,.
What do you mean by "includes the lines of code? Do you mean what happens when you run a command 'ScriptInclude()' or 'ScriptCmdAdd()' in a tiara VBScript? Or do you mean that you want to run several lines as DIAdem begins, similar to 'ScriptStart() '?
What do you mean by "computer-based? Do you mean you want to implement different batch files on different computers, but you are still using the same file (named) command on each target computer? Or do you mean that you want to implement the same command on all target computers file, but you want different commands to run this file based on the computer on which you are. In the latter case, how do you determine computer on which you are on - MAC address, logged in user name, or what?
Brad Turpin
Tiara Product Support Engineer
National Instruments
-
Hello
I would like to insert a subarray (line) in a 2D to the correct index table. The position is to say the index value depends on the value of the first column of the table 2d.
As an examlple my 2d array would look like this
230 50 215 255
300 60 270 330
360 20 350 370
And I would like to insert another line (subarray) with the following values
320 40 300 340
This new line should be placed between the second and third rows (this is based on the first column only).
I tried the threshold 1 d function table by taking an 1Dsub array of my 2d array (first column), then using the first of the new line (320) as the threshold. It sort of work, but it does not work when I start the table (IE there is only 1 row) and it seems to not work properly on other occasions (as explained in the help of Labview).
Hopefully the explanation is clear enough for any suggestion. Thanks in advance for the help!
JTRI wrote:
The idea is I have start with a new table and add these lines in the right order every time that the user sets the values Jack
Ahh, so try this.
This will also work with an empty array.
You want to do with this function it is a Subvi.
Make the entries 'table' and 'subarray"on the connector, then 'new array' output.
You can then put this Subvi in a loop with a registry to shift and it will help to add new lines in a sorted order, when they are added.
That is what you were aiming for?
-
Display multiple lines of data collection defined by the user in an e-mail message
I created a collection defined by the user that displays several lines of data. I created a custom rule and have linked this collection set by the user to this rule and configure an e-mail action. Variable Seveity, I have defined it in the rule to contain the column values. But it will only contain the first line of data. How can I display multiple lines of data in the alarm itself as well as the e-mail? Any help is appreciated.
The example query in the collection defined by the user is less;
Select the type, status, queuename, count (*) from PSAPMSGPUBHDR
Union
Select the type, status, queuename, count (*) from PSAPMSGPUBCON
Union
Select the type, status, queuename, count (*) from PSAPMSGSUBCON
Result:
Number of status type Queuename
------- ---------------------- ---------- -------------
HDR profil_utilisateur error 1
PUB PERSON_BASIC New 4
PUB WORKFORCE_SYNC error 1
-3 rows
I have defined the variables of gravity and the alarm message is something like this; (It is fetching only the first row of data) how do I loop through to get all the rows of data and display it in the message of alarm/email (alert) action must be written of the groovy script code to achieve this goal? If Yes can you please provide me examples?
Alarm message:
"Request message queue is:
Type: @UDC_type
QueueName: @UDC_queuename
Status: @UDC_status
County: @UDC_count
Thanks in advance
JAI
Hi Jay,.
fine I could help you. Please mark the thread as "Answered" when the issue has been resolved and do not hesitate to open a new thread for questions.
Concerning
Jochen
-
Hide a line based on the State.
Hello, I have a requirement where I have to hide a line based on the State. I am able to highlight the lines but hide the entire line does not work.
Condition must be met on a line:
- Thus, if a sum of EXP5_11, EXP6_11, EXP7_11 and EXP8_11 in a current group is all zeros hide this line. Please refer to the RTF-model.
Attachments:
- RTF-model.
- XML file.
- Sample output generated when the lines are highlighted the meeting status.
Any help is much appreciated on how I can hide a line.
EM-: [email protected]
If please remove your IF condition and add the following code inside the foreach tag
This works very well in my test.
-
change the color of line based on the value of column 5 Apex in the classic report
Version of the apex 5.0.0.00.31
Standard universal theme
Page theme default template
Classic report
Foldable report template
Hello
I know this question has been asked several times here, but I'm working on 5 Apex and need to know the correct way to do it in this version.
I need to change the color of the text of the entire line (no background color) based on the value in one of the columns of the classic report. I have just two conditions, if the value of column = Yes, color should be red, otherwise it must be green.
I am new to jscript and css, so appreciate if someone can tell me the solution with steps.
I have already checked this link that changes the value of the column, need to do something similar to the whole line.
https://tylermuth.WordPress.com/2007/12/01/conditional-column-formatting-in-apex/
Hi coolmaddy007-Oracle,.
Here's an example set up on the apex.oracle.com according to the specifications you gave: https://apex.oracle.com/pls/apex/f?p=35467:1
Version of the apex 5.0.0.00.31
Standard universal theme
Page theme default template
Classic report
Foldable report template
Here is how it is done:
Create a dynamic action with the following specifications:
Name: Give the appropriate name
Event: After refresh
Selection type: region
Region: select your region classic report
Condition: No strings attached
Action: Run the JavaScript Code
Fire on loading the Page: Yes
Code:
$('td[headers="JOB"]').each(function() { if ( $(this).text() === 'MANAGER' ) { $(this).closest('tr').find('td').css({"color":"red"}); } if ( $(this).text() === 'SALESMAN' ) { $(this).closest('tr').find('td').css({"color":"green"}); } if ( $(this).text() === 'CLERK' ) { $(this).closest('tr').find('td').css({"color":"blue"}); } });
NOTE: Download the selector appropriate for your knowledge $('td[headers="JOB"]') case using firebug/browser development tools.
Items concerned: leave blank.
PS: Changed the example to change the color of text instead of the background color.
I hope this helps!
Kind regards
Kiran
-
Mr President.
Can we make several Off features in a collection of panels and how the query-off based on the example?
Concerning
Once again, no jdev version?
It must be really hard to remember ehich version you are working.
Would have given a quick glance in the docs
featuresOff java.util.Set Yes a list separated by spaces of the features by default to disable to the panelCollection. Values supported are That is the answer to a message.
The second answer is that qbe is filtering tables. If you fund the table without filter you have not the qbe.
Timo
-
highlight the function on that I am based on the line of code that I'm
I tried, but I couldn't find the right combination to find an answer, so sorry if this has been asked before.
I find myself with 'find the database object' a lot, which is great, when I'm looking for a line of source code. When I click on the result and get to the line of source in the body, I do a lot of scrolling sometimes to understand what I am in the service.
Is there a way to have SQLDeveloper highlight automatically the function in the connections tree based on the line of my cursor is on in the code editor?
Thank you very much in advance.
In version 4, if you look at the bottom of your editor, you will see the navigation breadcrumbs, which will tell you where you are at.
-
Basic conditional script based on the number of lines in a text layer?
Just received help here to write a conditional script by using the font size of a text layer. Thank you all for this.
The next hurdle is a conditional script using the number of lines in a text layer in the differential. Far as I can tell it not the layer details which specify the number of lines. Just '\r' for a return in the idTxt descriptor. Nothing seems to stand for a soft return as far as I can tell. I'll probably have to be able to count the lines with soft and hard returns.
Any thoughts?
I was playing around with this a bit and here is a small script to determine the number of rows. This is based on the self in the head, that I calculated to environ.108 times the size of the font.
#target photoshop app.preferences.rulerUnits = Units.POINTS; var doc = activeDocument var tL = doc.activeLayer var h = tL.bounds[3]-tL.bounds[1] var per = ((h/5)-(tL.textItem.size))/tL.textItem.size var num = h/(tL.textItem.size *1.108) alert(Math.round( num))
-
Create lines based on the difference in date
Hello
I would like to create lines based on the difference between the start and end dates (per year).
for example
ID1 Start_time End_time ID2
07/01/2003 1, 12.00.00.000000000 2005-01-07 12.00.00.000000000 12307/01/1999 1, 12.00.00.000000000 07/01/2003 12.00.00.000000000 345
I need:
ID1 Start_time End_time ID2
07/01/2004 1, 12.00.00.000000000 2005-01-07 12.00.00.000000000 12307/01/2003 1 12.00.00.000000000 07/01/2004 12.00.00.000000000 123
1 01/07/2002 12.00.00.000000000 07/01/2003 12.00.00.000000000 345
07/01/2001 1, 12.00.00.000000000 01/07/2002 12.00.00.000000000 345
07/01/2000 1, 12.00.00.000000000 01/07/2001 12.00.00.000000000 345
07/01/1999 1, 12.00.00.000000000 07/01/2000 12.00.00.000000000 345
Thank you
Hello
Here's one way:
SELECT ID1
, ADD_MONTHS (start_time, 12 * (LEVEL - 1)) AS start_time value
, ADD_MONTHS (start_time, 12 * LEVEL) AS end_time
id2
FROM table_x
CONNECT BY LEVEL<= months_between="" (end_time,="" start_time)="">=>
AND PRIOR id2 = id2
AND PRIOR SYS_GUID () IS NOT NULL
;
I'm assuming that id2 is unique.
Would what results you if end_time wasn't exactly N years after start_time?
Maybe you are looking for
-
Combine the two projects into one
I know it is a very popular question and I read many answers excellent previous answers. The two most popular procedures seem to be simple copy - paste and use clips of compounds with copy / paste. CPF has improved this process over the years and I
-
Hello:I know that many people have problems with this doodle, but in my case having ' subject: House "as home page, I can't see the animation. How can I activate it?
-
home page together will not remain as home page "work at home Australia" has supported
I tried to put my homepage "bigpond.com", but in addition to be OK for this session, the setting reverts back "work at home Australia" my setting is only good for this particular session.
-
Cannot uncheck Safari preference to "Open 'safe' files after downloading".
The option to open the 'reliable' files after downloading Safari preferences (general tab) is grayed out so that the selection cannot be changed. It is currently enabled, and I want to uncheck. Running OS - X El Capitan version 10.11.4 on a Macbook o
-
Is the host character included with a subscription to creative cloud?
The icon "Ch" is not listed as a downloadable application on my computer?