Table comparison search
Is there a way to search in a table for the first item that is less than a specific number? - As the function search table but by comparison instead of equals?
Thank you
I don't think that there is a direct way.
A simple option: first make your comparison (you can compare an array to a scalar), this will result in an array of Boolean. Then search for 'True' in the table of Boolean.
Tags: NI Software
Similar Questions
-
Choice of the message can be changed in the table of search results Simple query region?
Hi friends,
I have a Simple search query region in 11i.
I created the SearchVO and bound to the query Table Region.
I have two attributes MessageStyleText and a MessageChoice attribute in the simple search criteria.
Search results show very well for all attributes.
But when I search with the criteria of MessageChoice, in the table of results, this attribute MessageChoice is indicated as editable, display the drop-down list.
I did this attribute ReadOnly = True but then it becomes readonly in search also. So this dosent help.
I need to this drop-down list of MessageChoice be modifiable in the search criteria, but read in the table of results.
Please help me with the resolution. Its kinda urgent.
Would appreciate any help.
Thank you
Rajesh
He solved.
Added programmatically in code.
Kept the attribute as MessageChoice in the query Table Region.
Added to the controller
' Public Sub processRequest (pageContext OAPageContext, OAWebBean webBean)
{
super.processRequest (pageContext, webBean);
OAM OAApplicationModule = pageContext.getRootApplicationModule ();
OAMessageChoiceBean = processFlagMessageChoice
(OAMessageChoiceBean) webBean.findChildRecursive ("AttributeId");
processFlagMessageChoice.setReadOnly (true);
}
-
Creating a unique index frame on a one-to-many table and search
Hello
I was properly put in place of the full text index on multiple columns on the same table (using the MULTI_COLUMN_DATASTORE preferences), but now I have a situation with a table of one-to-many data collection (with a CF of a lookup table), and I need to get columns through two of these tables. Code example below, several of my chatter after the code block:
I want to be able to create a text index to group these fields:CREATE TABLE SUBMISSION ( SUBMISSION_ID NUMBER(10) NOT NULL, SUBMISSION_NAME VARCHAR2(100) NOT NULL ); CREATE TABLE ADVISOR_TYPE ( ADVISOR_TYPE_ID NUMBER(10) NOT NULL, ADVISOR_TYPE_NAME VARCHAR2(50) NOT NULL ); CREATE TABLE SUBMISSION_ADVISORS ( SUBMISSION_ADVISORS_ID NUMBER(10) NOT NULL, SUBMISSION_ID NUMBER(10) NOT NULL, ADVISOR_TYPE_ID NUMBER(10) NOT NULL, FIRST_NAME VARCHAR(50) NULL, LAST_NAME VARCHAR(50) NULL, SUFFIX VARCHAR(20) NULL ); INSERT INTO SUBMISSION (SUBMISSION_ID, SUBMISSION_NAME) VALUES (1, 'Some Research Paper'); INSERT INTO SUBMISSION (SUBMISSION_ID, SUBMISSION_NAME) VALUES (2, 'Thesis on 17th Century Weather Patterns'); INSERT INTO SUBMISSION (SUBMISSION_ID, SUBMISSION_NAME) VALUES (3, 'Statistical Analysis on Sunny Days in March'); INSERT INTO ADVISOR_TYPE (ADVISOR_TYPE_ID, ADVISOR_TYPE_NAME) VALUES (1, 'Department Chair'); INSERT INTO ADVISOR_TYPE (ADVISOR_TYPE_ID, ADVISOR_TYPE_NAME) VALUES (2, 'Department Co-Chair'); INSERT INTO ADVISOR_TYPE (ADVISOR_TYPE_ID, ADVISOR_TYPE_NAME) VALUES (3, 'Professor'); INSERT INTO ADVISOR_TYPE (ADVISOR_TYPE_ID, ADVISOR_TYPE_NAME) VALUES (4, 'Associate Professor'); INSERT INTO ADVISOR_TYPE (ADVISOR_TYPE_ID, ADVISOR_TYPE_NAME) VALUES (5, 'Scientist'); INSERT INTO SUBMISSION_ADVISORS (SUBMISSION_ADVISORS_ID, SUBMISSION_ID, ADVISOR_TYPE_ID, FIRST_NAME, LAST_NAME, SUFFIX) VALUES (1,1,2,'John', 'Doe', 'PhD'); INSERT INTO SUBMISSION_ADVISORS (SUBMISSION_ADVISORS_ID, SUBMISSION_ID, ADVISOR_TYPE_ID, FIRST_NAME, LAST_NAME, SUFFIX) VALUES (2,1,2,'Jane', 'Doe', 'PhD'); INSERT INTO SUBMISSION_ADVISORS (SUBMISSION_ADVISORS_ID, SUBMISSION_ID, ADVISOR_TYPE_ID, FIRST_NAME, LAST_NAME, SUFFIX) VALUES (3,2,3,'Johan', 'Smith', NULL); INSERT INTO SUBMISSION_ADVISORS (SUBMISSION_ADVISORS_ID, SUBMISSION_ID, ADVISOR_TYPE_ID, FIRST_NAME, LAST_NAME, SUFFIX) VALUES (4,2,4,'Magnus', 'Jackson', 'MS'); INSERT INTO SUBMISSION_ADVISORS (SUBMISSION_ADVISORS_ID, SUBMISSION_ID, ADVISOR_TYPE_ID, FIRST_NAME, LAST_NAME, SUFFIX) VALUES (5,3,5,'Williard', 'Forsberg', 'AMS'); COMMIT;
SUBMISSION_ADVISORS. FIRST NAME
SUBMISSION_ADVISORS. LAST_NAME
SUBMISSION_ADVISORS. SUFFIX
ADVISOR_TYPE. ADVISOR_TYPE_NAME
I looked at DETAIL_DATASTORE and USER_DATASTORE, but examples of Oracle Docs for DETAIL_DATASTORE leave me a little confused. It seems that this should be fairly simple.
Ideally, I try to avoid creating new columns and keeping a minimum shutter adjustments. But I'm open to any suggestion. Thanks for your time and your thoughts.
-JamieI would create a procedure that creates a virtual with labels document, what is the multi_column_datatstore behind the scenes. Then I would like to use this procedure in a user_datastore, so the result is the same for several tables as a multi_column_datastore for a table. I would use auto_section_group or another type of Group of sections, so that you can search from WITHIN as with the multi_column_datastore. Please see the demo below.
SCOTT@orcl_11gR2> -- tables and data that you provided: SCOTT@orcl_11gR2> CREATE TABLE SUBMISSION 2 ( SUBMISSION_ID NUMBER(10) NOT NULL, 3 SUBMISSION_NAME VARCHAR2(100) NOT NULL 4 ) 5 / Table created. SCOTT@orcl_11gR2> CREATE TABLE ADVISOR_TYPE 2 ( ADVISOR_TYPE_ID NUMBER(10) NOT NULL, 3 ADVISOR_TYPE_NAME VARCHAR2(50) NOT NULL 4 ) 5 / Table created. SCOTT@orcl_11gR2> CREATE TABLE SUBMISSION_ADVISORS 2 ( SUBMISSION_ADVISORS_ID NUMBER(10) NOT NULL, 3 SUBMISSION_ID NUMBER(10) NOT NULL, 4 ADVISOR_TYPE_ID NUMBER(10) NOT NULL, 5 FIRST_NAME VARCHAR(50) NULL, 6 LAST_NAME VARCHAR(50) NULL, 7 SUFFIX VARCHAR(20) NULL 8 ) 9 / Table created. SCOTT@orcl_11gR2> INSERT ALL 2 INTO SUBMISSION (SUBMISSION_ID, SUBMISSION_NAME) 3 VALUES (1, 'Some Research Paper') 4 INTO SUBMISSION (SUBMISSION_ID, SUBMISSION_NAME) 5 VALUES (2, 'Thesis on 17th Century Weather Patterns') 6 INTO SUBMISSION (SUBMISSION_ID, SUBMISSION_NAME) 7 VALUES (3, 'Statistical Analysis on Sunny Days in March') 8 SELECT * FROM DUAL 9 / 3 rows created. SCOTT@orcl_11gR2> INSERT ALL 2 INTO ADVISOR_TYPE (ADVISOR_TYPE_ID, ADVISOR_TYPE_NAME) 3 VALUES (1, 'Department Chair') 4 INTO ADVISOR_TYPE (ADVISOR_TYPE_ID, ADVISOR_TYPE_NAME) 5 VALUES (2, 'Department Co-Chair') 6 INTO ADVISOR_TYPE (ADVISOR_TYPE_ID, ADVISOR_TYPE_NAME) 7 VALUES (3, 'Professor') 8 INTO ADVISOR_TYPE (ADVISOR_TYPE_ID, ADVISOR_TYPE_NAME) 9 VALUES (4, 'Associate Professor') 10 INTO ADVISOR_TYPE (ADVISOR_TYPE_ID, ADVISOR_TYPE_NAME) 11 VALUES (5, 'Scientist') 12 SELECT * FROM DUAL 13 / 5 rows created. SCOTT@orcl_11gR2> INSERT ALL 2 INTO SUBMISSION_ADVISORS (SUBMISSION_ADVISORS_ID, SUBMISSION_ID, ADVISOR_TYPE_ID, FIRST_NAME, LAST_NAME, SUFFIX) 3 VALUES (1,1,2,'John', 'Doe', 'PhD') 4 INTO SUBMISSION_ADVISORS (SUBMISSION_ADVISORS_ID, SUBMISSION_ID, ADVISOR_TYPE_ID, FIRST_NAME, LAST_NAME, SUFFIX) 5 VALUES (2,1,2,'Jane', 'Doe', 'PhD') 6 INTO SUBMISSION_ADVISORS (SUBMISSION_ADVISORS_ID, SUBMISSION_ID, ADVISOR_TYPE_ID, FIRST_NAME, LAST_NAME, SUFFIX) 7 VALUES (3,2,3,'Johan', 'Smith', NULL) 8 INTO SUBMISSION_ADVISORS (SUBMISSION_ADVISORS_ID, SUBMISSION_ID, ADVISOR_TYPE_ID, FIRST_NAME, LAST_NAME, SUFFIX) 9 VALUES (4,2,4,'Magnus', 'Jackson', 'MS') 10 INTO SUBMISSION_ADVISORS (SUBMISSION_ADVISORS_ID, SUBMISSION_ID, ADVISOR_TYPE_ID, FIRST_NAME, LAST_NAME, SUFFIX) 11 VALUES (5,3,5,'Williard', 'Forsberg', 'AMS') 12 SELECT * FROM DUAL 13 / 5 rows created. SCOTT@orcl_11gR2> -- constraints presumed based on your description: SCOTT@orcl_11gR2> ALTER TABLE submission ADD CONSTRAINT submission_id_pk 2 PRIMARY KEY (submission_id) 3 / Table altered. SCOTT@orcl_11gR2> ALTER TABLE advisor_type ADD CONSTRAINT advisor_type_id_pk 2 PRIMARY KEY (advisor_type_id) 3 / Table altered. SCOTT@orcl_11gR2> ALTER TABLE submission_advisors ADD CONSTRAINT submission_advisors_id_pk 2 PRIMARY KEY (submission_advisors_id) 3 / Table altered. SCOTT@orcl_11gR2> ALTER TABLE submission_advisors ADD CONSTRAINT submission_id_fk 2 FOREIGN KEY (submission_id) REFERENCES submission (submission_id) 3 / Table altered. SCOTT@orcl_11gR2> ALTER TABLE submission_advisors ADD CONSTRAINT advisor_type_id_fk 2 FOREIGN KEY (advisor_type_id) REFERENCES advisor_type (advisor_type_id) 3 / Table altered. SCOTT@orcl_11gR2> -- resulting data: SCOTT@orcl_11gR2> COLUMN submission_name FORMAT A45 SCOTT@orcl_11gR2> COLUMN advisor FORMAT A40 SCOTT@orcl_11gR2> SELECT s.submission_name, 2 a.advisor_type_name || ' ' || 3 sa.first_name || ' ' || 4 sa.last_name || ' ' || 5 sa.suffix AS advisor 6 FROM submission_advisors sa, 7 submission s, 8 advisor_type a 9 WHERE sa.advisor_type_id = a.advisor_type_id 10 AND sa.submission_id = s.submission_id 11 / SUBMISSION_NAME ADVISOR --------------------------------------------- ---------------------------------------- Some Research Paper Department Co-Chair John Doe PhD Some Research Paper Department Co-Chair Jane Doe PhD Thesis on 17th Century Weather Patterns Professor Johan Smith Thesis on 17th Century Weather Patterns Associate Professor Magnus Jackson MS Statistical Analysis on Sunny Days in March Scientist Williard Forsberg AMS 5 rows selected. SCOTT@orcl_11gR2> -- procedure to create virtual documents: SCOTT@orcl_11gR2> CREATE OR REPLACE PROCEDURE submission_advisors_proc 2 (p_rowid IN ROWID, 3 p_clob IN OUT NOCOPY CLOB) 4 AS 5 BEGIN 6 FOR r1 IN 7 (SELECT * 8 FROM submission_advisors 9 WHERE ROWID = p_rowid) 10 LOOP 11 IF r1.first_name IS NOT NULL THEN 12 DBMS_LOB.WRITEAPPEND (p_clob, 12, '
'); 13 DBMS_LOB.WRITEAPPEND (p_clob, LENGTH (r1.first_name), r1.first_name); 14 DBMS_LOB.WRITEAPPEND (p_clob, 13, ' '); 15 END IF; 16 IF r1.last_name IS NOT NULL THEN 17 DBMS_LOB.WRITEAPPEND (p_clob, 11, ''); 18 DBMS_LOB.WRITEAPPEND (p_clob, LENGTH (r1.last_name), r1.last_name); 19 DBMS_LOB.WRITEAPPEND (p_clob, 12, ' '); 20 END IF; 21 IF r1.suffix IS NOT NULL THEN 22 DBMS_LOB.WRITEAPPEND (p_clob, 8, ''); 23 DBMS_LOB.WRITEAPPEND (p_clob, LENGTH (r1.suffix), r1.suffix); 24 DBMS_LOB.WRITEAPPEND (p_clob, 9, ' '); 25 END IF; 26 FOR r2 IN 27 (SELECT * 28 FROM submission 29 WHERE submission_id = r1.submission_id) 30 LOOP 31 DBMS_LOB.WRITEAPPEND (p_clob, 17, ''); 32 DBMS_LOB.WRITEAPPEND (p_clob, LENGTH (r2.submission_name), r2.submission_name); 33 DBMS_LOB.WRITEAPPEND (p_clob, 18, ' '); 34 END LOOP; 35 FOR r3 IN 36 (SELECT * 37 FROM advisor_type 38 WHERE advisor_type_id = r1.advisor_type_id) 39 LOOP 40 DBMS_LOB.WRITEAPPEND (p_clob, 19, ''); 41 DBMS_LOB.WRITEAPPEND (p_clob, LENGTH (r3.advisor_type_name), r3.advisor_type_name); 42 DBMS_LOB.WRITEAPPEND (p_clob, 20, ' '); 43 END LOOP; 44 END LOOP; 45 END submission_advisors_proc; 46 / Procedure created. SCOTT@orcl_11gR2> SHOW ERRORS No errors. SCOTT@orcl_11gR2> -- examples of virtual documents that procedure creates: SCOTT@orcl_11gR2> DECLARE 2 v_clob CLOB := EMPTY_CLOB(); 3 BEGIN 4 FOR r IN 5 (SELECT ROWID rid FROM submission_advisors) 6 LOOP 7 DBMS_LOB.CREATETEMPORARY (v_clob, TRUE); 8 submission_advisors_proc (r.rid, v_clob); 9 DBMS_OUTPUT.PUT_LINE (v_clob); 10 DBMS_LOB.FREETEMPORARY (v_clob); 11 END LOOP; 12 END; 13 /John Doe PhD Some Research Paper Department Co-Chair Jane Doe PhD Some Research Paper Department Co-Chair Johan Smith Thesis on 17th Century Weather Patterns Professor Magnus Jackson MS The sis on 17th Century Weather Patterns Associate Professor Williard Forsberg AMS Statistical Analysis on Sunny Days in
March
Scientist PL/SQL procedure successfully completed. SCOTT@orcl_11gR2> -- user_datastore that uses procedure: SCOTT@orcl_11gR2> BEGIN 2 CTX_DDL.CREATE_PREFERENCE ('sa_datastore', 'USER_DATASTORE'); 3 CTX_DDL.SET_ATTRIBUTE ('sa_datastore', 'PROCEDURE', 'submission_advisors_proc'); 4 END; 5 / PL/SQL procedure successfully completed. SCOTT@orcl_11gR2> -- index (on optional extra column) that uses user_datastore and section group: SCOTT@orcl_11gR2> ALTER TABLE submission_advisors ADD (any_column VARCHAR2(1)) 2 / Table altered. SCOTT@orcl_11gR2> CREATE INDEX submission_advisors_idx 2 ON submission_advisors (any_column) 3 INDEXTYPE IS CTXSYS.CONTEXT 4 PARAMETERS 5 ('DATASTORE sa_datastore 6 SECTION GROUP CTXSYS.AUTO_SECTION_GROUP') 7 / Index created. SCOTT@orcl_11gR2> -- what is tokenized, indexed, and searchable: SCOTT@orcl_11gR2> SELECT token_text FROM dr$submission_advisors_idx$i 2 / TOKEN_TEXT ---------------------------------------------------------------- 17TH ADVISOR_TYPE_NAME AMS ANALYSIS ASSOCIATE CENTURY CHAIR CO DAYS DEPARTMENT DOE FIRST_NAME FORSBERG JACKSON JANE JOHAN JOHN LAST_NAME MAGNUS MARCH PAPER PATTERNS PHD PROFESSOR RESEARCH SCIENTIST SMITH STATISTICAL SUBMISSION_NAME SUFFIX SUNNY THESIS WEATHER WILLIARD 34 rows selected. SCOTT@orcl_11gR2> -- sample searches across all data: SCOTT@orcl_11gR2> VARIABLE search_string VARCHAR2(100) SCOTT@orcl_11gR2> EXEC :search_string := 'professor' PL/SQL procedure successfully completed. SCOTT@orcl_11gR2> SELECT s.submission_name, 2 a.advisor_type_name || ' ' || 3 sa.first_name || ' ' || 4 sa.last_name || ' ' || 5 sa.suffix AS advisor 6 FROM submission_advisors sa, 7 submission s, 8 advisor_type a 9 WHERE CONTAINS (sa.any_column, :search_string) > 0 10 AND sa.advisor_type_id = a.advisor_type_id 11 AND sa.submission_id = s.submission_id 12 / SUBMISSION_NAME ADVISOR --------------------------------------------- ---------------------------------------- Thesis on 17th Century Weather Patterns Professor Johan Smith Thesis on 17th Century Weather Patterns Associate Professor Magnus Jackson MS 2 rows selected. SCOTT@orcl_11gR2> EXEC :search_string := 'doe' PL/SQL procedure successfully completed. SCOTT@orcl_11gR2> / SUBMISSION_NAME ADVISOR --------------------------------------------- ---------------------------------------- Some Research Paper Department Co-Chair John Doe PhD Some Research Paper Department Co-Chair Jane Doe PhD 2 rows selected. SCOTT@orcl_11gR2> EXEC :search_string := 'paper' PL/SQL procedure successfully completed. SCOTT@orcl_11gR2> / SUBMISSION_NAME ADVISOR --------------------------------------------- ---------------------------------------- Some Research Paper Department Co-Chair John Doe PhD Some Research Paper Department Co-Chair Jane Doe PhD 2 rows selected. SCOTT@orcl_11gR2> -- sample searches within specific columns: SCOTT@orcl_11gR2> EXEC :search_string := 'chair' PL/SQL procedure successfully completed. SCOTT@orcl_11gR2> SELECT s.submission_name, 2 a.advisor_type_name || ' ' || 3 sa.first_name || ' ' || 4 sa.last_name || ' ' || 5 sa.suffix AS advisor 6 FROM submission_advisors sa, 7 submission s, 8 advisor_type a 9 WHERE CONTAINS (sa.any_column, :search_string || ' WITHIN advisor_type_name') > 0 10 AND sa.advisor_type_id = a.advisor_type_id 11 AND sa.submission_id = s.submission_id 12 / SUBMISSION_NAME ADVISOR --------------------------------------------- ---------------------------------------- Some Research Paper Department Co-Chair John Doe PhD Some Research Paper Department Co-Chair Jane Doe PhD 2 rows selected. SCOTT@orcl_11gR2> EXEC :search_string := 'phd' PL/SQL procedure successfully completed. SCOTT@orcl_11gR2> SELECT s.submission_name, 2 a.advisor_type_name || ' ' || 3 sa.first_name || ' ' || 4 sa.last_name || ' ' || 5 sa.suffix AS advisor 6 FROM submission_advisors sa, 7 submission s, 8 advisor_type a 9 WHERE CONTAINS (sa.any_column, :search_string || ' WITHIN suffix') > 0 10 AND sa.advisor_type_id = a.advisor_type_id 11 AND sa.submission_id = s.submission_id 12 / SUBMISSION_NAME ADVISOR --------------------------------------------- ---------------------------------------- Some Research Paper Department Co-Chair John Doe PhD Some Research Paper Department Co-Chair Jane Doe PhD 2 rows selected. SCOTT@orcl_11gR2> EXEC :search_string := 'weather' PL/SQL procedure successfully completed. SCOTT@orcl_11gR2> SELECT s.submission_name, 2 a.advisor_type_name || ' ' || 3 sa.first_name || ' ' || 4 sa.last_name || ' ' || 5 sa.suffix AS advisor 6 FROM submission_advisors sa, 7 submission s, 8 advisor_type a 9 WHERE CONTAINS (sa.any_column, :search_string || ' WITHIN submission_name') > 0 10 AND sa.advisor_type_id = a.advisor_type_id 11 AND sa.submission_id = s.submission_id 12 / SUBMISSION_NAME ADVISOR --------------------------------------------- ---------------------------------------- Thesis on 17th Century Weather Patterns Professor Johan Smith Thesis on 17th Century Weather Patterns Associate Professor Magnus Jackson MS 2 rows selected. -
Alignment of Google ads within a table &; amp; Search results
Hi, I am new and just try on dreamweaver with CSS and other things...
First of all, I'm not sure if I should actually post my question here, but since I'm on dreamweaver, that's why I chose to do...
(1) I would like to insert a google ads to the place marked in the image below. I tried to insert a table, but the entire page loses its design. If not, how can I do?
(2) my main www page. vaktum.com does not appear in Yahoo or Google Search. What could be the problem? I have submitted many other as well search engines... Would it because I use tables instead of pure CSS? If pure CSS how can I do? Can someone guide me on this?
Any help would be appreciated.
Thank you.
Traore.
"" "" < a href = " http://photobucket.com/" target = '_blank' > < img src = " http://i117.photobucket.com/albums/o41/thila36/insertads.gif" border = "0" alt = "Photobucket - Video and Image Hosting" > < /a >> I chose to do this way because later, if I want to put some flash intro
> or
> something like that I just changed the home page. The inside page, I do not have
> must
> change...
> Does that mean that when I submit to search engines, I must present the
> www.vaktum.com/worldofmusic.htm instead of just www.vaktum.com?Flash is going to be another problem with search engines - still no text-
so you will need to text on the page for the spiders to index. Most of the work of its
Since the index page from - so you can have a same problem if you don't
submit the internal pages.> Regarding your addition, why not insert another table (2 cells in this area)
> have
> the content of text in a cell and adds in the adjacent cell.
>
> I did exactly that. However, any design exploded. somehow, the ads on
> the
> right column went way below the page, as well as the menu on the left.Here is a small example, I've done for you:
http://www.DreamweaverResources.com/Forum/thilak/I used one of your scripts from google to put in the right cell, which is why
It is extended under the contents of the cell to the left... I assume that you would
using a small ad for this area in any case. Copy and paste the code into a new
Window of DW to see how/where I inserted the ;-)-2 column table--
Nadia
Adobe® Expert community: Dreamweaver
-------------------------------------------------
CSS templates | Tutorials | SEO articles
http://www.DreamweaverResources.com
http://www.csstemplates.com.au
-------------------------------------------------
http://www.perrelink.com.au -
Hi all
I have a table with the columns form: en Id Type_email
E-mail type can have some values.
I also made a page, named «Type-email search» element
This article is a list of selection with certain values that can have the Type_email column.
When I select one of the values, only the rows with this value should be included in the tabular presentation.
Is someone can you please tell me how I can do?
Thank you much in advance.Set up your report by adding this in your WHERE clause.
SELECT ... FROM ... WHERE TYPE_EMAIL = :PX_TYPE_EMAIL AND ...
As long as the value of return in your list of values is the datatype of the column in the report, you will have a match.
Now, if you want to get a bit more fancy, you can also make your limited report If the limit value is set and if not, it will include all. The NVL command converts to:
SELECT ... FROM ... WHERE TYPE_EMAIL = NVL(:PX_TYPE_EMAIL,TYPE_EMAIL) AND ...
In this example, if your selection value returns null, you will get all values in your database, but if user selects something in the drop-down menu, you will see those. These types of selection lists are very practical for users.
-
Hi, I'm fairly new to Labview and I have this problem:
I am in a position sensitivity of radio link to microwave with the attenuator of voltage controlled od aif. First of all, I do calibration attenuator itself, if I get the file .csv with two columns (power: voltage). In the next step, I do measure. As a result, I know voltage and I need to open the file of calibration, to find the measured voltage and find the corresponding power value.
I found here ( https://decibel.ni.com/content/docs/DOC-29642 ), VI, which can do this task and I change to display found element (same row, column - 1, where power values is) and when I run it, it works corectly, but when I call this my hand VI, he sometimes returns correct value and sometimes NaN. When I ran main ten times, the values for which prright program returns the correct value, or NaN are always the same, but when I check these values manually in the Subvi, it works corectlly.
I'm really desperate with this behavior and I will be happy for all the help
1. no need at all to the structure of the sequence.
2. no need to convert 2D into a matrix table. The Index table can manage multiple dimensions.
3. what I think that your problem here, is that the soft-points are not accurate. It is a problem with all programming languages.
What you should really use is threshold D 1 table to get the index of the tension and then interpolate 1 table D to get your power. No need for loops.
-
How do the function of table 1 d search case-insensitive for the array of strings
How do the function of table 1 d search case-insensitive for the array of strings
Hi Karine,.
convert the two (table and search for the string) to lowercase before using this feature...
-
Search in the af Date field: table does not
Hello
12.1.3 Jdev
In my application, there are 6 pages. 3 of them have table with search and sort active areas. All parts of the table have the date field.
When the page is loaded, the search for the Date field does not work (no popup the calendar will). When all action happens on the page, the search option is missing for the date field.
When the page loads:
When you press on enter in the search field in the Date column:
Interestingly, this is one of those 3 pages has a tabbed region. This problem occurs only in the first tab, same functionality in other tabs work fine.
I have tried to create another project and tried to reproduce the problem. But not able to replicate.
What could be the problem? I don't know what to check?
I tried to create a new page without using the customTemplate and just tried to add not only one table. That also had the same problem.
Let me know if I need to provide any other details.
See you soon
AJ
You can try to remove facets TestDate column filter and see if that makes a difference.
Also try to replace java.sql.Timestamp by oracle.jbo.domain.Timestamp
Dario
-
Try adding conditions to clause "and" stored in the table for the where clause, unknown syntax
I am trying to add additional segments to the 'where' clause, and I don't know exactly how to proceed. I am currently using another table to search for keywords and sometimes there aren't everything. I use this table containing the key words to search the description and associate a symbol with a path.
The code loops through the keywords with the keywords most associated and try to find links to a symbol then excludes those and search for symbols that correspond to those with less keywords and all. I am able to do this with 6 queries and manually changing the arguments, but I want to loop together so that if the changes need to be made in the future, I won't need to go digging in the code.
Thanks, but that's ok. I already have a solution for this.
-
Hallo,
in the fragment of my page, I created an af:table you drag an instance of VO for the data control; I also have a search button by dragging the operation ExecuteWithParams of the same instance of VO.
I double clicked on the serach button to create the searchButton_action method in the bean calling the ExecuteWithParams operation after you have made a few operations.
Next to the button, I put a table whose source is a gif of "load".
I would like to make visible the gif while research is underway and make it invisible when the search is complete.
In the beginning, I followed this approach.
In the searchButton_action, I wrote the code to set the visible of the image property.
But it did not work because the gif never appears. I also tried to set the property PartialTriggers of the image with the ID of the button table and search.
public String searchButton_action() { RichActiveImage imgSearch = (RichActiveImage) FacesUtils.findComponent("ImgSearch"); imgSearch.setVisible(true); AdfFacesContext.getCurrentInstance().addPartialTarget(imgSearch); // ... OperationBinding operationBinding = BindingsUtils.getBindings().getOperationBinding("MyVOInstanceExecuteWithParams"); // ... imgSearch.setVisible(false); AdfFacesContext.getCurrentInstance().addPartialTarget(imgSearch); // ... }
Then I tried with another approach which is to set the Visible property using the value off of the search button which is #{! links.} MyVOInstanceExecuteWithParams.enabled}
But also, this approach has not worked.
I also tried to set the property PartialTriggers of the image with the ID of the button table and search.
What's not in my efforts? You could you kindly help me to solve the problem?
Thank you
Federico
PS
FacesUtils.findComponent is a method that retrieves the item passed as param. It works well since I used it several more times in my application.
Your approach may not work add there is only a single thread of UI work. Your trigger reached the component when the execute with Péan has finished its work.
For your use case there are a few solutions combining JavaScript and client-server events showing a window as long as the operation is running. Read https://blogs.oracle.com/groundside/entry/notification_during_long_running_transactions for all the info.
Timo
-
Clear the check box in the new if invalid table line
Hi all.
I use JDev version 11.1.2.4.0.
I have a table with 2 columns, which one of them is a checkbox. I want to clear this check box if the user inserts a newline invalid. So far, I have an EL expression in my field to disable: disabled = "#{viewScope.viewBean.disable}", where a Boolean variable disable is. "
I put the variable Boolean true when the user inserts a line not valid, but I am not able to update the fields. The only way I can do this is to update the entire table, but then I lose the filters.
For example, I want to do something like this:
I have a VO employed with the salary attribute where the user can search/insert/update / delete. The user searches for all employees with > 30 k salary. Then, the user inserts a new employee, but he or she inserts one that's already in the DB. So, the line is not valid. I want to disable the all check box in my table WITHOUT losing the > 30 k search salary. If I update the entire table, the search has disappeared and all employees are shown.
Any ideas?
Edit: I also tried this approach, but I had the same problem with a refreshing existing lines: https://udayarocks.wordpress.com/2011/07/30/how-to-conditionally-enable-disable-the-column-contents-in-the-adf-11g-table...
The transitional value will remain if it is added to the OS, not the VO.
Timo
-
Normalize the names in a huge table using UTL_MATCH
Hello
I have a large table (350 million records) with a "full name" column
This column has a few typos, so I have to 'normalise' the data (only for this column), using UTL_MATCH. JARO_WINKLER_SIMILARITY.
I did some tests with a small table, and it works to show the similar names:
SELECT b.SID, b.name FROM typotable a, typotable b utl_match.jaro_winkler_similarity (b.SID, b.name) WHERE BETWEEN 85 and 99 AND a.rowid > b.rowid;
But:
(1) the test table was small, by using this code directly on the 350 million accounts table take ages... What can be done about it?
(2) this shows just the similar names. How can I update the table by searching for similarities, choose one of them as the only value for each name?
Thank you
1590733 wrote:
Yes, I get your point. The thing is that there is no "correct" available names and the original table is huge, that's what I thought:
-Create a table of secondary NAMES, with unique names. These names would have been generated by match the values similar to one of them (but always the same, no matter if is not one that suits). This should be equivalent to your table 'correctness '.
-Run the cleaning procedure for updating records
How can I create this secondary NAMES table? (The column 'genre' is not serious at all, that the 'name' must be set)
Thanks for your help
Well, you need to determine what is the logic that would pick one of the incorrect names on the other. In its current version, you can easily get two incorrect values having the same value of match. But then you must also consider what creates a 'group' of values that you can get the best in the group. Using the match itself is not enough to create groups.
Example:
SQL > ed
A written file afiedt.buf
1 Select a.fname as $fname1, b.fname as fname2
2, utl_match.jaro_winkler_similarity (a.fname, b.fname) as a match
3 typotable one
4 join typotable b on (a.fname! = b.fname)
where the 5 utl_match.jaro_winkler_similarity (a.fname, b.fname) > = 85
6 * 1.3 desc order
SQL > /.
$FNAME1 FNAME2 MATCH
---------- ---------- ----------
FROCEN FROZEN 92
FROZEN FROCEN 92
FROZEN FROCEN 92
FROZEN FROZEN 92
JELLY FROZIN 93
JELLY FROCEN 92
FROZEN FROZEN 92
FROZEN FROZIN 93
WHIPLASH WIPLASH 96
WHIPLASH WIPLASH 96
10 selected lines.
As you can see, for example, FROCEN has two possible variants, both with a football match of the 92. The same with others.
However, you could start cutting things around (and it's really a hack) to get something like:
SQL > ed
A written file afiedt.buf
1 with t as)
2. Select a.fname as $fname1, b.fname as fname2
3, utl_match.jaro_winkler_similarity (a.fname, b.fname) as a match
typotable a 4
5 join typotable b on (a.fname! = b.fname)
where the 6 utl_match.jaro_winkler_similarity (a.fname, b.fname) > = 85
7 )
8, ch. as)
9 select $fname1, ($fname1, fname2) greatest as fname2, match
10, (select count (*)
11 t t2
12 where t2.fname2 = t.fname2
13 and t2.fname1! = t.fname1
(14) as the NTC
15 t
16 )
17, r as)
18 select $fname1, fname2, match, cnt
19, row_number() over (partition by $fname1 by cnt desc, desc match order): the nurse
20 c
21 )
22 select $fname1, fname2
23 r
where the 24 rn = 1
25 * order by 1
SQL > /.
$FNAME1 FNAME2
---------- ----------
FROZEN FROCEN
FROZEN FROZEN
FROZEN FROZEN
FROZIN FROZIN
WHIPLASH WIPLASH
WIPLASH WIPLASH
6 selected lines.
but then it depends on your data as to if it will work in all circumstances
-
Tree of the University campus solutions 9.0 organization and Lookup Table question
People,
Hello. I'm creating 9.0 Solution Campus of a college. I confront the issue as below:
Implement AWAR > Foundation Table > academic Structure > academic organization
I implemented the academic organization of these data Table: in addition to academic departments, I also type in academic institutions and academic groups.
Then I create academic organization tree using the tree Manager. The tree is verified and valid a date of entry into force.
Then I put in place the 2 tables below:
Implemented AWAR > Foundation Table > academic Structure > program academic table
Implemented AWAR > Foundation Table > academic Structure > Table of different disciplines
Table of research of the academic organization developed in the 2 above table successfully. But when I put in place the other 2 tables below, search for academic organisation table does:
Implement > AWAR > Security > secure Administration of the student > user ID > Security academic organization
Curriculum management > Catalogue > Catalogue courses > tab offer
I understand that the 2 tables above are based on the tree of academic organizations and not on the academic organization Table. I see no error in the tree.
Because the search for academic organisation table can't happen in the tab 'Offers' course catalogue, the course cannot be saved.
My question is:
Any folk can help resolve the issue of the "academic organization lookup table cannot mount security academic organization and in the tab catalog of courses'? Or any suggestion on the tree of the academic organizations?
Thanks in advance.
Perform the following procedure:
Home > ACSS configuration > Security > secure Administration student > process > security update - Acad Orgs
After the execution of the process, check the lookup tables.
-
Need quick help! The use of tables
I just started using flash a few weeks ago, and for one of my school projects I am creating a pokedex which will display information, when the user clicks on some buttons. for example 'If you click the attack button, then 4 attacks will appear. I currently use frame skipping to my application; but my teacher suggested I use tables to make them all appear on a single image, but I don't know how to do this. Can anyone help?
Thanks in advance.
Tables are variables that contain several elements. A common use for tables is to make collections of items so that items can be related to each other by their relative position in each table. For example:
var letters: Array = new Array ("A", "B", "C", "D");
Table of figures: var = new Array (1,2,3,4).
Now, you can find an element in a table by searching for here:
var thisOne:int = letters.indexOf ('B');
trace (thisOne);
var thatOne:Number = numbers [letters.indexOf ('B')];
trace (thatOne);
The first trace shows that the letter B is in position 1 of the table letters. The trace of the second shows that the item in the table of figures in position 1 is number 2.
Who help me? You can learn more about the use of arrays in Flash here: ActionScript 3 fundamentals: paintings | Adobe Developer Connection
-
UCM content in custom search popup
I need to create a feature in which the user will click on a button and this button should display a popup. This popup, I need to display the content of the Complutense University of MADRID. Content must be hierarchical and the user should be able to navigate through the folders. The user will select a particular document, and then click the OK button in the pop-up window. On the OK button, we need get the document selected then get its content-id and store it in our custom tables.
Search popup is very similar to "File viewer" taskflow provided as document service. I want to use it, but I need to integrate my custom on her features. As selecting a folder and clicking on OK button should give me the content is selected by the end user. Is there a way I can achieve this?
Can I use content presenter to display hierarchical data?
Thank you
Sanjeev.Hello.
I recommend using JCR data control to view the "Hierarchical" folders / summary.
Your functionality can be easily implemented using af: popup / dialog with "Dialogue event and returnListener" AF: popup.I hope that this advice will help you.
Kind regards.
Maybe you are looking for
-
I can't delete or create a folder
I have the file I remove could ' t and when I tried to create the new folder I could ' t
-
I love how the photo albums on the iPad contain collages or multi photo pages. Is there a program available for the use of collages in a slideshow on my MacBook Pro?
-
Unhappy with Ralink RT3290 h9 wifi - 1440t
I received my new PC of office h9 - 1440t yesterday... and I love... except for one thing. I "upgraded" to the Ralink RT3290 wireless adapter, and it seems to get a bad reception. My old HP laptop a lot better (5 bars) in the exact spot even on my
-
Hello world I got a W510 renovated for a few weeks. Recently, the power connector at the back of the laptop computer between the battery and the heat exchanger is loose. How can I solve this problem? Thank you Wei
-
I would like to know the meaning and effects of several local policies in Win 7, and I don't have much information to Win Help; It has generated more questions than answers. Here are the ones on which I want information more detailed: 1. interactive