Can you sort a multi value field in descending order on a BC?

Hi
We have a date field which is a multivalue field on our Enrolment BC. The field comes from our Attendance BC. The Enrolment BC has a one to many relationship with an Attendance BC.
We would like to sort this date in descending order for use on the Enrolment BC. We tried this on the link using the associated list sort spec. However this did not work.
The only way we could get the multi value field to sort by descending order on the Enrolment BC was to add a sort spec on the Attendance BC. That is Date (DESC).
Is there any other to do this using configuration? We don't want to add a sort spec on the Attendance BC to do this. At the moment it looks we will need to use script on the Enrolment BC.
Thanks for you help,
Tim

That is a good suggestion. It looks like we already have a couple of cloned "Attendance" BC's used by workflow / interfaces so maybe I can use one of these. Thanks!

Similar Messages

  • How can we display a multi-value field?

    Hi!
    Let's say, I have a two EOs: A "Patient" EO, and an "Address" EO. Obviously a patient can have more than one addresses. So the relationship would be 1:n.
    Now let's say, we would like to display the patient in one JTable (bound to a VO using JClient) row, and one column of that row should display all the patient's telephone numbers separated by commas.
    How would we model the EO's and the ViewObject then?
    Thanks in advance!
    Sascha Herrmann
    GE Medical Systems

    Hi!
    Let's say, I have a two EOs: A "Patient" EO, and an "Address" EO. Obviously a patient can have more than one addresses. So the relationship would be 1:n.
    Now let's say, we would like to display the patient in one JTable (bound to a VO using JClient) row, and one column of that row should display all the patient's telephone numbers separated by commas.
    How would we model the EO's and the ViewObject then?You can create a transient readonly attribute in patient that in it's accessor method, accesses all the addresses for that patient using a viewlink-accessor and then renders the phone numbers from them in a comma separated string and returns it. Then bind a Jclient column to that viewObject attribute and you should see what you've suggested above.

  • Mass updating a multi-valued field- to append the new value

    I have a question on multi-valued fields:
    I have store table with 5 multi-valued fields, say MLB, soccer, college FTBL, college Basketball, etc. 
    A store can have 4 MLBs, 2 soccer teams, and so on. 
    Say, there is a new MLB that came out called Mexico MLB team. 
    A user wanted to add this to 30 stores using a mass update.  But remember the 30 stores can have totally different sets of values in the multi-valued fields.
    How can I add this new value while still preserving the MLB team’s values of each store record?
    Does MDM not support this feature?
    I am using SAP MDM SP6
    An answer would be highly appreciated.
    Thanks
    Savi

    Savi,
    I assume you are defined these fields as multi-value lookup and linked to main table. In general, you can not because it will mess up and overwrite your multi-value entries for all of your 30 store records.
    Here is something in MDM come in handy. It is following the same concept but design your model a little differently. If you model your multi-value fields into qualified lookup table, it will be easier and optimized to handle.
    You can select all 30 records and mass-update with adding the new MLB entry into your Q-lookup table. Once you save, this mass-update action will respect all your diversity of each individual records with the new value added.
    Hope this helps
    If this answers your question, please kindly reward the points.
    Regards
    Dawei

  • SQL2 | How to add condition on multi-value field?

    Hello,
    I am trying to perform a JCR query using SQL2 in CQ5.6. For one of the conditions, I wish to compare a multi-value field (E.g. cq:tags).
    How would that be possible? Currenlt, I only managed to compare my query item's cq:tags to a single value (e.g. WHERE page.[cq:tags]='mynspace:mytag').
    Also, is there a syntax reference for SQL2 queries? Currently I have only managed to find something tanglible here : http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-spi-commons/src/test/resources/or g/apache/jackrabbit/spi/commons/query/sql2/test.sql2.txt?view=markup
    Best regards, thanks in advance,
    K.

    Hi,
    Below is an example of SQL2 query based on your scenario. you can modify and use it
    SELECT * FROM [nt:base] AS s WHERE ISDESCENDANTNODE([/content/geometrixx/en]) and (CONTAINS(s.[cq:tags], 'mynspace:mytag') or CONTAINS(s.[cq:tags], 'mynspace:mytagss1'))
    where root node path  and tags value you can change as per your need. Below is java formation
    StringBuilder query = new StringBuilder();
    query.append("SELECT * FROM [nt:base] AS s WHERE ISDESCENDANTNODE([")
    .append(pathToYourPageArea)   //for example /content/geometrixx/en
    .append("]) AND (CONTAINS(s.[cq:tags],'mynspace:mytag') or CONTAINS(s.[cq:tags],'mynspace:mytagss1'))");
    Query compiledQuery = queryManager.createQuery(query.toString(), Query.JCR_SQL2);
    where 'mynspace:mytag' and 'mynspace:mytagss1' is an example and you can change it with variables
    I hope it will help you to proceed. Let me know if you need more information.
    Thanks,
    Pawan

  • OIM: Help understanding Multi-Valued fields

    I'm having a bit of trouble passing the values of a multi-value field into an adapter and I think I have the whole structure of how this works wrong.
    I have a custom RO where a user can select multiple custom defined "Roles". I want to pass the selection of these roles to an adapter for processing. I thought I could just pass the variable name selectedRoles and it would automatically concatenate them into a string delimited by "|".
    is this not the case? How would I process the selections made by the user? I have the whole process working, form wise. It's just I can't seem to pass the selected roles into an adapter.
    Any ideas?
    When I try to map adapter variable to Process Data -> (Child Table) Roles -> Role Name I get this error:
    ERROR,27 Sep 2010 12:35:08,289,[XELLERATE.DATABASE],select UD_ROLES_P_ROLENAME from UD_ROLES_P where UD_ROLES_P_KEY =
    java.sql.SQLSyntaxErrorException: ORA-00936: missing expression
    at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:91)
    Edited by: Alex S on Sep 27, 2010 12:41 PM

    Nops ! ! For child table data, your custom adapter or code would be called in every time for each value selected, so its not a string separated by a delimiter. Also its easier for OIM to manage these values individually rather than passing them as a string.
    So your Process Data -> (Child Table) Roles -> Role Name mapping appears fine, but this would just pass one value at a time and then you have to call this adapter number of times based on the action insert, update or delete on child table data.
    Thanks
    Sunny

  • How To Import Into A Table with Multi-Value Fields

    Hello:
    I have a table with a multi-value field that contains states in which a company does business.  It is multi-value because there can be more than one state.  I tried to import a text tab-delimited file in which the data was arranged as follows:
    Field1 Tab Field 2 Tab OR, WA, CA Tab
    The "State field contained the multiple entries separated by a comma (like they appear in a query of the multi-value field), but it won't accept it.  Does anyone know how to import into a multi-value field?
    Thanks,
    Rich Locus, Logicwurks, LLC

    Joana:
    Here's the code I used to populate a multi-value field from a parsed field.  The parsing routine could be greatly improved by using the Split function, but at that time, I had not used it yet.   FYI... the field name of the multi-value field in
    the table was "DBAInStatesMultiValue", which you can see in the example below how it is integrated into the code.
    Option Compare Database
    Option Explicit
    Option Base 1
    Dim strInputString As String
    Dim intNumberOfArrayEntries As Integer
    Dim strStateArray(6) As String
    ' Loop Through A Table With A Multi-Value Field
    ' And Insert Values Into the Multi-Value Field From A
    ' Parsed Regular Text Field
    Public Function InsertIntoMultiValueField()
    Dim db As DAO.Database
    ' Main Recordset Contains a Multi-Value Field
    Dim rsBusiness As DAO.Recordset2
    ' Now Define the Multi-Value Fields as a RecordSet
    Dim rsDBAInStatesMultiValue As DAO.Recordset2
    ' The Values of the Field Are Contained in a Field Object
    Dim fldDBAInStatesMultiValue As DAO.Field2
    Dim i As Integer
    ' Open the Parent File
    Set db = CurrentDb()
    Set rsBusiness = db.OpenRecordset("tblBusiness")
    ' Set The Multi-Value Field
    Set fldDBAInStatesMultiValue = rsBusiness("DBAInStatesMultiValue")
    ' Check to Make Sure it is Multi-Value
    If Not (fldDBAInStatesMultiValue.IsComplex) Then
    MsgBox ("Not A Multi-Value Field")
    rsBusiness.Close
    Set rsBusiness = Nothing
    Set fldDBAInStatesMultiValue = Nothing
    Exit Function
    End If
    On Error Resume Next
    ' Loop Through
    Do While Not rsBusiness.EOF
    ' Parse Regular Text Field into Array For Insertion into Multi-Value
    strInputString = rsBusiness!DBAInStatesText
    Call ParseInputString
    ' If Entries Are Present, Add Them To The Multi-Value Field
    If intNumberOfArrayEntries > 0 Then
    Set rsDBAInStatesMultiValue = fldDBAInStatesMultiValue.Value
    rsBusiness.Edit
    For i = 1 To intNumberOfArrayEntries
    rsDBAInStatesMultiValue.AddNew
    rsDBAInStatesMultiValue("Value") = strStateArray(i)
    rsDBAInStatesMultiValue.Update
    Next i
    rsDBAInStatesMultiValue.Close
    rsBusiness.Update
    End If
    rsBusiness.MoveNext
    Loop
    On Error GoTo 0
    rsBusiness.Close
    Set rsBusiness = Nothing
    Set rsDBAInStatesMultiValue = Nothing
    End Function
    Public Function ParseInputString()
    Dim intLength As Integer
    Dim intStartSearch As Integer
    Dim intNextComma As Integer
    Dim intStartOfItem As Integer
    Dim intLengthOfItem As Integer
    Dim strComma As String
    strComma = ","
    intNumberOfArrayEntries = 0
    strInputString = Trim(strInputString)
    intLength = Len(strInputString)
    ' Skip Zero Length Strings
    If intLength = 0 Then
    Exit Function
    End If
    ' Strip Any Leading Comma
    If Mid(strInputString, 1, 1) = "," Then
    Mid(strInputString, 1, 1) = " "
    strInputString = Trim(strInputString)
    intLength = Len(strInputString)
    If intLength = 0 Then
    Exit Function
    End If
    End If
    ' Strip Any Trailing Comma
    If Mid(strInputString, intLength, 1) = "," Then
    Mid(strInputString, intLength, 1) = " "
    strInputString = Trim(strInputString)
    intLength = Len(strInputString)
    If intLength = 0 Then
    Exit Function
    End If
    End If
    intStartSearch = 1
    ' Loop Through And Parse All the Items
    Do
    intNextComma = InStr(intStartSearch, strInputString, strComma)
    If intNextComma <> 0 Then
    intNumberOfArrayEntries = intNumberOfArrayEntries + 1
    intStartOfItem = intStartSearch
    intLengthOfItem = intNextComma - intStartOfItem
    strStateArray(intNumberOfArrayEntries) = Trim(Mid(strInputString, intStartOfItem, intLengthOfItem))
    intStartSearch = intNextComma + 1
    Else
    intNumberOfArrayEntries = intNumberOfArrayEntries + 1
    intStartOfItem = intStartSearch
    intLengthOfItem = intLength - intStartSearch + 1
    strStateArray(intNumberOfArrayEntries) = Trim(Mid(strInputString, intStartOfItem, intLengthOfItem))
    End If
    Loop Until intNextComma = 0
    End Function
    Regards,
    Rich Locus, Logicwurks, LLC
    http://www.logicwurks.com

  • Using Calculated Field in Multi Value Field

    In Siebel Application
    Sales Order---> List
    There is a field call "Sales Rep" which displays an "USERID" of Order Sales Team Mvg Applet.
    But We want to display the Last Name and First Name (combined).We got the first and last name using calculated field (Active Full name).
    When I try to get the full name, the system display the name based on the "Primary position", if I step out of the particular row and come back again
    Is there any way to display the full name without step out any rows for Sales Rep field

    Your description is a little confusing. For performance reasons it is always best to set the use primary join on multi value links. This means that when multi value fields are displayed in applets they always show the primary by default. If you want to display something other than the primary what is your rational behind this and why not make the record you want to display the primary?
    Message was edited by:
    Richard@AXA

  • Migrate MS Access 2007 multi-valued fields to MS SQL 2012

    Hi! I do have a MS Access data base (made of MS Access 2007) which has an Attachement field. As you know Attachment DataType is a multi-valued field that replaces the Object Link Embedding (OLE) Object DataType in the new Access Database (ACCDB) file
    format. At present the whole DB has reached to the max size which is 2GB. Since we want to use the data and add more data to it, I was tasked to findout ways of converting it to SQL server. I have tried to use Import and Export data x32 module to import data
    from MS Access to MS SQL Express 2012. All the data were imported except the BLOBs at the Attachement filed. Could you please help me to import those BLOBs to MS SQL DB. Thx!

    Hello,
    About those OLE objects, please try the following article:
    http://www.codeproject.com/Articles/90908/Saving-OLE-Object-as-Image-Datatype-in-SQL
    Another recommended resources:
    http://www.microsoft.com/en-us/download/details.aspx?id=28763
    http://blogs.msdn.com/b/ssma/archive/2011/03/06/access-to-sql-server-migration-understanding-data-type-conversions.aspx
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • How can you sort an album that was released in 2007 but has 80s music on

    I have v8 of iTunes, almost completed all my tagging how I want it in iTunes for all my music
    I have a query though, I have a 80s, 90s smart playlist.
    I have recently got an album that was released in 2007, so the year in my library is 2007, however all the music on that album is from the 80s.
    So can you tag with 2 years, ie Album release date and song release (original date) or can you sort the album to show its songs from the 80s.
    Someone must have the same issue, especially from compilation albums
    please help
    cheers

    ahh, was hoping it may have had a "overall" year or album year release date.
    Man that means I gotta tag a lot of my music with the correct year now then, as the compilation albums I got all tagged form web with year released
    Whats the best way to get the year of the songs then please? is there an easy way? Ive got a lot of songs to do now
    cheers

  • How can you sort photos by descending date in Photos?

    how can you sort photos by descending date in Photos?

    There is no way to do that.
    http://www.apple.com/feedback/macosx.html
    Let Apple know your requirements.

  • In iTunes, podcasts are sorted in the library alphabetically. In Version 1.2.1, there is no order and there are duplicates.  Can you sort the library? and how do you remove duplicates of the same podcast (not episode)?

    In iTunes podcasts were sorted in the library alphabetically.  In Version 1.2.1, there is no ability to sort and podcasts (not episodes) are duplicated.  Can you sort the Podcasts in the library section? How do you remove or consolidate duplicates?

    In iTunes podcasts were sorted in the library alphabetically.  In Version 1.2.1, there is no ability to sort and podcasts (not episodes) are duplicated.  Can you sort the Podcasts in the library section? How do you remove or consolidate duplicates?

  • Can you pass a hidden value along with your select option in the form selec

    Can you pass a hidden value along with your select option in the html form select

    Off topic. Locking.

  • Can you sort ibookshelf books by collections and list all of the books in each collection?

    can you sort ibookshelf books by collections and list all of the books in each collection?

    The collection changes a little by the criteria you use to view the books, and you can view them by Title, Author, and Category. So, yes, you can.
    The default view is Book view. On the upper right part of the page, you'll see four white blocks - that's the icon for book view. The icon on the right has three white lines; that's where you find Title, Author, and Category view. You can't create folders in any view.

  • Can you hide a dimension value but display one of it's attributes?

    Can you hide a dimension value but display one of it's attributes in a query output?

    Hi Prakash,
    I assume you are referring to a characteristic ('dimension').
    This is possible: If the attribute is a navigational attribute you can include it in the query definition without the 'parent' char.
    If the attribute is a Display attr then you can try by setting the Display property of the parent char to No Display (right click the char in the query > Properties)
    Hope this helps...

  • Can you sort an outline alphabetically

    Hello Does any one know if you can you sort an outline in pages alphabetically? I could do it using word. I am using one of those templets. Thank you.

    Ok This is what you were after.
    This assumes that you use a Paragraph style for your header AND THERE IS ONLY ONE HEADER ON EACH PAGE WHICH IS ONLY ONE PARAGRAPH LONG
    // Script by Trevor to sort Pages according to alphabetical order of Page Headers
    // http://forums.adobe.com/thread/1082984?tstart=0
    var doc =  app.documents[0], myHeaders, l;
    app.changeGrepPreferences = app.findGrepPreferences = null;
    app.findGrepPreferences.appliedParagraphStyle = "My Header";
    // Change above to the name of header style
    myHeaders = doc.findGrep();
    for (n=0; n < myHeaders.length-1; n++) $.writeln([myHeaders[n].contents]);
    myHeaders.sort (function (a,b) {if (a.contents.toLowerCase() > b.contents.toLowerCase())  return 1 else return -1})
    l = myHeaders.length;
    while (l--) myHeaders[l].parentTextFrames[0].parentPage.move (LocationOptions.AT_BEGINNING);

Maybe you are looking for

  • I was editing a post in Tumblr and my work went away to the right. How do I get it back?

    I do not know what I did. AFAIK, I was typing normally, and then, whoosh! Half an hour's work just vanished off to the right-hand side of the window. HELP! How do I get it back?

  • OSB WSDL invocation from java /jsp client!

    Hi , I did a sample work on invoking osb wsdl(based on DB adapter) from a java/jsp application.It worked fine! Its a simple select query wth parameter that was configured in my DB adapter. Below are the steps I follow - a.Created a DB adapter for col

  • Custom SPML Response

    Hi, How can I return only few required attributes in SPML response instead of the complete user data? For ex: My sample SPML soap request to add a user is given below: <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://sche

  • Hyper-V Replica in the same site

    I know it may sound strange and I don't care to illustrate the reasoning behind this but I just want to know if this is technically possible?  I haven't read any restrictions regarding replicating Hyper-V data within the same site but I wanted to con

  • Acrobat X start box removal

    I find the box at startup annoying. It shows Open a Recent File and Getting Started (I have Acrobat X Standard). Is there a way to stop it coming up? Other apps have a 'Don't show this box again' check box in such boxes, but I don't see anything like