Multi query RIDC sorting fields

Hi Expert,

I'm newbie Oracle COE. Please help me to share code RIDC on sorting multi areas.

If 1 field will use it below.

myRequestDataBinder.putLocal ("SortField", "dDate");
myRequestDataBinder.putLocal ("SortOrder", "Desc");

I thank you very much.

Sirichai.S wrote:myRequestDataBinder.putLocal ("SortField", "dDate");

myRequestDataBinder.putLocal ("SortOrder", "Desc"); >

Remove the two variables above and use "SortSpec". For example

myRequestDataBinder.putLocal ("SortSpec", "ORDER BY dDocType asc, desc dDocName");

YMMV

Tags: Fusion Middleware

Similar Questions

  • No auto sort on "apply sort field".

    Let's say, for example, some of my songs of Paul McCartney are alphabetically under M because the artist sort field is filled with "Paul McCartney", and others are under P, because the artist sort field is empty. If I manually change the sort field artist of a song from empty to Paul McCartney, it automatically moves the P to Mr. song but if I go to those who is already sorted m, use the sort field apply--> same artist, it will properly fill all fields artist sort under P, but they remain in the section P. The only way that I can bring to pass m must close and reopen iTunes. It didn't used to be this way.

    It can even type Album artist and Album of the sort fields. 'Apply the sort field', them move in the right place in the sort order.

    I'm on Windows 10, iTunes 64-bit, version 12.3.2.35 (recent).

    No, it was not used to be this way, but it was broken for a while.

    TT2

  • UCM, RIDC sorting using custom metadata does not work

    I'm doing a search using GET_SEARCH_RESULTS and I am trying to sort the results, but unfortunately it does not work. I get this exception:

    Unable to retrieve search results. Error occurred while retrying the search query. Error occurred while processing. Unable to return results.
    oracle.stellent.ridc.protocol.ServiceException: Unable to retrieve search results. Error occurred while retrying the search query. Error occurred while processing. Unable to return results.

    at oracle.stellent.ridc.protocol.ServiceResponse.getResponseAsBinder(ServiceResponse.java:142)

    at oracle.stellent.ridc.protocol.ServiceResponse.getResponseAsBinder(ServiceResponse.java:108)

    to the sample. Connection.main (Connection.Java:661)

    The binder is like:

    binder.putLocal ("IdcService", "GET_SEARCH_RESULTS");

    binder.putLocal ('ResultCount', '10');

    binder.putLocal ("QueryText', 'xDocAudvTitle < contains >"togados"');

    binder.putLocal ('SortField', 'xDocAudvTitle');

    binder.putLocal ("SortOrder", "Asc");


    If I do not use the sortField and SortOrder parameter, the query retrieves the correct results.


    Any idea on this exception?


    Kind regards

    Juan Carlos.

    Thank you all,.

    The problem is that the custom metadata field is of type Memo, both because of its size is not optimizable, so I can't sort by using xDocAudvTitle.

    I'm done with the help of another field to sort.

    Once again, thank you to you two.

    Kind regards

    Juan Carlos.

  • Multi query block

    Dear all

    I have a form with a primary block and two child block (Multi Record), three blocks have the common field MPC. My query is, in one child block, I have two color fields & Qty color can be repeated in this block. Same color can therefore n several times in the block and Qty.

    In another child block I have qty & color when I get color then my qty must be completed involving the amount of the first block that is having the same color. How can I do it. I didn't save the block. So I have the query block.

    I know that we cannot write a query like this
    Select colour, sum (tot_qty) of: Block1 where: block1.colour =:block2.colour. Please tell me the best possible solution in detail because I'm not a very technical savvy. Waiting for your answer.

    Thanks in advance

    Name of the table - MPC_WORKING
    Detail_block1
    Detail_block2

    Detail_block1 has the color and quantity
    Detail_block2 has the color, but the amount I have to summarize the amount of detail_block1) so I need a query something like this

    In fact, it is true that POST to write data to the database but does not commit. So, if we can write data to the database we can run the query to retrieve data from database according to our crieteria. But as I said above POST use in when-validate-item, so we cannot use it at WHEN-VALIDATE-POINT because it is a process restricted to use WHEN-VALIDATE-ITEM trigger.

    What you have to do is. Suppose you have 3 blocks in your form. Block1 and Block2, Block3.
    1. create a trigger in BLOCK2 asked A TIMES-NEWS-BLOCK-INSTANCE on at the block level and triggering just use post built like that...

    POST;
    

    2. now you BLOCK3 you can create a trigger on the color field to remove the table from the block2 amount. Integrated by POST because its already in the database.
    So, simply create a trigger on the color of the BLOCK3 called WHEN-VALIDATE-ITEM field, and then you can write your query in this trigger like this...

    Suppose the table name you used for block2 is my_table.
    -- Replace the table and field name from you actual structure.
    SELECT NVL(SUM(QTY,0))
    INTO :BLOCK3.QTY
    FROM MY_TABLE
    WHERE COLOUR_FIELD_NAME =:BLOCK3.COLOUR_FIELD_NAME
    -- Any more condition if there is requirement.
    

    Thus, by this query it will show you the amount that you entered in BLOCK2 which not engaged. I hope it is clear now.

    -Clément

  • How the sql query to sort the records by variable

    Feel like using PHP to know how to write the query SQL ORDER BY
    value time from list/menu form field ("sort_menu") and the values in the list are the columns of the database

    SELECT *.
    OF rentals_info
    WHERE rentals_info.active = 'yes '.

    Thanks for your help,
    Jim balthrop

    JBWebWorks wrote:
    > Using fault PHP to know how to write the query to sql ORDER BY
    > run time value from list/menu form field ("sort_menu") and the list
    > values of the database columns

    Unfortunately, you can not use the Dreamweaver Recordset dialog box to set
    a column of the table as a variable. You need to adapt the code by hand, and
    Once you do, the recordset can be is no longer recognized by
    Dreamweaver. Thus, you must have first page in case the
    Bindings panel shows more the fields in your recordset.

    Begin by creating the Recordset without the ORDER BY clause and have
    your page as you want it. When everything is done, add the following
    code at the top of the page:

    <>
    create a table of column names that can be used for sorting
    $permitted = array ("price", "space");
    checks if the sort_menu variable contains a valid column name
    If (isset($_GET['sort_menu']) & in_array ($_GET ['sort_menu'], $permitted)) {}
    $sort = $_GET ['sort_menu'];
    } else {}
    the value of a default column for sorting
    $sort = "price".
    }
    ?>

    This assumes that the sort columns are called price and region.
    Change these values according to your configuration.

    You can now add ORDER BY $sort to the SQL of the Recordset.

    --
    David powers
    Adobe, Dreamweaver community expert
    http://foundationphp.com

  • AF | query Panel search field with LOV (list of choices)

    I have 2 drop downs (list of select one choice) in my search af:query panel entry.

    (1) departments

    (2) employees.

    When the page loads, only departments are met. Selection of the departments, I want to fill in the search field input select list employees a choice

    Is this possible? Do I need to have view link created to get this working?

    Hello

    Check this: https://blogs.oracle.com/shay/entry/dependent_lovs_in_an_afquery_c

    Frank

  • Does not not for java.sql.Date sort field

    Hi Experts ADF,

    JDev version 11.1.1.7.0

    I use a POJO based datacontrol, who is dragged like a table on page JSFF. One of the field is a java.sql.Date data type in POJO.

    So for example in the table 4 values are there to this date field as

    2.2.2014

    3.2.2014

    31.1.2014

    to 31.12.2013

    So while sorting in ascending order, it should come as below

    to 31.12.2013

    31.1.2014

    2.2.2014

    3.2.2014

    And vice-versa.

    But if I click on sort it sorts by the first 2 digits only, and I'm under results for sorting (ascending)

    2.2.2014

    3.2.2014

    31.1.2014

    to 31.12.2013

    Please suggest on this. Thanks in advance.

    Thank you

    Animesh

    Hi This sorting has been solved by changing of java.util.Date.

    Yes his watch to the client as an outputText inside the table. Sorting option is there for af:column.

    Thank you

    Roy

  • How to add the field or a query to THE field of the process send e-mail Page

    Hello world

    Can you help me please?

    How can I add a field or a query in "to THE" field of the process to send a Page in e-mail?

    I use the 4.1.0.00.32 and oracle 10g Express Application.

    Hi User11131067, please update your grip via profile to something more personal.

    Here's how I did it:

    DECLARE

    l_body CLOB.

    l_to VARCHAR2 (255);

    BEGIN

    l_body: =.

    "Thank you for your interest in the APEX_MAIL package."

    || UTL_TCP. CRLF

    || UTL_TCP. CRLF;

    l_body: = l_body | "Sincerely,". UTL_TCP. CRLF;

    l_body: = l_body | "Dev APEX team | UTL_TCP. CRLF;

    -Get the email addresses of administrators from point of harvest

    WITH the admins

    AS (SELECT person_tbl.email_address_txt,

    ROW_NUMBER () OVER (ORDER BY email_address_txt) rn,

    COUNT (*) NTC)

    OF harvest_admin_tbl, person_tbl

    WHERE harvest_admin_tbl.active_ind = 'Y' - use active Admins only

    -Eliminate Admin Act

    AND harvest_admin_tbl.internal_employee_id <> v_payroll_id

    AND harvest_admin_tbl.internal_employee_id =

    person_tbl.employee_ghrs_id)

    -Concatenate addresses into a single string

    SELECT LTRIM (SYS_CONNECT_BY_PATH (email_address_txt, ",") ",") catvalues

    IN l_to

    Admins

    WHERE rn = NTC

    START WITH rn = 1

    CONNECT BY PRIOR rn = rn - 1;

    apex_mail. Send (p_to => ' [email protected]', - change to your email address)

    P_FROM-online l_to

    p_body-online l_body,

    p_subj => 'APEX_MAIL Package - message in plain text');

    END;

    /

  • Duplication of a query on multiple fields

    Hello

    We have a form for more information of the person to research-toward the top. It consists of a block of record single (PERSON) with fields as a PERSON. PERSON_SURNAME per PERSON. PERSON_FORENAME. The user uses the built in buttons query enter and execute the query to find records. However, there are also areas such as the PREVIOUS_SURNAME that users often not worth the question which results in the creation of duplicates when they do not find the record they seek.

    I was wondering if there is a way to capture the query the user entered and extend it to other areas? For example, if they entered "SMITH %" in the PERSON_SURNAME area, instead of the form creating the query:
    «Select * from person where PERSON_SURNAME like «% SMITH»»

    He would go:
    «Select * from person where PERSON_SURNAME like '% SMITH' or PREVIOUS_SURNAME like «% SMITH»»

    Also, some users forget to include a % in their query, so I was hoping there was a way to efficiently add to each request automatically.

    It would be quite simple if we were using a custom query button but is it possible to do everything using the integrated toolbar buttons?

    Thank you

    forms will treat this as and, AND query and I need to be a RC.

    You are right, for got to this topic.
    It actually is the same reason why you should not do:

    :PUPIL_SURNAME := :PUPIL_SURNAME||'%';
    etc. with the other fields.
    

    You give value fields, essentially the same as what I suggested in the PRE_QUERY. Then, you make one AND where clause again. This is the functionality of the default value when:
    "These clauses are automatically * added * to the SELECT statement that built the Form Builder.
    Try this:

    :PUPIL_SURNAME := :PUPIL_SURNAME||'%';
    xwhere := '(pupil_surname like '''||:PUPIL_SURNAME||''' or prevname like '''||:PUPIL_SURNAME||''')';
    :PUPIL_SURNAME := null;
    ... and the rest too...
    
  • Query patterns: required field

    Using 11g, I created a basic application model, and it is clear how fields visible/not visible and limited to certain comments, but how do I make some of the required/not required form fields?

    Certainly, there is problem in the dataset query



    Please check with above sample AttributeReference for research. ensure that field to display and record-field

    -Kuldeep

  • Query on calculated field where deletes conditions of the clause

    Hi gurus,

    Under a new requirement, we have created a new field calculated in Contact before JC, which removes the condition from which to extract the clause and made full table.

    Requirement:

    We have a field in the user interface, that has data like "J1234" or "K44335". Customer won't see the first character of the alphabet of these data.

    Solution, we have developed:

    (1) create a new calculated field 'ABC person UId Calc' as follows.

    Name: ABC person UId Calc
    Calculated: true
    Computed value: right ([nobody UId], Len([Person UId]) - 1).

    (2) exposed this field in the user interface.

    Question:

    When the user queries in the applet for this field, the generated SQL code has no condition in a Where Clause to the query on PERSON_UID.

    SQL has earlier been something like...

    (T25. EMP_FLG = 'N') AND (T25. PERSON_UID LIKE: 3)

    But after you make this change, the current SQL is trimmed of the just

    (T25. EMP_FLG = 'N')

    This means that this isn't question with PERSON_UID, resulting in an impact huge performance.

    If someone could suggest on this issue, to the difficulty.

    Concerning

    Oh sorry, I guess I missed something.

    I guess the simplest solution is to store the values of redundantly (A, B the value of the value and the value of A + B) and stop using a calculated field.

    You could script something in the PreQuery event, but I think it's an ugly hack.

  • Submitted form sort fields

    Hey all -

    Is there a way I can sort the fields in form on a results page? so, if I have a field named 1,2,3,4 etc... I can fix that on the page of results... tried using structsort, but no luck... any help,.

    Kind regards
    ISM

    In fact, there is a variable passed to the action named FIELDNAMES page. Here is a list of all fields of form which have been adopted. And it's already done by Crescent.

  • Help with a query to sort

    Hello

    I have a table (ctry) with two columns like below

    ctry - varchar2 (2) area - varchar2 (6)
    ISSE1:1
    ISSE1:2
    ISSE1:3
    ISSE1:4
    ISSE1:10
    ISSE1:11
    ISSE1:5


    If I sort as below

    Select ctry, area

    in ctry

    order by ctry, area

    I got the result as below

    ctry - varchar2 (2) area - varchar2 (6)
    ISSE1:1
    ISSE1:10
    ISSE1:11
    ISSE1:2
    ISSE1:3
    ISSE1:4
    ISSE1:5

    I want the result as below

    ctry - varchar2 (2) area - varchar2 (6)
    ISSE1:1
    ISSE1:2
    ISSE1:3
    ISSE1:4
    ISSE1:5
    ISSE1:10
    ISSE1:11

    Is it possible at all when type is varchar2?

    Example of table/data:

    create table ctry

    (

    ctrY varchar2 (2),

    area varchar2 (6)

    )

    Insert in ctry values ('SE', 'SE1:1');

    Insert in ctry values ('SE', 'SE1:2');

    Insert in ctry values ('SE', 'SE1:3');

    Insert in ctry values ('SE', 'SE1:4');

    Insert in ctry values ('SE', 'SE1:10');

    Insert in ctry values ('SE', 'SE1:11');

    Insert in ctry values ('SE', 'SE1:5');

    You can isolate the text after the colon and convert it to a number:

    order by to_number (substr (area, instr (area,': ') + 1))

  • Unable to get the search using query RIDC idc on Protocol

    Hi all

    I'm having a strange problem when querying ucm using CRMI.

    When I use the connection of client for the idc as protocol below

    IdcClient idcClient = manager.createClient ("idc://abc.xyz.com: < port >");

    result is null.

    but when I use the connection of client for HTTP as below

    IdcClient idcClient = manager.createClient ("http://abc.xyz.com:16200/cs/idcplg"); ")
    game is not null. I get the content

    I use the weblogic user to create the connection that my code is as below

    IdcClientManager Manager = new IdcClientManager ();
    try {}

    Create a new connection to IdcClient idc on Protocol (i.e. connection socket for content server)
    IdcClient idcClient = manager.createClient ("idc://hostname:intradocserverport"); It does not work

    to use the connection through the web - start
    IdcClient idcClient = manager.createClient ("http://abc.xyz.com:16200/cs/idcplg"); ")
    UserContext IdcContext = new IdcContext ("weblogic", "weblogic1");
    DataBinder dataBinder = idcClient.createBinder ();
    dataBinder.putLocal ("IdcService", "GET_SEARCH_RESULTS");
    dataBinder.putLocal ("QueryText", "xRegionDefinition < match > 'NEWS_RD' < AND > xWebsiteObjectType < match >"Data file"");
    ServiceResponse response =
    idcClient.sendRequest (dataBinder, userContext);
    DataBinder responsed = response.getResponseAsBinder ();
    DataResultSet = myDataResultSet
    responsed.getResultSet ("SearchResults");
    int i = myDataResultSet.getRows () .size ();
    If (i == 0) {}

    System.out.println ("found content no.");
    } else {}
    System.out.println ("content is present");
    }

    } catch (IdcClientException e) {}
    System.out.println ("inside the exception" + e.getStackTrace ());
    }
    }

    I cannot understand why its happening.
    I spent we I could search using idc also, but then many use same AAU so someone might have changed some configurations that I can't understand

    Is your WLS server running and available to the managed server admin? Or you run the server managed mode the independence? If the server administrator is not available, applications via the Protocol of idc using "external" (like weblogic) users will fail. However the http requests will continue to work.

    One way to test this is to use "sysadmin" as the user when it connects using the Protocol of the idc. If it works, then this probably means that WLS server admin is unavailable.

  • LOV to Select multi for a single field

    Hi all

    I have a requirement where in I have a unique (LOV) field in the advanced table of a basic page (abcd.xml).
    Now when the click on the LOV LOV page should open, and I should be able to select several lines of the LOV (containing a table with four columns) and eventually return an array. This table must contain all the values of the 1st column added in a chain. So my return of goods must be an array of strings.

    How to implement a Multiselect LOV? And how to return the array of the LOV page to page basis.

    Please help me find a solution to this requirement.

    Thanks in advance.

    Kind regards
    Arpita

    Arpita,

    Modal way, the pop-up window will be active and the base page where this pop up has launched will be inactive until the closing of the pop up.

    JavaScript:openWindow(Top,_URL,_'modal',{width:750,_height:550,_Resizable:'yes'},_true);

    URL: 'OA.jsp?page=/xxx/yyy/webui/PopUpPG¶m1={@XXX}&retainAM=Y&addBreadCrumb=Y '.

    If you set the java script above in the URI of the destination of any button, then it will launch PopUpPG.xml as a modal window.

    Also have a look at the thread at Help on windows pop javascript

    You'll find the code to run the Java Script programmatically.

    Concerning
    Saurabh

Maybe you are looking for

  • function generator (HP 33120) running to the superior at 1 kHz by Labview

    Hi all To run a function HP 33120 Labview generator, I downloaded a driver "Agilent 33XXX Series", also attached to this message. But the files of vi (for example 'Waveform.vi Standard' or "Arbitrary Waveform.vi") available in this driver, do not all

  • Run the script automatically when Windows goes into hibernation or wakes up?

    Hello I use the group policy feature in Windows XP to run scripts automatically when you open a session or logoff. But it is also possible to make a script run automatically, whenever a Windows-xp machine is about to Hibernate? And also when it wakes

  • Cannot adjust brightness

    I can't adjust the brightness button when the laptop is plugged in; brightness is on the battery.  Last night I dimmed the brightness with the arrow key down and then press up arrow would not brighten the screen... Any thoughts?

  • My blackberry blackBerry smartphones stops randomly! Help! Bold 9780

    I have a blackberry bold 9780. I had about 6 months and no problems so far. The phone is out of warranty and what is happening is just randomly when I use my applications; for example, when I use my music player, it will play for 1 song and the 2nd s

  • Reminder of blackBerry Smartphones

    I'm trying to understand this. Under options and status, that means free file number?  Is the available space or I took over the space.  I noticed changes constantly and I have not noticed any model.  I deleted emails and messages and the number goes