Sort Result set in Custom Order

Hello - Happy Friday everyone !!
I would like result set to be sorted in a custom order, for example, a specific value must appear at top of result set, a specific value must appear at bottom of result set, and others can be sorted in standard order.
Below is the link I found while researching for the possible solution. This works great if I have to sort a specific value to appear at top of result set but I want some specific values to appear at the very bottom as well.
http://sqlandme.com/2013/11/18/sql-server-custom-sorting-in-order-by-clause/
For example:
CountryName
AUSTRALIA
BANGLADESH
CHINA
FRANCE
INDIA
JAPAN
NEW ZEALAND
PAKISTAN
SRI LANKA
UNITED KINGDOM
UNITED STATES
Now based on the popularity you might need a country to appear on top of the list. In order to return results as required, we need to specify a custom sort order in ORDER BY clause. It can be used as below.
The following query will return result set ordered by CountryName, but INDIA at top and CHINA at 2nd "container">
USE [SqlAndMe]
GO
SELECT CountryName
FROM   dbo.Country
ORDER BY CASE WHEN
CountryName = 'INDIA' THEN '1'
              WHEN
CountryName = 'CHINA' THEN '2'
              ELSE
CountryName END ASC
GO
Result Set:
CountryName
INDIA
CHINA
AUSTRALIA
BANGLADESH
FRANCE
JAPAN
NEW ZEALAND
PAKISTAN
SRI LANKA
UNITED KINGDOM
UNITED STATES
My predicament: Based on the example above, I always want 'India' and 'China' at the TOP and 'Bangladesh' and 'Pakistan' at the bottom. Rest can follow the general sort rule. How do I tweak/approach this? Thank you very
much for your help in advance.
Result Set I am anticipating;
INDIA
CHINA
AUSTRALIA
FRANCE
JAPAN
NEW ZEALAND
SRI LANKA
UNITED KINGDOM
UNITED STATES
BANGLADESH
PAKISTAN
This would make my weekend great!!
Regards,
SJ
http://sqlandme.com/2013/11/18/sql-server-custom-sorting-in-order-by-clause/
Sanjeev Jha

this would be enough
USE [SqlAndMe]
GO
SELECT CountryName
FROM dbo.Country
ORDER BY CASE CountryName
WHEN 'INDIA' THEN 1
WHEN 'CHINA' THEN 2
WHEN 'BANGLADESH' THEN 4
WHEN 'PAKISTAN' THEN 5
ELSE 3
END,CountryName
GO
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

