Kodo 3 - inverse owner and order-column bug?

Hi,
I have problems to move an object from one ordered list collection to
another.
This is the scenario:
A DocumentGroup is element of a tree, so it has children and a parent.
Tree ordering is important, so it must be maintained.
public class DocumentGroup
* @link aggregation
* @associates <{DocumentGroup}>
* @supplierCardinality 0..*
* @bidirectional <{de.daisi.model.DocumentGroup#parent}>
* @clientCardinality 0..1
* @supplierRole Children
* @clientRole Parent
private Vector children;
* @bidirectional
private DocumentGroup parent;
public void addChild(DocumentGroup newChild)
if (this.children.contains(newChild)==false)
if (newChild.isRoot())
newChild.setRoot(false);
if (newChild.getParent()!=null)
newChild.getParent().removeChild(newChild);
// Add child
newChild.setParent(this);
this.children.add(newChild);
if (this.tree!=newChild.getTree())
newChild.setTree(this.tree);
public void removeChild(DocumentGroup child)
boolean removed = this.children.remove(child);
if (removed)
child.setParent(null);
This is my mapping, the column DOCG_INDEX should be managed by KODO and
ist NOT mapped to a Java field.
<class name="DocumentGroup">
<extension vendor-name="kodo" key="jdbc-class-map" value="base">
<extension vendor-name="kodo" key="pk-column" value="DOCG_ID"/>
<extension vendor-name="kodo" key="table" value="DOCUMENTGROUP"/>
</extension>
<extension vendor-name="kodo" key="jdbc-version-ind"
value="version-number">
<extension vendor-name="kodo" key="column" value="DOCG_LOCK"/>
</extension>
<field name="children">
<collection element-type="DocumentGroup"/>
<extension vendor-name="kodo" key="inverse-owner" value="parent"/>
<extension vendor-name="kodo" key="jdbc-field-map" value="one-many">
<extension vendor-name="kodo" key="table" value="DOCUMENTGROUP"/>
<extension vendor-name="kodo" key="ref-column.DOCG_ID"
value="DOCG_DOCG_ID"/>
<extension vendor-name="kodo" key="order-column" value="DOCG_INDEX"/>
</extension>
</field>
<field name="parent">
<extension vendor-name="kodo" key="jdbc-field-map" value="one-one">
<extension vendor-name="kodo" key="column.DOCG_ID"
value="DOCG_DOCG_ID"/>
</extension>
</field>
<field name="root">
<extension vendor-name="kodo" key="jdbc-field-map" value="value">
<extension vendor-name="kodo" key="column" value="DOCG_IS_ROOT"/>
</extension>
</field>
<field name="tree">
<extension vendor-name="kodo" key="jdbc-field-map" value="one-one">
<extension vendor-name="kodo" key="column.DOCT_ID"
value="DOCG_DOCT_ID"/>
</extension>
</field>
</class>
Now, if I move a document group several times (by invoking first
removeChild() on the source group and then addChild() on the target
group), the following error occurs:
kodo.util.FatalUserException: Attempt to set column
"DOCUMENTGROUP.DOCG_INDEX" to two different values: "0", "1" This usually
occurs when you map different fields to the same column, but you do not
keep the values of these fields in synch.
at kodo.jdbc.runtime.VRow.setObjectInternal(VRow.java:95)
at kodo.jdbc.sql.AbstractRow.setObject(AbstractRow.java:535)
at kodo.jdbc.sql.AbstractRow.setInt(AbstractRow.java:301)
at
kodo.jdbc.meta.OneToManyFieldMapping.updateInverse(OneToManyFieldMapping.java:364)
at
kodo.jdbc.meta.OneToManyFieldMapping.update(OneToManyFieldMapping.java:299)
at
kodo.jdbc.runtime.UpdateManagerImpl.update(UpdateManagerImpl.java:303)
at
kodo.jdbc.runtime.UpdateManagerImpl.flush(UpdateManagerImpl.java:126)
at
kodo.jdbc.runtime.UpdateManagerImpl.flush(UpdateManagerImpl.java:71)
at
kodo.jdbc.runtime.JDBCStoreManager.flush(JDBCStoreManager.java:503)
at
kodo.runtime.DelegatingStoreManager.flush(DelegatingStoreManager.java:158)
at
kodo.runtime.PersistenceManagerImpl.flushInternal(PersistenceManagerImpl.java:760)
at
kodo.runtime.PersistenceManagerImpl.beforeCompletion(PersistenceManagerImpl.java:639)
at
kodo.runtime.LocalManagedRuntime.commit(LocalManagedRuntime.java:69)
at
kodo.runtime.PersistenceManagerImpl.commit(PersistenceManagerImpl.java:411)
So, is there an error in my mapping configuration?
(I tried to leave out the "inverse-owner", but that does not change the
behaviour.)
Any help to make my tree editable with Kodo 3 would be great...

Abe White wrote:
Is there any way you could send us a test case that reproduces this
problem? Saying you have to move a DocumentGroup "several times" makes
me think it might be best if you sent us a program that shows exactly
what you mean. Just zip up your DocumentGroup class, metadata, mapping,
and a driver program showing the error and send it to
[email protected]
We'd really appreciate it.I sent a program for testing to the mail address above. So I hope you can
reproduce this error.

Similar Messages

  • Horizontal mapping with inverse-owner doesn't work

    Hi,
    We encountered a problem of using inverse-owner with horizontal mapping.
    Here is the example.
    public abstract class A {
    //collection of class T
    private Set ts = new HashSet()
    public class B extends A {
    private String name;
    public class T {
    private A owner;
    private String text;
    we use metadata factory. package.jdo looks like this.
    <class name="T"/>
    <class name="A">
    <extension vendor-name="kodo" key="jdbc-class-map" value="horizontal"/>
    <field name="ts">
    <collection element-type="T"/>
    <extension vendor-name="kodo" key="inverse-owner"
    value="owner"/>
    </field>
    </class>
    <class name="B" persistence-capable-superclass="A">
    </class>
    mappingtool gives java.lang.ClassCastException
    at kodo.jdbc.meta.OneToManyFieldMapping.map(OneToManyFieldMapping.java:126)

    Fred-
    This is a bug in the automatic generation of mappings. See:
    http://bugzilla.solarmetric.com/show_bug.cgi?id=1096
    Note this this bug only seems to apply to the automatic generation of
    mappings: if you manually compose the .mapping file, then you can
    express the one-many mapping (provided you can cast it down to a single
    concrete type with the "type" extension).
    See the bug report page for an example mapping file solution.
    In article <[email protected]>, Fred Chen wrote:
    Hi,
    When using horizontal mappings, you cannot have an inverse type relation
    to a horizontally mapped class (there is no table to hold the
    inverse!)But that is precisely why we want to use the inverse mapping (to AVOID the
    unecessary middle table). Can you explain in a bit more detail why this is
    not supported?
    Thanks,
    Fred
    "Stephen Kim" <[email protected]> wrote in message
    news:[email protected]...
    When using horizontal mappings, you cannot have an inverse type relation
    to a horizontally mapped class (there is no table to hold the
    inverse!). However, if you have a concrete type that it is always
    mapped to, you can indicate that using the type and element-type
    extensions to override the Java declarations to the concrete mapped type.
    Fred Chen wrote:
    Hi,
    We encountered a problem of using inverse-owner with horizontal mapping.
    Here is the example.
    public abstract class A {
    //collection of class T
    private Set ts = new HashSet()
    public class B extends A {
    private String name;
    public class T {
    private A owner;
    private String text;
    we use metadata factory. package.jdo looks like this.
    <class name="T"/>
    <class name="A">
    <extension vendor-name="kodo" key="jdbc-class-map" value="horizontal"/>
    <field name="ts">
    <collection element-type="T"/>
    <extension vendor-name="kodo" key="inverse-owner"
    value="owner"/>
    </field>
    </class>
    <class name="B" persistence-capable-superclass="A">
    </class>
    mappingtool gives java.lang.ClassCastException
    at
    kodo.jdbc.meta.OneToManyFieldMapping.map(OneToManyFieldMapping.java:126)
    Steve Kim
    [email protected]
    SolarMetric Inc.
    http://www.solarmetric.com
    Marc Prud'hommeaux
    SolarMetric Inc.

  • (Managed) Inverse relations and map mapping

    Hi.
    Is there any limitation in using (managed) inverse relations together
    with map mapping? I've tried to setup my test model like this: a single
    City object holds references to many Street objects. City has "name"
    attribute , collection named "streetsList" (1-n with Streets) and map
    named "streetsMap"(n-to-many map with Streets). Street objects have just
    simple "name" attribute and single "city" reference to City object.
    What I'd like to achieve is have Kodo to set inverse relation on Street
    object (relation "city") when I put Street object into City's
    "streetsMap". This works fine when using collection ("streetsList") but
    doesn't seems to be working when map-mapped relation field is in use.
    How do I use Kodo's inverse relations manager with map fields?
    Everything is OK when I set the inverse side of relation manually
    (setting Street.city field when putting Street to City.streetsMap) - but
    I'd like InverseManager to do it!
    My configuration:
    - kodo.properties:
    kodo.InverseManager: true(ManageLRS=true)
    - package.mapping:
    <class name="City">
    <jdbc-class-map type="base" pk-column="JDOID"
    table="TEST_CITY"/>
    <jdbc-class-ind type="metadata-value" column="JDOTYPE"/>
    <field name="name">
    <jdbc-field-map type="value" column="CITY_NAME"/>
    </field>
         <field name="streetsMap">
         <jdbc-field-map type="n-many-map" key-column="MAP_KEY"
    table="TEST_STREET_MAP"
         value-column.JDOID="STREET_JDOID"
    ref-column.JDOID="CITY_JDOID"/>
         </field>
    <field name="streetsList">
              <jdbc-field-map type="one-many" ref-column.JDOID="CITY_JDOID"
    table="TEST_STREET"/>
    </field>
    </class>
    <class name="Street">
    <jdbc-class-map type="base" pk-column="JDOID"
    table="TEST_STREET"/>
    <jdbc-version-ind type="version-number" column="JDOVERSION"/>
    <jdbc-class-ind type="metadata-value" column="JDOTYPE"/>
    <field name="name">
    <jdbc-field-map type="value" column="NAME"/>
    </field>
    <field name="city">
              <jdbc-field-map type="one-one" column.JDOID="CITY_JDOID"/>
         </field>
    </class>
    - package.jdo:
    <class name="City">
              <extension key="jdbc-class-ind-value" vendor-name="kodo" value="1"/>
              <field name="streetsMap">
                   <map key-type="String" value-type="Street"/>
                   <extension vendor-name="kodo" key="inverse-owner" value="city"/>
                   <extension vendor-name="kodo" key="lock-group" value="none"/>
              </field>
              <field name="streetsList">
                   <collection element-type="Street"/>
                   <extension vendor-name="kodo" key="inverse-owner" value="city"/>
                   <extension vendor-name="kodo" key="lock-group" value="none"/>
              </field>
              <field name="name">
              </field>
         </class>
         <class name="Street">
              <extension key="jdbc-class-ind-value" vendor-name="kodo" value="2"/>
              <field name="name">
              </field>
         </class>
    Regards,
    Pawe____ ____wierszcz

    Unfortunately, inverse management is not available for Maps. We hope to
    make it available in a future release.

  • New bug introduced with Keynote 5.2 - Set timing and order of each build has stopped working properly on Smart Builds

    Hi there,
    We're heavy users of Keynote and have noticed a new bug has recently been introduced into something that was stable. I think it has emerged in Keynote 5.2, could have been Keynote 5.1 also.
    It's in the area of Set Timing and Order of each build when used on a Smartbuild. You can no longer set the Start Build field for each instance within the Smart build when the instances are interspersed between other items. The Start build field is just blank and unselectable.
    To see this :
    1. Create a bullet point list with 4 lines
    2. Set build to Appear
    3. Set "Set Timing and Order of each Build" to on
    4. Create a Smart Build - set to flip
    5. On the Smart Build Set "Set Timing and Order of each Build" to on
    5. re-order the items in your Build Order so that they alternate between the bullet point and the smart build flip
    At this point, you used to be able to set the bullets so that they Started on Click and then set the smart builds to Start with previous. This gave you a nice and very useful effect where you could click to reveal a bullet point and at the same time flip in a corresponding image. We've used this loads of times in our company presentations.
    With a recent keynote update ( I think 5.2 maybe, could have been 5.1) this functinality has been lost. have tried it on Lion and Mountain Lion and it's not an OS issue, its a Keynote issue.
    Could anyone from Apple acknowledge that they know the issue and suggest if it will get fixed? Right now we're hunting round for an old Keynote 9 DVD so we can install a pre build 5.2 version.
    Thanks

    Hi glennelliott72,
    I've noticed the bug you describe and to me it's very irritating.
    I also found some differences in the build menu between the last release and the previous one, and between the Mac OS X and iOS versions. For instance, the blast build doesn't exist anymore in Keynote 5.2 but it's still in the version for iOS 6.
    What is your experience about?
    I currently use OX Lion.
    Thank you

  • Sccm 2012 r2 console, devices, column layout and order is reset to default

    Hi :)
    I am running sccm 2012 r2 console on sccm server. I've added some columns into Assets and Management, Devices (beside default name, client, site code, client activity) ie. client version, endpoint protection enabled etc. I've left console open up and running
    and after some when I get back, column layout is reset to default 4 columns :(
    Can you fix please that system center consoles remember column layout and order ? (sc vmm 2012 r2 does not remember only when you add column maximum memory). :(

    This has to be something to do with the consolesettings.dat file. Do you have folder redirection set up on the AppData\Roaming folder? I have managed to recreate your issue using the following method:
    1. Add in some columns to the Devices view.
    2. Go to the \\server\username\AppData\Roaming\Microsoft\ConfigMgr10 and deleted the consolesettings.dat file.
    3. Relaunced the console and the columns have reset to default. 
    4. Set the columns again, closed down the console and the .dat file is recreated.
    5. Re launch the SCCM console and the settings are retained.
    I suggest you check either the C:\Users\%username%\AppData\Roaming\Microsoft\ConfigMgr10\consolesettings.dat. or \\server\username\AppData\Roaming\Microsoft\ConfigMgr10\consolesettings.dat and the time stamp of the file. Do some tests and recreate
    the steps above. 
    Somewhere along the line your dat file is being removed with your bespoke settings.
    Cheers
    Paul | sccmentor.wordpress.com

  • New files and folders on a Linux client mounting a Windows 2012 Server for NFS share do not inherit Owner and Group when SetGID bit set

    Problem statement
    When I mount a Windows NFS service file share using UUUA and set the Owner and Group, and set the SetGID bit on the parent folder in a hierarchy. New Files and folders inside and underneath the parent folder do not inherit the Owner and Group permissions
    of the parent.
    I am given to understand from this Microsoft KnowledgeBase article (http://support.microsoft.com/kb/951716/en-gb) the problem is due to the Windows implmentation of NFS Services not supporting the Solaris SystemV or BSD grpid "Semantics"
    However the article says the same functionality can acheived by using ACE Inheritance in conjunction with changing the Registry setting for "KeepInheritance" to enable Inheritance propagation of the Permissions by the Windows NFS Services.
    1. The Precise location of the "KeepInheritance" DWORD key appears to have "moved" in  Windows Server 2012 from a Services path to a Software path, is this documented somewhere? And after enabling it, (or creating it in the previous
    location) the feature seems non-functional. Is there a method to file a Bug with Microsoft for this Feature?
    2. All of the references on demonstrating how to set an ACE to achieve the same result "currently" either lead to broken links on Microsoft technical websites, or are not explicit they are vague or circumreferential. There are no plain Examples.
    Can an Example be provided?
    3. Is UUUA compatible with the method of setting ACE to acheive this result, or must the Linux client mount be "Mapped" using an Authentication source. And could that be with the new Flat File passwd and group files in c:\windows\system32\drivers\etc
    and is there an Example available.
    Scenario:
    Windows Server 2012 Standard
    File Server (Role)
    +- Server for NFS (Role) << -- installed
    General --
    Folder path: F:\Shares\raid-6-array
    Remote path: fs4:/raid-6-array
    Protocol: NFS
    Authentication --
    No server authentication
    +- No server authentication (AUTH_SYS)
    ++- Enable unmapped user access
    +++- Allow unmapped user access by UID/GID
    Share Permissions --
    Name: linux_nfs_client.host.edu
    Permissions: Read/Write
    Root Access: Allowed
    Encoding: ANSI
    NTFS Permissions --
    Type: Allow
    Principal: BUILTIN\Administrators
    Access: Full Control
    Applies to: This folder only
    Type: Allow
    Principal: NT AUTHORITY\SYSTEM
    Access: Full Control
    Applies to: This folder only
    -- John Willis, Facebook: John-Willis, Skype: john.willis7416

    I'm making some "major" progress on this problem.
    1. Apparently the "semantics" issue to honor SGID or grpid in NFS on the server side or the client side has been debated for some time. It also existed as of 2009 between Solaris nfs server and Linux nfs clients. The Linux community defaulted to declaring
    it a "Server" side issue to avoid "Race" conditions between simultaneous access users and the local file system daemons. The client would have to "check" for the SGID and reformulate its CREATE request to specify the Secondary group it would have to "notice"
    by which time it could have changed on the server. SUN declined to fix it.. even though there were reports it did not behave the same between nfs3 vs nfs4 daemons.. which might be because nfs4 servers have local ACL or ACE entries to process.. and a new local/nfs
    "inheritance" scheme to worry about honoring.. that could place it in conflict with remote access.. and push the responsibility "outwards" to the nfs client.. introducing a race condition, necessitating "locking" semantics.
    This article covers that discovery and no resolution - http://thr3ads.net/zfs-discuss/2009/10/569334-CR6894234-improved-sgid-directory-compatibility-with-non-Solaris-NFS-clients
    2. A much Older Microsoft Knowledge Based article had explicit examples of using Windows ACEs and Inheritance to "mitigate" the issue.. basically the nfs client "cannot" update an ACE to make it "Inheritable" [-but-] a Windows side Admin or Windows User
    [-can-] update or promote an existing ACE to "Inheritable"
    Here are the pertinent statements -
    "In Windows Services for UNIX 2.3, you can use the KeepInheritance registry value to set inheritable ACEs and to make sure that these ACEs apply to newly created files and folders on NFS shares."
    "Note About the Permissions That Are Set by NFS Clients
    The KeepInheritance option only applies ACEs that have inheritance enabled. Any permissions that are set by an NFS client will
    only apply to that file or folder, so the resulting ACEs created by an NFS client will
    not have inheritance set."
    "So
    If you want a folder's permissions to be inherited to new subfolders and files, you must set its permissions from the Windows NFS server because the permissions that are set by NFS clients only apply to the folder itself."
    http://support.microsoft.com/default.aspx?scid=kb;en-us;321049
    3. I have set up a Windows 2008r2 NFS server and mounted it with a Redhat Enteprise Linux 5 release 10 x86_64 server [Oct 31, 2013] and so far this does appear to be the case.
    4. In order to mount and then switch user to a non-root user to create subdirectories and files, I had to mount the NFS share (after enabling Anonymous AUTH_SYS mapping) this is not a good thing, but it was because I have been using UUUA - Unmapped Unix
    User Access Mapping, which makes no attempt to "map" a Unix UID/GID set by the NFS client to a Windows User account.
    To verify the Inheritance of additional ACEs on new subdirectories and files created by a non-root Unix user, on the Windows NFS server I used the right click properties, security tab context menu, then Advanced to list all the ACEs and looked at the far
    Column reflecting if it applied to [This folder only, or This folder and Subdirectories, or This folder and subdirectories and files]
    5. All new Subdirectories and files createdby the non-root user had a [Non-Inheritance] ACE created for them.
    6. I turned a [Non-Inheritance] ACE into an [Inheritance] ACE by selecting it then clicking [Edit] and using the Drop down to select [This folder, subdirs and files] then I went back to the NFS client and created more subdirs and files. Then back to the
    Windows NFS server and checked the new subdirs and folders and they did Inherit the Windows NFS server ACE! - However the UID/GID of the subdirs and folders remained unchanged, they did not reflect the new "Effective" ownership or group membership.
    7. I "believe" because I was using UUUA and working "behind" the UID/GID presentation layer for the NFS client, it did not update that presentation layer. It might do that "if" I were using a Mapping mechanism and mapped UID/GID to Windows User SIDs and
    Group SIDs. Windows 2008r2 no longer has a "simple" Mapping server, it does not accept flat text files and requires a Schema extension to Active Directory just to MAP a windows account to a UID/GID.. a lot of overhead. Windows Server 2012 accepts flat text
    files like /etc/passwd and /etc/group to perform this function and is next on my list of things to see if that will update the UID/GID based on the Windows ACE entries. Since the Local ACE take precedence "over" Inherited ACEs there could be a problem. The
    Inheritance appears to be intended [only] to retain Administrative rights over user created subdirs and files by adding an additional ACE at the time of creation.
    8. I did verify from the NFS client side in Linux that "Even though" the UID/GID seem to reflect the local non-root user should not have the ability to traverse or create new files, the "phantom" NFS Server ACEs are in place and do permit the function..
    reconciling the "view" with "reality" appears problematic, unless the User Mapping will update "effective" rights and ownership in the "view"
    -- John Willis, Facebook: John-Willis, Skype: john.willis7416

  • 'Sort order column' doesn't work for prompt with function

    I turned on the 'sort order column property' in repository for a logic column 'school year', so when I get school year from prompt, it shows desc order. It works fine if th colume in prompt is a simple prompt. But when I add function in the column in prompt (means edit Fx with a case statement), when school year prompt shows in dashboard, it is not sorted in desc order any more, it went back to acs.
    Am I missing something, or this is a bug?
    Another question, when I turn on 'sort order column property' in repository for a logic column, can I choose to desc on another column? I couldn't do it, and had to create another sorting column.
    Thanks,
    Amy

    Cant you create this logic in the rpd and then apply order there and use the newly created column in your prompt..

  • Interactive report - order column by other column values

    Hi Oracle experts,
    could you please advise how to order column A by values of column B in Interactive report ?
    When clicking on header of "Countries" column in order to sort it acs/desc I would like to order it by values of column "Sort_order" which stores values from 1 to 100.
    The goal is to order "Countries" not alphabetically, but according to values of "Sort_order" column.
    Any ideas?
    Thanks in advance for your help.
    Best regards,
    Konrad

    962622 wrote:
    Hi Oracle experts,Welcome to the forum: please read the FAQ and forum sticky threads (if you haven't done so already), and update your profile with a real handle instead of "962622".
    When you have a problem you'll get a faster, more effective response by providing as much relevant information as possible upfront. This should include:
    <li>Full APEX version
    <li>Full DB/version/edition/host OS
    <li>Web server architecture (EPG, OHS or APEX listener/host OS)
    <li>Browser(s) and version(s) used
    <li>Theme
    <li>Template(s)
    <li>Region/item type(s) (making particular distinction as to whether a "report" is a standard report, an interactive report, or in fact an "updateable report" (i.e. a tabular form)
    With APEX we're also fortunate to have a great resource in apex.oracle.com where we can reproduce and share problems. Reproducing things there is the best way to troubleshoot most issues, especially those relating to layout and visual formatting. If you expect a detailed answer then it's appropriate for you to take on a significant part of the effort by getting as far as possible with an example of the problem on apex.oracle.com before asking for assistance with specific issues, which we can then see at first hand.
    could you please advise how to order column A by values of column B in Interactive report ?
    When clicking on header of "Countries" column in order to sort it acs/desc I would like to order it by values of column "Sort_order" which stores values from 1 to 100.
    The goal is to order "Countries" not alphabetically, but according to values of "Sort_order" column.
    Any ideas?I'm not an expert on Interactive Reports, so there may be a less brute force method using the built-in features, but here's an approach that's worked in the past.
    Modify the query to generate the column as:
    '<!-- '|| to_char(sort_order, '009') || ' -->' || countryi.e. prefix the country name with an HTML comment containing the required ordinal number. This won't be visible in the report, but will be considered when sorting in SQL.
    In the IR Column Attributes set the column's Display Text As property to Standard Report Column so APEX won't escape the HTML tags.
    This method has side effects: some IR filters won't work; aggregate calculations can't be applied to the column; and report exports contain the HTML rather than the expected value.
    Edited by: fac586 on 02-Oct-2012 13:28
    From APEX 4.2 IR columns have support for HTML Expressions, so Re: Report formatting/sorting issue using a hidden column and HTML Expression should be used, as it's purely declarative and provides better separation of concerns. (Still a problem on report exports though. Whilst the sort column can be suppressed using a condition, the hidden column can't be "unhidden" to replace it.)

  • Pivot table sorting with month_id and average column in BI publisher temp

    In my project we are using the Oracle BI analysis for creating reports in BI publisher.
    At first we are creating the report in OBIEE answers then using it as data model in BI Pub.
    My reporting table holds data like below:
    Month_Name Year Month_Id Compensation Emp ID
    JAN 2011 1000 50 1234
    FEB 2011 1001 60 1235
    We need to show the data in pivot format i.e period(concated month+year) in column and comepsation values as measure and emp id in rows.I also need to show percentage i.e sum(Compensation/no of selected of periods).
    For average in OBIEE pivot i have create one calulated item. But I can't sort the data(for periods with the month_id) as its spillting the average column also.
    How can i sort it? like JAN2011 FEB2011 MAR2011 in pivot
    also in BI pub this calculated item not showing correct value.
    Please help.

    Hi,
    You can achieve this requirement by sort order column based on the month number and year you can sort this criteria column.also by using time_key,if the time_key is in sequence.
    mark if helpful/correct...
    thanks,
    prassu

  • Free goods and order types

    Hello,
    1) If company is providing free goods, then will it be associated for order type or with pricing condition.
         for e.g. On purchase of 100 qty. if 10% foods are free, then how is this associated.
    2) Also if i want to provide free goods only for a particular customer group, lets say wholesale, then how will it be associated
        with pricing conditions and order type.
    Regards

    Hi,
    There are two cases:-
    1.Ur company is providing free goods as a sample.
    2.If some customer buys some quantity of product u provide some free goods with it.
    1st Case:-
    if u want goods to b send as a free sample then u can directly use TANN item category with doc type or .
    2nd Case :
    Free goods is something that the customer is given after he buys certain quantity of the product/material.
    Free goods is a strategy to increase sales volume by luring the customer that if he buys 10 products one will be absolutely free.
    Free Goods:Goods that are given as additional goods as part of the ordered goods are called as free goods.Here the unit of measure of free goods should be the same as standard goods.
    Example:If you are are ordering 10 maggi sauce bottle you will be paying for only 8 bottles 2 is given as freegoods.
    price will not be reflected in pricing or billing.this is inclusive freegoods
    Exclusive freegoods.
    wherein the freegoods are given as additional good to that of the ordered goods
    Example:For 4 coffee vending machine 1 kg coffee powder isgive as free goods
    Sample goods:these are the goods which are given as pert of the promotional activity to increase the sales.
    here the customer is not paying money.
    Free goods - In SAP there are two types Exclusive and Inclusive.
    Exclusive - Buy 2 and get 1 free. This means you have to buy minimum 2 pieces then on that you will get 1 piece absolutely free.
    Inclusive - Buy 2 get 1 free. In this case it means you are paying for only 1 item and the other item is absolutely free.
    Configuration:
    IMG - Sales & Distribution - Basic Functions - Free Goods - condition technique for free goods -
    1. create the condition table(Take one field as customer group also if u want to provide free goods only for a particular customer group).
    2. maintain access sequence and assign the condition table to the access sequence.
    3. maintain condition type and assign the access sequence to the condition type.
    4. maintain the procedure for free goods and assign the condition type to the free goods procedure.
    5. Activate free goods determination. In this enter sales org., dis channel, division , docu pri pro, cust pri pro and the free goods procedure.
    6. now go to VBN1 - create free goods determination. Select your condition type, key combination and enter. Here you enter sales org, dis channel, customer no., Valid from and Valid to dates. Then you first select whether it is exclusive or inclusive free goods determination. By default it will be inclusive if you click on exclusive it will become exclusive and on top it will display inclusive. Here you enter minimum quantity for free goods and from what order quantity the number of free goods. You can control the delivery also in the second last column(free goods delivery control).
    Save the record. Go to VA01 create the sales order , enter the item and the minimum quantity for free goods .
    Thanks & Regards,
    Deepaks

  • How to Sort Dimension in Pivot Table via Order Column which is changing like Factual values

    Hi,
    Recently in of our product offerings we got stuck on this following question:
    How to Sort Dimension based on the Order Value which Keeps Changing with Factual Values??
    We have a data source laid out as (example)
    In the above the “Order” columns are changing per
    Company/(DimensionA) for DimesnsionB.
    Instead what we want is: (But only if we can get the following result without putting the “Order” Column in the “Values” Section. 
    If there are any configurations that we can make to our power pivot model for the similar data set so that the
    DimesnionB in this case can be sorted by the Order column, would be greatly helpful to us. 
    Sample File:
    http://tms.managility.com.au/query_example.xlsx
    Thanks
    Amol 

    Hi Amol,
    According to your description, you need to sort dimension members in Pivot Table via order column, and you don't want the order column show on the Pivot table, right?
    Based on my research, we can sort the data on the Pivot table based on one of the columns in that table, and we cannot sort the data based on the columns that not existed on the Pivot table. So in your scenario, to achieve your requirement, you can
    add the column to pivot table and hide it.
    https://support.office.com/en-gb/article/Sort-data-in-a-PivotTable-or-a-PivotChart-report-49efc50a-c8d9-4d34-a254-632794ff1e6e
    Regards,
    Charlie Liao
    TechNet Community Support

  • ITunes 10.4 and Windows 7 bug thread

    I thought I would start an entire thread devoted to iTunes 10.4 and Windows 7 bugs since there are MANY people reporting various issues and may not know about all of them. Hopefully this will combine a list of all bugs for reference and help others. So far, most of this effects Windows 7 64 bit, but some are reporting issues under 32 bit too.
    I have spoken with both Apple Care and a higher level tech at iTunes support. The iTunes support tech said they were "looking into all reported bugs and are aware of issues with version 10.4, especially under Windows 7. They encourage others to report their bugs to iTunes support so they can work on this and find all the issues.
    KNOWN BUGS:
    Album Art copy/paste broken - A bug that causes copy/pase from clipboard where album art is not displayed in the info tab as before. Some have reported success by dragging the image file over to it vs copy/paste method but it is still very much spotty and a known bug.
    iTunes store not working - Some have been effected with the iTunes store not working properly for them. Personally I don't have a problem but this has been for some.
    "Purchases" link not working in iTunes - When you click on "Purchases" link on the right column, all your purchases are missing and do not show up. This includes, music, movies, apps, etc. This is also a known bug and one that I have personally. Works fine in iTunes 10.3 for Windows 7 64bit and also works fine under both Snow Leopard and Lion OS.
    Sync issues - Some have reported syncing issues since upgrading to 10.4 iTunes on Windows 7. This is a bit spotty as well as I have no trouble but there are others that have reported issues.
    Solutions:
    For now, the only way to fix this is to use iTunes 10.4 under Snow Leopard or Lion OS. Also, you can uninstall (not repair) 10.4 and install 10.3 again which should work.

    You are correct and I wish that I had known this before spending 4 days and a lot of trouble going over this with both Apple Care and iTunes support. They had me jumping through hoops and didn't know anything until it was finally escalated. Only then did I get a vague response like I mentioned in the first post. It's troubling to me how a simple response from anyone there could've just said we know about this and they are bugs in 10.4 causing this.
    There are other issues too as you point out with the syncing and crashing. Anyway, hopefully others will find information here more useful than calling Apple for help. Not much we can do now except roll back to 10.3 for those that kept it and hope also they can updated Apple Application Support component.

  • Export data to excel and table column headers

    I noticed that with LV 2012 when I call the method "Export Data to Excel" for a table, the table headers (= column names) are not exported to excel.
    Am I right? I think that the column names should be exported too...
    As a matter of fact when you call the method "Export to simplified image" the column names are included
    How can I export the table column names to excel?
    Vix
    In claris non fit interpretatio
    Using LV 2013 SP1 on Win 7 64bit
    Using LV 8.2.1 on WinXP SP3
    Using CVI 2012 SP1 on Win 7 64bit, WinXP and WinXP Embedded
    Using CVI 6.0 on Win2k, WinXP and WinXP Embedded

    In this document there is a full description of how to export data from LabVIEW to Excel.
    Using a table, the method "Export data to excel" should export the "currently selected data", and data can be programmatically selected using ActiveCell property (as described here).
    With ActiveCell I can select the column headers too (using negative numbers for row and/or column), and I do this.
    And so I expect that when I select "Export data to Excel", the column headers should be exported too (because I selected them!).
    I think that the actual behavior is a bug, rather that an expected behavior.
    Don't you agree?
    Vix
    In claris non fit interpretatio
    Using LV 2013 SP1 on Win 7 64bit
    Using LV 8.2.1 on WinXP SP3
    Using CVI 2012 SP1 on Win 7 64bit, WinXP and WinXP Embedded
    Using CVI 6.0 on Win2k, WinXP and WinXP Embedded

  • Sort Order Column not Working

    I have set a sort order column on one of A VARCHAR field, but the functionality is not working. The sorting is enabled in the table view and when I sort by the said column it still sorts based on the VARCHAR values of the column instead of the other INT column I want to sort by. The logical SQL and physical query never even includes the column to sort. Are there any exceptions for the 'Sort Order Column' setting? Is there a config setting or data connections setting that I need to check to make this work?
    Thank You!
    Edited by: VNC on Oct 3, 2011 9:08 AM

    hi,
    can you give me more detailes like some sample column data like below kind
    Like Ex: varchar month column it sould display based on month id
    month : Fev-2011,Dec-2011,jan-2011 and month id 1 to 12
    set your month id as sort order column of month name.
    double click month name ->In general tab set the sort order column as month id
    FYI...see the sample link
    http://www.biconsultinggroup.com/obiee-tips-and-tricks/setting-a-sort-order-column.html
    i hope helped you
    THanks
    Deva
    Edited by: Devarasu on Oct 4, 2011 12:39 AM

  • Sort order column with a between filter

    Hi all,
    [using OBI-EE version 10.1.3.3.1]
    I've got a column 'BLOCK_ROW' which contains values A,B,C....AA,AB,AC...BA,BB...FK,FL
    Alphabetically this orders A,AA,AB.... which is incorrect. The order should be A,B,C...
    To be able to sort correctly we added a column 'ROW_SORT' to our model, which is numeric. This column is set as the 'sort order column' in the repository and makes sure the sorting is done correctly.
    So far, so good...
    Now, I want to be able to use a 'between' filter on this column, e.g. between 'A' and 'C'. Unfortunately this returns A,B,C,AA,AB... while I want it to return A,B,C.
    Is this possible?
    Thanks,
    Elio
    Generated SQL:
    select distinct T91353.BLOCK_ROW as c1,
    T91353.ROW_SORT as c2
    from
    <table_name> T91353
    where ( T91353.BLOCK_ROW between 'A' and 'C' )
    order by c2
    --> Sorting handled based on ROW_SORT, between filter not :(

    That will only do the trick in this particular example. Between 'A' and 'AA' will fail again and only returns A and AA while it should return A..Z and AA.
    Using extra filters is always possible but I'm looking for a more robust solution, which also allows for dashboard 'between' prompts based on this column.
    A workaround I came up with is to add a calculated field which concats an '_' in front of the single 'digit' values. This results in: A,B,_C,.....,AA,AB....FL. This set can be ordered alphabetically and this will work for now.
    In the future, however, it might happen that the order of the letters will completely change. In the datamodel this can be achieved by changing the order of the numbers in ROW_SORT.
    Example dataset:
    BLOCK_ROW | ROW_SORT
    Q | 1
    D | 2
    F | 3
    AA | 4
    A | 5
    The filter 'between D and AA' should then result in D,F,AA.
    Any suggestions?
    Thanks,
    Elio

Maybe you are looking for

  • Why does iTunes Store stop working when I try to view a certain category?

    When I go to the iTunes store, I try to browse through the different apps. For example, I will click on "Entertainment" then on "Top Free Apps" then it will show a blank screen then my computer will say iTunes is not responding and shuts off. What ca

  • Http to abap proxy

    Hi ; Can somebody help me by sending screenshots for a http to abp proxy scenario. I am new to sap xi . i need a http cleint also, Thnx

  • Problems after migration to lion

    I bought a new i-mac because my old macbook pro crapped out but when I loaded my old time machine onto the i-mac I found that I had some problems with Logic Pro. It can`t find any sampler instruments and if I used a drag and drop version of ultrabeat

  • WLI 8.1 RDBMS Event Generator Problem

    Hi, I am using WLI 8.1 SP4. I have created a Trigger type RDBMSEventGenerator which publishes events in xml format. It is supposed to poll every 8 seconds. This event generator works fine if it is created after the server is started. However, if the

  • Can i download apps on iphone 4 ios 7, but its japan locked

    can i download apps on iphone 4 ios 7 but its japan locked