- Sort on a property which contains muliple data values  -

Hi All,
I need to sort on a item property p_x which has the data productid1:SortNo1# productid2:SortNo2# etc..
So basically if the user is in productid1 page , then I need to extract the Sortno corresponding to productid1 from
p_x . I know it is doable in Java API.
But I am thinking is there any solution like stratify I can use in Ns parameter? [first split by # , then split by :]
regards,
Reju Koshy
Edited by: Reju Koshy on Jul 25, 2012 7:06 AM

Hi ,
My answer given below
- What does the "x" signify in "p_x"?
p_x is just a property.
- How many of these properties are there?
There is only one property p_x which is tied to an item
- How many key/value pairs are there packed in this property?
Unlimited and the format of data for p_x -> productid1 : sort id #productid2 : sort id etc
- Are these properties on the products that "productid" references, or are these properties (productid1:sortNo1 etc.) on some kind of meta-data that you are reading in separately to the products?
p_x is a property of item which gives sort order no based on product it belongs to .
- What is the use case for this? There may be easier ways to achieve the result you are looking for (possibly via Experience Manager, or a simple record filter and application-side sorting)
If the user browse a product page , i need to sort items based on p_x.
Reju
Edited by: Reju Koshy on Jul 25, 2012 7:29 AM

Similar Messages

  • How to create a table which contains relational data and Document data

    hai all
    i need to create a table which contains relational data(i mean coulumns whose data types are type NUMBER,VARCHAR) and documents(like xml file/html file/image)using iFS.
    when i store the document data(xml data/html data) in the iFS ,it will be stored as Document Object.so how do i relate this document object belongs to a particular row in a table.
    do guide me
    thanks

    Please see reply at http://technet.oracle.com:89/ubb/Forum36/HTML/000778.html

  • Importing pdf files in flash pro which contains 3D data and merging those files to make an animation? Is it possible with Adobe Flash Pro?

    Hello, Can anyone tell me if it is possible to merge pdf files which contain 3d data to make an animation with Adobe flash professional? Is there anyway to do this? Please guide me on this.
    Thanks,
    Pratiksha

    Hi pratnat,
    Sending this tutorial your way Adobe Edge Animate - Edge Hero Lesson 1 - 3d Objects - YouTube
    Thanks,
    Preran

  • Idoc message type which contains all  data types

    Hi,
    I need idoc type or name which consist of all data type sap has defined. There are nearly 24 data types.
    Pls help..
    Regards,
    Taj

    hi,
    you will not have any message types which contain all data types.
    message types will be defined based on specific data.
    for example :
    MATMAS - Material master
    DEBMAS - Customer master data distribution

  • Import an excel file which contain resource data to P6

    Hii,
    I had a problem of importing an excel file into p6 which contain resource data to p6.
    I used the import option which is present in file-import i followed the instruction and at last while clicking the finish tab its showing the import was successful.
    But in the resource it is emplty unable to display a single resource.
    plz help me or is there any other procedure for it plz let me know.
    Best regards
    Himansu

    As the previous poster stated, you need to export using resource assignments not activities. The only changes that P6 will accept will be to information about activities (Description, duration, etc) if you choose activities. Choosing Resources will allow changes to information with resources and resources asignments will allow changes to information pertaining to the interaction of the activities and resources.

  • Delete the records which have the Data values are NULL before load data to BPC model

    Hi Everyone,
    I am loading the data from flat file to BPC Model (10.0 Version).
    Source data (Flat file) looks like below:
    RP_Employee RPT_Currency Data
    Test                USD                   8
    Test1              USD
    Test2              USD                    6
    My user requirement is that to delete the records which have the Data values are NULL before load data to BPC model.
    So,Please let me know how can i meet to this requirement.
    I am thinking that,it is possible by using start routine BADi. If i am correct please let me know process like creation of class and BADi implementation.
    Thanks in advance!!

    Hi Nilanjan,
    Please see my source data below:
    Account      Client       Employee     Time                Data
    123              XYZ            Vishu            2014.01               300
    456                                                       2014.01
    789              ABC         Alexander      2014.02               200
    If you see the second record,
    If data value is ZULL,  then the Employee or another dimension is also NULL.
    So I want to delete second records.
    If it is Start routine please share the code and steps to do.
    Thanks in advance!!
    Regards,
    Viswanath

  • To read a channel which contains some empty values

    Hi everyone,
    i have a text file which contains 4 channels for which i have to write a plugin. The problem is , in the second channel, first 15 values are missing (ie. they are empty)...so whenever i read that file in the DIAdem ,the 3rd channel's first 15 values are shifted to the 2nd channel and likewise 4th channel to 3rd channels....this is the problem....I want those empty spaces in the 2nd channel of the file to remain empty when it is taken to the DIAdem....so what should i do....could someone suggest me a solution to handle this problem...
    Expecting to see your suggestion and sample codes at the earliest..........
    Regards
    Kenni

    Hi Kenni,
    The problem is that you file contains a blank and a tab and both as delimiter.
    The following DataPlugin works, but in other cases it could be that for unusual delimiter combinations it is necessary to parse each row and import data value per value.
    Option Explicit
    Sub ReadStore(oFile)
    ' Define ASCII formatters
    oFile.Formatter.TrimCharacters = " " & vbTab
    oFile.Formatter.Delimiters = " " & vbTab
    'Create Block. This is a string file format.
    Dim Block : Set Block = oFile.GetStringBlock()
    'Create a channel group in USI
    Dim oChnGrp : Set oChnGrp = Root.ChannelGroups.Add(oFile.Info.FileName)
    Dim oChn
    'Add two channels to the block.
    ' create channel object and add the channels the new channel group.
    Set oChn = Block.Channels.Add("MyChn_1", eR64)
    oChnGrp.Channels.AddDirectAccessChannel(oChn)
    Set oChn = Block.Channels.Add("MyChn_2", eR64)
    oChnGrp.Channels.AddDirectAccessChannel(oChn)
    Set oChn = Block.Channels.Add("MyChn_3", eR64)
    oChnGrp.Channels.AddDirectAccessChannel(oChn)
    End Sub
    Greetings
    Walter

  • Automatically sort replies to folder which contains the original email.

    Is there anyway to do this?
    I've set thunderbird to automatically move MY replies under the original message which is great.
    When I receive the next message (a reply to my reply) it goes to my inbox. I'd like it to automatically sort to the folder where the thread is contained. Or have the entire thread show up in my inbox again.
    Is it a bug? or does the option only work for MY replies?

    The usual way to automate the filing of messages is to use ''Message Filters''. These are found under '''Tools|Message Filters''' in the traditional menus, or under '''Message Filters''' if you use the new Application Menu button, [≡].
    There is an add-on:
    https://addons.mozilla.org/en-US/thunderbird/addon/quickfilters/
    which may be attractive if you use filters a lot.

  • Idoc message type which contains all  data types & date format

    Hello experts,
    I have Two questions :
    1.Need Idoc message type which has all sap data types (24 types).
    2. I am getting output date in  31-05-1999, whereas am expecting 5/31/1999.
        is there anything to be done at system level, since same Func Mod gives expected output in 4.7 verions, whereas in ecc 6.0 version it doesnt.
    Thnx in advance

    Hi Taj,
      The date format usually depends upon the user settings in SAP. for this check your user settings... Go to menubar - > System - > user profile -> own data ->defaults tab -> change the date format in which you want.
    Or else.......
    There is a conversion exit to change the date in the format you wish to get.... use the Function Module  FORMAT_DATE_4_OUTPUT and give the date  and the format in which you want to print as input parameters.
    Hope this helps.
    Regards,
    Ravikiran.

  • Retrieve trailing subkey name where specific data value is found

    If, for example I want to search root key HKLM sub key SOFTWARE... down to sub key PROFILES, for a data value of "??????????" and return the sub key (for e.g. {C26BC5F9-4508-4B44-992C-CA66EADDFC66}), which contains said data value, I can use
    the following:
    @echo off
    for /f "tokens=2 delims={}" %%i in ('reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkList\Profiles" /d /f "??????????/s /e ^| findstr "{ }"') do (
    echo %%i
    pause
    How can I do the same without the curly braces being stripped away? The obvious way would be to add them back again {%%i}, but, to be honest, the entire for /f method I'm using isn't practical... There must be a way of piping the output of the reg
    query command and reading only the first line (i.e. HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkList\Profiles\{C26BC5F9-4508-4B44-992C-CA66EADDFC66}) then storing it as a parameter, to be expanded by a modifier such as %~ni? Please
    help.

    I agree, but there should be no "harm" in learning the details of "history", you may never live it (time-travel permitting), but knowing how the current came to be, may come in handy one day. I don't see obsolete as synonymous with
    useless, primitively complex perhaps, but important nonetheless. I see old paradigms as essential building blocks to create a bigger, more comprehensive and comprehensible structure. Everyone in this day and age seem to be pushing for uniformity,
    standardization, conformity and unification and the reasons may well be objectively beneficial, but, call me old fashioned, I prefer diversity, non-conformity, the preservation of useful, albeit archaic constructs over their complete extinction.
    It keeps things interesting, keeps your mind active, stops the bland and monochrome from dominating. Very off-topic, I apologise.

  • Fix the coulmn width of main report which contain the sub report( remains white space of extra width)

    Hi,
    I am setting the column width of main report and that column is bounded with the sub report which contain some data.
    But if width is exceeded other than sub report data that width is showing as white space block. 
    It should be showing as normal header in gray shade.
    Please provide the solution for this. see the screen attached.
    Thanks

    Hi Raj,
    According to your description, you want to show the sub report without any white space in the textbox. Right?
    In Reporting Services, when we display a sub report in a textbox, this textbox will always show the whole sub report area. If the textbox is smaller than the report area, this textbox will extend automatically to fit the size of the sub report. Otherwise,
    it will has white space inside of the textbox. And if you have white space in your sub report, it will also be displayed in the textbox. So you may need to adjust the sub report size to make it fitted in main report.
    Reference:
    Subreports (Report Builder and SSRS)
    If you have any feedback on our support, please click
    here.
    Best Regards,
    Simon Hou (Pactera)

  • How to fetch the records which matches a partial value?

    Hi,
    I have a table called Employee which contains the following value in Category column
    ID Value
    1 Student,Staff
    2 Staff
    3 Parent,Student
    4 Member,Staff,Student
    I wanted to fetch only 1 and 3rd and 4th record since it matches the value Student.
    basically looking for the exact pattern matched with student separated by comma.
    how to perform this query. it would be great, if i get the query in MS Sql also.
    Edited by: Pannar on Nov 1, 2009 7:08 PM

    Hi,
    I'm sure the regexps will pass by, but here's a way (no idea if this will run in MS SQL, I'm not familiar with that):
    HO%xe> with employee as ( --generating your sample data:
    2  select 1 id, 'Student,Staff' category from dual union all
    3  select 2, 'Staff' from dual union all
    4  select 3, 'Parent,Student' from dual union all
    5  select 4 ,'Member,Staff,Student' from dual
    6  )
    7  --
    8  -- Actual query:
    9  --
    10  select id
    11  ,      category
    12  from   employee
    13  where  category like '%Student%'
    14  and    instr(category, ',')>0;
           ID CATEGORY
            1 Student,Staff
            3 Parent,Student
            4 Member,Staff,StudentYou can use UPPER or LOWER as well, if you want to be case-insensitive.
    edit
    Something like:
    MHO%xe> with employee as ( --generating your sample data:
      2  select 1 id, 'Student,Staff' category from dual union all
      3  select 2, 'Staff' from dual union all
      4  select 3, 'Parent,Student' from dual union all
      5  select 4 ,'Member,Staff,Student' from dual union all
      6  select 5, 'Student' from dual union all
      7  select 6, 'Student,' from dual
      8  )
      9  --
    10  -- Actual query:
    11  --
    12  select id
    13  ,      category
    14  from   employee
    15  where  regexp_like(category,',Student|Student,');
            ID CATEGORY
             1 Student,Staff
             3 Parent,Student
             4 Member,Staff,Student
             6 Student,Might work as well.
    Edited by: hoek on Nov 1, 2009 2:50 PM

  • HOW CAN U CORRECT THE DATA IN UR FILE WHICH CONTAINS 1 LAKSH RECS

    Hai Frnds,
    i Attend an interview they asked this questions can u know the answeres . tell me .
    In File to file scenario how can we reprocess records which failed records.
    HOW CAN U CORRECT THE DATA IN UR FILE WHICH CONTAINS 1 LAKSH RECS
    Thanks in advance
    thahir

    Hi,
    Refer these links:
    this might help you
    Generic Approach for Validating Incoming Flat File in SAP XI - Part 1
    Generic Approach for Validating Incoming Flat File in SAP XI - Part 1
    validating against schema file for the output XML file
    Informing the sender about bad records
    Regards,
    Nithiyanandam

  • Error message: "This document contains photoshop data which appears to be damaged."

    I saved the file I was working on by choosing "Save" from the "File" menu. Unfortunately after 10 min as I saved my work  my PC had "issues" and needed to be manually shut off. I was trying to open the psd file after restarting my computer and I get this error message: "This document contains photoshop data which appears to be damaged. Continue and ignore the photoshop data?" I clicked okay and then I get just a black screen. No Layers or any pictures.
    I have tried to preview in Graphic Converter, in Illustrator, in ACDSee, etc... Nothing... I just get a black screen. Also, I have tried file recovery programs: Stellar Phoenix PSD Repair V1.0 and Advanced PSD Repair v1.4
    The program Stellar Phoenix PSD Repair V1.0 was able to recover only BMP picture 3.4 KB, it is so tiny that you can't see anything on the picture.
    I also have tried to install plugin "psdrecover", for Adobe Photoshop. Unsuccessfully for some reason. The plugin does not want to be installed into the "plugins" folder. I did follow the instructions.
    I am using Photoshop 6 version and Windows 7 operating System.
    I am in dire need of help. I've been working on it for days. Is there any way to recover that file back?

    I hate to be the bearer of bad news, but you're likely out of luck.  We almost never hear of anyone recovering image data from a damaged PSD.
    Some thoughts:
    1.  Set up backups.
    2.  Get in the habit of saving your master file in several different locations as you work on it.
    3.  Consider upgrading to Photoshop CS6, which auto-saves your work in the background.  I'm not sure whether it would have recovered the data in your particular case, but it's possible.
    4.  Don't feel bad - go back and do the image again, and I'll bet it comes out even better in less time.
    -Noel

  • Need help - How to load data which contains \r\n

    Hi All,
    We have a requirement wherein we need to load the data from a .dat file, with fields separated by | symbol and the line separator specified as '\r\n'
    INFILE '/scratch/xyz/abcd.dat' "STR '\r\n'"
    FIELDS TERMINATED BY '|' OPTIONALLY ENCLOSED BY '"'
    Can you please help us load data which contains multiple lines in a single field to a database table field , keeping the line separator in ctl file as '\r\n' itself.
    When we try bringing the '\r\n' within a text field enclosed in "" , the '\r\n' , sqlldr considers it as the end of that record and not as a data which needs to go into a column.
    One option we have is to have the extraction process create the data in such a way that the fields with multiple lines , be brought in the .dat file enclosed in "" as
    "Test
    "|8989|abcd
    where the new line in the first field is just '\n' .
    Is there any other way in which the requirement can be addressed.
    Version: SQL*Loader: Release 11.1.0.7.0
    Thanks,
    Rohin

    In addition, you would need to know the character set encoding of the csv files (e.g. the code page used).
    Basically you need to have the facts about both client (csv file) and database character set.
    As suggested, use the available documentation - it's there to help you!
    http://www.oracle.com/technology/tech/globalization/htdocs/nls_lang%20faq.htm
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14225/ch2charset.htm

Maybe you are looking for

  • How to display the Author's Photo in a Display Template

    I am creating a custom display template that will show the date and contents of a blog post on the right, with a thumbnail of the author on the left. I cannot figure out how to retrieve the URL for the users photo from the display template. My first

  • Getting problem with handset

    hello i have nokia e71 now i getting problem with it. my mobile phone switches doesn't work.when i try to receive any call but mobile screen it's automatically disappered. evenif i press any key to open my contect menu but i coun't open it as well. s

  • Cannot find Camera Raw in my PSE 11

    Trying to start with Camera Raw but cannot find the plug in. If I open any of my images with open command all are JPEG. My Camera is Canon powerShot s110. thanks

  • Business area in Cross System

    Hi,,    Kindly tell me while we run WE05 for IDOC List then we get the message No cross system business area has been assigned to business area BA11     Send me urgent solution. With Regards,    Samrat

  • Exporting back to Illustrator CC

    Hi, how is it possible to export an illustration from Flash Professional CC back to Illustrator CC, in vector format? I started the work in Illustrator and finalized the composition in Flash. And now I need to bring the same composition back to Illus