Similar Messages

  • Why do RefCursors return result sets in reverse order?

    Oracle XE version 10.2.0.1 (both windows and Linux perform the same).
    I'm porting code from DB2 to Oracle - our environment is mostly stored procedures returning REFCURSORS to a java layer. Many of the stored procedures return more than one REFCURSOR (please no posts on the value of packages vs procs, I understand the benefit but cannot switch at this time to packages). It took me a while to figure this out, but it appears that the cursors are returned in reverse order of their OUT param position(s). My fear is that this isn't always the case, but that the cursors could be open in some random order, in which case any conditional processing I have would need to account for that. Anyone experience this? Or can any Oracle guru explain why the cursors are open in reverse order? At this point in time, I do need to process them positionally rather than naming them -
    Here's a test case:
    CREATE TABLE TESTCUR(
    col1 NUMBER,
    col2 VARCHAR2(50)
    INSERT INTO TESTCUR VALUES (1, 'value for cursor 1');
    INSERT INTO TESTCUR VALUES (2, 'value for cursor 2');
    INSERT INTO TESTCUR VALUES (3, 'value for cursor 3');
    CREATE OR REPLACE PROCEDURE TESTREFCURSORMULTI (
      testcasenumber IN NUMBER,
      cv_1 OUT SYS_REFCURSOR,
      cv_2 OUT SYS_REFCURSOR,
      cv_3 OUT SYS_REFCURSOR
    AS
    BEGIN
         IF testcasenumber = 1 THEN
         OPEN cv_1 FOR
              SELECT col2
              FROM TESTCUR
              WHERE col1 = 1;
         OPEN cv_2 FOR
              SELECT * FROM DUAL WHERE 1=0;
         OPEN cv_3 FOR
              SELECT * FROM DUAL WHERE 1=0;
         ELSE
              IF testcasenumber = 2 THEN
              OPEN cv_1 FOR
                   SELECT col2
                   FROM TESTCUR
                   WHERE col1 = 2;
              OPEN cv_2 FOR
                   SELECT * FROM DUAL WHERE 1=0;
              OPEN cv_3 FOR
                   SELECT * FROM DUAL WHERE 1=0;
              ELSE
                   OPEN cv_1 FOR
                        SELECT col2
                        FROM TESTCUR
                        WHERE col1 = 1;
                   OPEN cv_2 FOR
                        SELECT col2
                        FROM TESTCUR
                        WHERE col1 = 2;
                   OPEN cv_3 FOR
                        SELECT col2
                        FROM TESTCUR
                        WHERE col1 = 3;
              END IF;
         END IF;
    END;
    set autoprint on
    var rc1 refcursor
    var rc2 refcursor
    var rc3 refcursor
    begin
    TESTREFCURSORMULTI(
    testcasenumber => 3,
    cv_1 => :rc1,
    cv_2 => :rc2,
    cv_3 => :rc3)
    end;
    /     Here are the results when opening all three:
    SQL> begin
      2  TESTREFCURSORMULTI(
      3  testcasenumber => 3,
      4  cv_1 => :rc1,
      5  cv_2 => :rc2,
      6  cv_3 => :rc3)
      7  ;
      8  end;
      9  /
    PL/SQL procedure successfully completed.
    COL2
    value for cursor 3
    COL2
    value for cursor 2
    COL2
    value for cursor 1Results when opening 1:
    SQL> set autoprint on
    SQL> var rc1 refcursor
    SQL> var rc2 refcursor
    SQL> var rc3 refcursor
    SQL> begin
      2  TESTREFCURSORMULTI(
      3  testcasenumber => 1,
      4  cv_1 => :rc1,
      5  cv_2 => :rc2,
      6  cv_3 => :rc3)
      7  ;
      8  end;
      9  /
    PL/SQL procedure successfully completed.
    no rows selected
    no rows selected
    COL2
    value for cursor 1

    It nothing more but the way how AUTOPRINT works:
    SQL>  set autoprint on
    SQL> var rc1 refcursor
    SQL> var rc2 refcursor
    SQL> var rc3 refcursor
    SQL> begin
      2  TESTREFCURSORMULTI(
      3  testcasenumber => 3,
      4  cv_1 => :rc1,
      5  cv_2 => :rc2,
      6  cv_3 => :rc3)
      7  ;
      8  end;
      9  /
    PL/SQL procedure successfully completed.
    COL2
    value for cursor 3
    COL2
    value for cursor 2
    COL2
    value for cursor 1
    SQL> set autoprint off
    SQL> begin
      2  TESTREFCURSORMULTI(
      3  testcasenumber => 3,
      4  cv_1 => :rc1,
      5  cv_2 => :rc2,
      6  cv_3 => :rc3)
      7  ;
      8  end;
      9  /
    PL/SQL procedure successfully completed.
    SQL> print rc1
    COL2
    value for cursor 1
    SQL> print rc2
    COL2
    value for cursor 2
    SQL> print rc3
    COL2
    value for cursor 3
    SQL> As you can see, right cursor returned right result, just autoprint in case of multiple variables prints results starting last open cursor:
    SQL> set autoprint on
    SQL> begin
      2  open :rc1 for 'select 1 from dual';
      3  open :rc2 for 'select 2 from dual';
      4  open :rc3 for 'select 3 from dual';
      5  end;
      6  /
    PL/SQL procedure successfully completed.
             3
             3
             2
             2
             1
             1
    SQL> begin
      2  open :rc3 for 'select 3 from dual';
      3  open :rc2 for 'select 2 from dual';
      4  open :rc1 for 'select 1 from dual';
      5  end;
      6  /
    PL/SQL procedure successfully completed.
             1
             1
             2
             2
             3
             3
    SQL> SY.

  • Filter the results set for custom iviews in SAP MDM

    We have a scenario where based on the user name/user role we want to filter the results retrieved by an search result iview developed for accessing data from SAP MDM Repository.
    E.g.
    We have a lookup table called Plants which contains master data pertaining to  manufacturing plants.
    The portal user P00100xxyy is responsible for maintaining master data for a plant 1101. However, the plant lookup contains data for other plants as well.
    We would like to prevent the user P00100xxyy to see/modify data for other plants in the table.
    We have explored the core MDM functionality of security/constraints. It does not provide row level granularity and we are hoping that the iview approach can help us achieve row level filters.

    Hi Rajni thanx for ur prompt reply
    The actual problem is that :
    we have approx near about 100 Account Group, so it would become very complex to replicate same condition 100 times
    AND
    these account group may keep on increasing so even maintenance point of view it would be hard to maintain.
    can u tell me some other way to do it, i mean is there any other feature by which we can perform validation in MDM.
    Regards
    Kuldeep

  • Custome Event for the Result Set iView

    Hi,
    does anybody know how to set up the Custom Event on the Result Set iView in order to trigger an event when a record is selected?
    I know how to do it using an event Type = EPCF + Event Name + Namespace, but this creates an extra colum on the Result Set iView with the Custom Event name on it, that has to be click in order to trigger the event. I do not want click on this column, i just want to create the event when the record is selected.
    Regards
    Diego.

    Hi Diego,
    We are also implementing similar scenario.
    We also want to open a window on the clik of any column of the result and if the result is zero we want to trigger some another iView.
    So if u have found any solution can u just let me know.
    OR else can u  just elaborate on ur current scenario using EPCF and custom event.
    Thanks in Advance.
    Regards Shruti.

  • Custom order?

    How do I set a custom order for a playlist? It seems before i could rearrange them with my mouse by holding the left click button, but now I can't, is there a problem?

    Please accept my apologies, I'd posted this before i had realised this was a Windoze thread. I've reposted on the Mac thread but will leave the query here in case someone can help either Lancer777 or myself. Apologies again.
    Sorry to hijack your unanswered question, Lancer777, but maybe this "nudge" will help us both.
    I have exactly the same question on iTunes 7.6 (29) under MacOSX.4.11 - how can I custom order songs in a playlist without amending the underlying "Get Info" panel which contains track numbers, titles etc. etc. Clicking "Sort" on any of the columns I usually have displayed never seems to get the order quite as I'd like it.
    I'm sure it's obvious but I'm afraid I can't find it!
    Thanks in advance.
    Message was edited by: iBozz
    Message was edited by: iBozz
    Message was edited by: iBozz

  • How to Colour the fields in the Result Set of the query

    Hi all,
    I am having a requirement wher the user want to view the queries results with some colour to the char in the result set.
    suppose customer is the row he want to view some customers with one color and some with different color.
    Is it possible in Bi.
    If so Plz let me know
    Regards

    Hi Priya,
    for the macro thing, you will have to create a workbook and store your query into it, because macros are attached to only workbooks and not queries.
    in the workbook screen (i.e. excel), go to tools --> Macro --> Visual Basic Editor. or simply press Alt + F11. this will take you to macro editor screen.
    you can use code that may look something like below to color the columns, you can also give constant column if they are fixed.
    sub ColorColumns(rngTarget As Range, _
        intColor As Integer)
    Dim c As Long
        With rngTarget
            .Interior.ColorIndex = intColour
            Next c
        End With
    End Sub
    You will find some easy and short snippets for this.
    Regards,
    Purvang

  • Sorting a Set with a custom Comparator

    Hi,
    I wondered how to sort a Set with a custom Comparator. I know how to do this with a List: Collections.sort(list,new CustomComparator()).
    But how can I do this with a Set?
    Thanks
    Jonny

    If you want to just sort the Set on demand, you'd have to dump its contents into a List, sort the List, then dump its contents back into a LinkedHashSet.
    If you want the set to always be in sorted order, use a SortedSet, such as TreeSet.

  • How to set the column order of a sealed column in a custom Content Type for the new item form NewDocSet.aspx?

    Dear SharePoint Developers,
    Please help.
    I need to know How to set the column order of a sealed column in a custom Content Type for the new item form NewDocSet.aspx?
    I think this is a "sealed column", whatever that is, which is  shown in SPD 2013 as a column of content type "document, folder, MyCustomContentType".
    I know when I set the column order in my custom Content Type settings page, it is correct.
    But, when I load the NewDocSet.aspx page, the column order that I set in the settings page is NOT used for this "sealed column" which is bad.
    Can you help?
    Please advise.
    Thanks.
    Mark Kamoski
    -- Mark Kamoski

    Hi,
    According to your post, my understanding is that you want to set the column order of a sealed column in a custom Content Type for the new item form NewDocSet.aspx.
    Per my knowledge, if you have Content Type management enabled for the list or library (if you see a list of content type with the option to add more), the display order of columns is set for each content type.
    Drill down into one of them and you'll see the option under the list of columns for that content type.
    To apply the column order in the NewDocSet.aspx page, you need to:
    Select Site Settings, under Site Collection Administration, click Content type publishing. In the Refresh All Published
    Content Types section, choose Refresh all published content types on next
    update.
    Run two timer jobs(Content Type Hub, Content Type Subscriber) in central admin(Central Administration--> Monitoring--> Review timer jobs).
    More information:
    http://sharepoint.stackexchange.com/questions/95028/content-types-not-refreshing-on-sp-online
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Select query result set order

    Hi,
    Can I know the order in which Oracle outputs the result set of a simple SELECT query ? Will the output always be same as the order in which rows got inserted ?
    Please advise,
    Thanks,
    Smitha

    If you include an ORDER BY than the order of the result set is known.
    It will not always be the same as the order in which rows got inserted.

  • BOP results for credit blocked customer orders

    Hello all,
    We are facing an issue with BOP. We use the backorder processing in order to confirm the customer orders quantity. When the customer order has a credit block status, the quantity is apparently confirmed in result work list (immediately comes after BOP run) and using transaction /SAPAPO/BOP_RESULT, but in table /SAPAPO/BOPRESLT the fields CNFQTY and NEWCNFQTY are empty.
    Is it possible to change this behavior?
    Thaks in advance.
    Regards,
    Januario Faria

    Hello All,
    My issue was solved using the suggestion below posted on the thread - Sales Order Credit Status Block with Schedule Line ATP Confirmed Quantity .
    We modified this SD configuration and the quantity has to be confirmed to sales orders with credit block using BOP processing.
    Thanks to all.
    Bests regards.
    Januario Faria
    link:
    [Sales Order Credit Status Block with Schedule Line ATP Confirmed Quantity;
    Hi ,
    Please go to Transfer of requirements-->maintain requirements for transfer of requirements and remove the 101 Routine number so that when credit block on order still the quantity is confirmed to sales order. Because of this Routine it is removing the reservation while in credit block.
    I have tested it and it is working. I have similar scenario and it is working fine.
    Regards
    Raj

  • How to set a customized search results template for all users

    Hi.
    I know the customized search results views are stored in a file called pne_portal.hda that resides on every user's subfolder in data/users/profiles/...
    Is there a way to set a customized search results template for all users? If it's impossible, is there a way to modify the Headline view? I'm not able to find the resource or template where this view is.
    Thanks in advance.

    I wasn't able to understand what was meant by this post. Therefore, I modified the standard template HeadLine View.
    Columns for this template are defined in the include slim_search_result_table_header_setup (in std_page.htm).
    Here is the modification of the code:
    <$if customTemplateId and not (baseTemplateId like customTemplateId)$>
              <$columnsString = utGetValue("customlisttemplates/" & strLower(customTemplateId), "columns")$>          
              <!-- Modify START by Oracle-->
         <$else$>
    <!-- here add default fields -->
              <$columnsString="dDocName,dDocTitle,dInDate,dDocAuthor"$>
    <!-- here add your custom fields -->
              <$columnsString=columnsString&",xComment"$>
              <!-- Modify END by Oracle-->
         <$endif$>

  • Query result set ordered incorrectly

    Hallo,
    I have this problem.
    I have a table (lisitab) with a list of codes, for example:
    A0001
    A0002
    AD063
    AY064
    In my java class I run a query (select lisi_codi from lisitab order by lisi_codi) and I expect the following order:
    A0001
    A0002
    AD063
    AY064
    but I have this result:
    AD063
    AD064
    A0001
    A0002
    What is strange it's that if I execute the query in SQL*Plus or other tools (PLSQLDeveloper for example) it works fine! When run my JDeveloper application I have the bad ordered result set.
    My DB is Oracle 8.1.7 on Windows2000(SP2). The DB language is set as AMERICAN_AMERICA.WE8DEC.
    The client is set with NLS_LANG AMERICAN_AMERICA.WE8DEC and I'm using Oracle OCI JDBC Drivers 8.1.7 deployed with JDeveloper 3.2.
    I presume there's a bug (a BIG BUG!!!) into JDBC Drivers.
    How can I work without trusting in order by ?
    Could anyone help me?
    Thanks
    G.Grimoldi
    null

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Joaquin Sanchez Jimenez ([email protected]):
    Hi:
    Could you send table description and complete query?. What version of JDBC and database ...
    J.<HR></BLOCKQUOTE>
    The table (lisitab) is very simple:
    lisi_codi varchar2(16) not null (PK)
    lisi_desc varchar2(40)
    The select is:
    select lisi_codi from lisitab order by lisi_codi
    I'm working on Oracle 8.1.7 on Windows 2000 and JDBC drivers are Oracle JDBC 8.1.7 deployed with Jdeveloper 3.2.
    I also tried with an Oracle 8.1.7 DB with charset WE8ISO8859P1 and a client with the same charset, but the result is same: bad ordered result set!
    Is there anybody at Oracle who could tell me why and how to resolve (or workaround) this tedious and dangerous problem?
    Thanks
    null

  • I have the latest Creative Cloud versions of Lightroom and Lightroom Mobile on my Ipad. On my desktop I have created a collection which I have put in a custom order. On my Ipad I go into that collection and set the order to custom order, which I presume m

    I have the latest Creative Cloud versions of Lightroom and Lightroom Mobile on my Ipad. On my desktop I have created a collection which I have put in a custom order. On my Ipad I go into that collection and set the order to custom order, which I presume means the order I have on my desktop. However, the photos on the Ipad seem to be just random photos from the collection THEN the rest of the collection is in the correct order after that.

    Do you have virtual copies in your collection?
    Could you please send send me a LR Desktop +Mobile diagnostig log  - best as a private message with a downloadable dropbox link
    You can trigger the Lr Desktop diagnostig log via LR Desktop preferences -> Lightroom Mobile and when you hold down the alt key you will notice a generate diagnostic log button.
    The Lr Mobile app log can be triggered when you open up the settings and long press the to LR Icon a diagnostic log will be generated and attached to your local mail client. While opening the settings could you double check if you are signed-in?
    Thanks
    Guido

  • Custom ordering of results

    I'm looking to do some custom ordering of results. Lets say I have a table:
    CREATE TABLE test_ordering (
         ID NUMBER PRIMARY KEY,
         NAME VARCHAR2(40));With some records..
    INSERT INTO test_ordering (id, name) VALUES (1,'Apartment 1');
    INSERT INTO test_ordering (id, name) VALUES (2,'Apartment 5');
    INSERT INTO test_ordering (id, name) VALUES (3,'Apartment 9');
    INSERT INTO test_ordering (id, name) VALUES (4,'Apartment 10');
    INSERT INTO test_ordering (id, name) VALUES (5,'Apartment 11');
    INSERT INTO test_ordering (id, name) VALUES (6,'Apartment 13');
    INSERT INTO test_ordering (id, name) VALUES (7,'Apartment 21');
    INSERT INTO test_ordering (id, name) VALUES (8,'Unit 1');
    INSERT INTO test_ordering (id, name) VALUES (9,'Unit 9');
    INSERT INTO test_ordering (id, name) VALUES (10,'Unit 10');
    INSERT INTO test_ordering (id, name) VALUES (11,'Unit 15');
    INSERT INTO test_ordering (id, name) VALUES (12,'Unit 31');
    COMMIT;So if I select and order by name I get
    SQL> SELECT * FROM test_ordering ORDER BY name;
    ID NAME
      1 Apartment 1
      4 Apartment 10
      5 Apartment 11
      6 Apartment 13
      7 Apartment 21
      2 Apartment 5
      3 Apartment 9
      8 Unit 1
    10 Unit 10
    11 Unit 15
    12 Unit 31
      9 Unit 9
    17 rows selected.Now I would like the results in a slightly different order.
    ID NAME
      1 Apartment 1
      2 Apartment 5
      3 Apartment 9
      4 Apartment 10
      5 Apartment 11
      6 Apartment 13
      7 Apartment 21
      8 Unit 1
      9 Unit 9
    10 Unit 10
    11 Unit 15
    12 Unit 31So if I want to order by the alpha characters and then by the numeric portion of the NAME.
    Any ideas? I've been trying a few things using REGEXP_SUBSTR, but its not working out...
    SELECT * FROM test_ordering ORDER BY REGEXP_SUBSTR(name,'[[:alpha:]]'), REGEXP_SUBSTR(name,'[[:digit:]]');

    Ok, actually I can think of a few more examples now that need a different solution.
    Let say we have
    DROP TABLE test_ordering;
    CREATE TABLE test_ordering (
         ID NUMBER PRIMARY KEY,
         NAME VARCHAR2(40));
    CREATE UNIQUE INDEX test_ordering_sanity_check ON test_ordering(name);
    INSERT INTO test_ordering (id, name) VALUES (1,'Apartment 21');
    INSERT INTO test_ordering (id, name) VALUES (2,'Apartment 5');
    INSERT INTO test_ordering (id, name) VALUES (3,'Apartment 1');
    INSERT INTO test_ordering (id, name) VALUES (4,'Apartment 11');
    INSERT INTO test_ordering (id, name) VALUES (5,'Apartment 9');
    INSERT INTO test_ordering (id, name) VALUES (6,'Apartment 10');
    INSERT INTO test_ordering (id, name) VALUES (7,'Apartment 13');
    INSERT INTO test_ordering (id, name) VALUES (8,'Unit 1');
    INSERT INTO test_ordering (id, name) VALUES (9,'Unit 9');
    INSERT INTO test_ordering (id, name) VALUES (10,'Unit 10');
    INSERT INTO test_ordering (id, name) VALUES (11,'Unit 15');
    INSERT INTO test_ordering (id, name) VALUES (12,'Unit 1a');
    INSERT INTO test_ordering (id, name) VALUES (13,'Unit 1b');
    INSERT INTO test_ordering (id, name) VALUES (14,'Unit 5');
    INSERT INTO test_ordering (id, name) VALUES (15,'Unit 15d');
    INSERT INTO test_ordering (id, name) VALUES (16,'Unit 11');
    INSERT INTO test_ordering (id, name) VALUES (17,'Unit 11a');
    INSERT INTO test_ordering (id, name) VALUES (18,'Unit 20');
    INSERT INTO test_ordering (id, name) VALUES (19,'Unit 20a');
    INSERT INTO test_ordering (id, name) VALUES (20,'Unit 20b');
    INSERT INTO test_ordering (id, name) VALUES (21,'Unit 11b');
    INSERT INTO test_ordering (id, name) VALUES (22,'Unit A');
    INSERT INTO test_ordering (id, name) VALUES (23,'Unit B');
    INSERT INTO test_ordering (id, name) VALUES (24,'Unit C');
    COMMIT;And I'd like that ordered like this...
    ID NAME
    3 Apartment 1
    2 Apartment 5
    5 Apartment 9
    6 Apartment 10
    4 Apartment 11
    7 Apartment 13
    1 Apartment 21
    8 Unit 1
    10 Unit 10
    16 Unit 11
    17 Unit 11a
    21 Unit 11b
    11 Unit 15
    15 Unit 15d
    12 Unit 1a
    13 Unit 1b
    14 Unit 5
    9 Unit 9
    18 Unit 20
    19 Unit 20a
    20 Unit 20b
    22 Unit A
    23 Unit B
    24 Unit CThanks.

  • Custom Metadata is not in Search Result result set

    Hello. I have created a custom metadata xDAMAuthor. I have used it in a rule for check-in profile. Also have check-in a content by filling this field. Now the search form has this metadata as one of its field and I can search by using this field, also the search result returns the aforesaid content which I have checked-in. When I am looking into the SOAP format of the GET_SEARCH_RESULTS then that metadata is not there in the row of the SearchResults resultset. But if I see the SOAP format of the DOC_INFO of that content the DOC_INFO resultset contains that metadata. How can I solve the problem?
    Note: In the Admin Applet->Configuration Manager->Information Fields, Enable for Search Index is checked for this metadata.
    Thanks.

    the search result returns the aforesaid content which I have checked-in
    And do you see you metadata in the results? I guess you don't. Unless you followed http://docs.oracle.com/cd/E23943_01/doc.1111/e10797/c03_finding_files.htm#CIHEFHAI and created a custom search result template.
    I am sure that GET_SEARCH_RESULTS have all the metadata from returned items somewhere (probably in a result set), but I'm not sure what's returned - it could be very well the row as you see in the browser. Therefore, you might tried to use your custom search result template in your call (in fact, I think for a user always the default one is used).
    Should be easy to give it a try.

Maybe you are looking for

  • How can I add my icloud contacts and calendar back to my iphone?

    As of last week, my iCloud contacts and calendar disappeared from my iPhone 4S. I was trying to do something with adding Outlook to my PC to access calendars for my children's school, and now I cannot get my iCloud contacts as a group (tried turning

  • Itunes "download error"  Help!

    I have been using itunes for quite some time with no problems at all. Today however, when trying to download a video it starts to download then says "error downloading your purchased music. The disk could not be read from or written to." Not sure wha

  • Acceptance at origin checkbox in PO

    Hi All My point of concern is there comes a tab in PO at Item Detail level in Delivery tab "Acceptance at Origin".. I want to make it compulsory but the point is i am not able to find it in spro. The path i am refering is spro>>MM>>Purchasing>>purcha

  • End a while loop

    For this example: int x = 1, y = 2; while (x == 1) if (y = 2) y -= 1; if (y = 1) y -= 1; }Is there a line I can put in the first if statement block to make the loop and and repeat? I'm having a problem with if statements that after one is true, it ma

  • Trying to write to a file that uses the current date as a portion of the path

    I would like to write to a data file that changes the path when the date changes. I am using the build path VI with the get date/time VI with the "/"'s removed from the string. I've tried using .txt in the pattern input and adding it in with the conc