WLCS 3.5 Bug with Multiple/Restricted Properties?

Hi,
I think I have come across a bug: I have created a property set that
holds (among others)
a property of type integer / Multiple / Restricted. I have added allowed
values 1-9.
So far, everything is fine. I can set and retrieve these properties in
my servlet by calling
setProperty(scope, propertyName, arrayList) where arrayList is a
java.util.ArrayList
containing java.lang.Long. I can retrieve values with getProperty(scope,
propertyName)
and get an ArrayList back. I can also see the selected properties under
localhost:7501/tools/...
What I cannot do, and what I think is a bug, is: I can't set the
property to an empty
ArrayList. If I try that in my servlet, or if I try to de-select all the
values in the administration
console, I get an Exception:
com.beasys.commerce.foundation.exception.SystemException : Unexpected
error in EntityPropertyManager while setting property; check that value
is valid if property is restricted
So how can I set the property to an empty value? Calling setProperty
with a null value
doesn't work either.
Bye,
Peter

Peter,
In your JSPs try <um:removeProperty>.
Let us know if that works for you...
PJL
Peter Conrad <[email protected]> wrote:
Hi,
I think I have come across a bug: I have created a property set that
holds (among others)
a property of type integer / Multiple / Restricted. I have added allowed
values 1-9.
So far, everything is fine. I can set and retrieve these properties in
my servlet by calling
setProperty(scope, propertyName, arrayList) where arrayList is a
java.util.ArrayList
containing java.lang.Long. I can retrieve values with getProperty(scope,
propertyName)
and get an ArrayList back. I can also see the selected properties under
localhost:7501/tools/...
What I cannot do, and what I think is a bug, is: I can't set the
property to an empty
ArrayList. If I try that in my servlet, or if I try to de-select all
the
values in the administration
console, I get an Exception:
com.beasys.commerce.foundation.exception.SystemException : Unexpected
error in EntityPropertyManager while setting property; check that value
is valid if property is restricted
So how can I set the property to an empty value? Calling setProperty
with a null value
doesn't work either.
Bye,
Peter

Similar Messages

  • Scheduled Report - Bug with Multiple Selection LOV parameter

    Problem:
    I have a scheduled report with a parameter that has it's "Multiple Selection" checkbox checked. I schedule the report with multiple values selected. When I receive the report via email, the report ran as if I only selected one LOV value instead of multiple values.
    Facts:
    1) Enterprise version 10.1.3.2.1
    2) When you run the report manually with multiple values selected in the LOV, it runs great with the correct dataset.
    3) This scheduled report does not have a Data Template.
    James
    P.S. - I searched this forum for other treads on this issue. I didn't find any. Sorry if this is a duplicate.

    I have this same problem, too.
    When I select multiple parameters on the "View" screen for a given report, everything works fine.
    When I schedule it, however, only the last parameter I clicked on (regardless of whether a select a range or multiple individual values) is passed to the query. The other selections I make are ignored.
    What gives? Am I doing something wrong? Is this a bug? Is there a workaround?

  • Text elements and key figures with multiple restrictions

    Hi,
    I'd like to display text elements in my query according to the restricted key figures in it. There is a restricted key figure used multiple times with different base of restriction. (For exmple Sales in the past week and yesterday.)
    KF restricted by <i>actual calendar week</i>,  and
    KF restricted by <i>actual calendar day</i>
    When displaying text elements, only calendar week appears, however, if KF restricted by calendar week is removed from the query, calendar day is being displayed. (I suppose that both time characteristics are taken as filter values.)
    Is that possible to display both filter values at once? Or at least calendar day meanwhile still having the week-based restriction in the query?
    Thanx in advance,
    Gabor

    One option would be to not use the *MVAL keyword and load the amount and quantity in separate Data Manager package imports wherby you can easily assign the NA to the appropriate dimension.  When you import amount -- assign NA to P_UNIT and when you import quantity -- assign NA to P_CURRENCY.
    However I suppose you would prefer to have one import process. Unfortunately I think you will have to find an ABAP custom solution by calling the END_Routine BADI from the transformation file to deal with the currency and unit dimensions.
    Best regards,
    [Jeffrey Holdeman|http://wiki.sdn.sap.com/wiki/display/profile/Jeffrey+Holdeman]
    SAP Labs, LLC
    BusinessObjects Division
    Americas Applications Regional Implementation Group (RIG)

  • Office 2010 Bug with Multiple Lines

    Hi,
    It appears this bug has not been fixed in the December CU.  http://sharepoint.nauplius.net/2013/09/office-2010-update-kb2760758-incorrectly-checks-multi-line-columns/.
    This is causing me large problems with SharePoint to Word integration does anyone have any workarounds they have used and/or any update on when a fix can be expected?

    Hi
    Have you tried the suggestions in the article?
    Comments below the original post also recommended to uninstall certain updates, check if it helps you.
    In addition, here's a thread for your reference:
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/415bb92d-5fb7-46cf-9235-d894036743c6/microsoft-office-update-kb2760758-breaks-multiline-text-properties-field-in-custom-content-type?forum=sharepointgeneralprevious
    We might still have to keep patience for Microsoft updates.
    Tylor Wang
    TechNet Community Support

  • Bug with multiple swingworkers working at same time

    Dear Friends:
    First I have to request apologizes about my bad English. I will try to explain my problem, to see if someone has a tip.
    I want to show in my UI the result of multiple database querys. Each query (for example, 12 queries), return a count (for example "select count(*) from clients).
    The point is to show the results of the queries, to wait x seconds for each query, and repeat them. The wait period may vary between queries.
    I have a custom JPane class that extends Jpane (call it, "MyPersonalJPane), and has a JLabel for the query result, and a Jprogressbar, to show the countdown to the next iteration of the query.
    Inside "MyPersonalJPane, I have two swingworkers. One of them called "Timer", that receives a number of seconds, counts that amount of time, and then fires a "done" property:
    {code}
    public class MyTimer extends SwingWorker {
    private int duration= 100;
    private int elapsedTime= 0;
    public MyTimer(int SECONDS) {
    duration= SECONDS;
    @Override
    protected Object doInBackground() throws Exception {
    long start= System.currentTimeMillis();
    do {
    try {
    Thread.sleep(1000);
    } catch (InterruptedException ignore) {
    long end= System.currentTimeMillis();
    elapsedTime= (int) (end - start) / 1000;
    firePropertyChange("myprogres",null,duration - elapsedTime);
    } while (elapsedTime < duration);
    return null;
    @Override
    protected void done() {
    firePropertyChange("done", null, null);
    {code}
    Then I Have an "Executor" swingworker, that performs the database query, and returns the result:
    {code}
    public class Executor extends SwingWorker<String, Void> {
    private String sql;
    private JLabel myLabel;
    public Ejecutor(JLabel ET, String SQL) {
    sql = SQL;
    myLabel= ET;
    @Override
    protected String doInBackground() throws Exception {
    String cc = "????";
    try {
    ResultSet or = os.executeQuery(sql);
    if (or.next()) {
    cc = or.getString(1);
    } catch (Exception e) {
    System.out.println(e.toString());
    return cc;
    @Override
    protected void done() {
    try {
    myLabel.setText(get());
    } catch (Exception e) {
    System.out.println(e.toString());
    firePropertyChange("done", null, null);
    {code}
    Then, in MyPersonalJPane class, the class that has a label and a JprogressBar and the two singworkers all together, I do the following:
    {code}
    public MyPersonalJPane(){
    initComponents();
    launchMyTimer();
    private void launchMyTimer() {
    jProgressBar.setIndeterminate(false);
    MyTimer t = new MyTimer(100);
    PropertyChangeListener MyTimerListener= new PropertyChangeListener() {
    @Override
    public void propertyChange(PropertyChangeEvent evt) {
    String p = evt.getPropertyName();
    if (p.equalsIgnoreCase("myprogress")) {
    int progress = (Integer) evt.getNewValue();
    jProgressBar.setValue(progress);
    if (p.equalsIgnoreCase("done")) {
    //Countdown is finished. Time to query the db again
    launchExecutor();
    t.addPropertyChangeListener(MyTimerListener);
    try {
    jProgressBar.setIndeterminate(false);
    jProgressBar.setValue(duration);
    t.execute();
    } catch (Exception ee) {
    System.out.println(ee.toString());
    private void launchMyExecutor() {
    Executor e = new Executor(sql);
    PropertyChangeListener MyExecutorListener = new PropertyChangeListener() {
    @Override
    public void propertyChange(PropertyChangeEvent evt) {
    String p = evt.getPropertyName();
    if (p.equalsIgnoreCase("done")) {
                   //here, the Label with the query result is already updated by the Executor swingworker. Time to wait again for the next query
    launchMyTimer();
    e.addPropertyChangeListener(MyExecutorListener);
    try {
    jProgressBar.setIndeterminate(true);
    e.execute();
    } catch (Exception ee) {
    System.out.println(ee.toString());
    {code}
    My intention is: In my JPanel class constructor, to launch the timer. While my timer counts down, the progressbar is refreshed. When the timer reaches 0, then the MyTimerSwinworker launch the "done" property event, and dissapears. Then, I launch the Executor swingworker, who retrieves from the database some piece of information, refreshes a Jlabel, and when it is finished, it throws a "done" event, the Executor swingworker dissapears, I launch another MyTimer swingworker, and and and and and, etc.
    It works well... with one, perhaps two diferent Jpanels, with two different queries. But my problem is that when I use, for example, 25 Jpanels with 25 different queries, that is, 25 Jpanels with 25 jprogress bar and each JPanel with tho swingworkers (one executor, and one timer), strange thing happens.
    For example, when the Jpanel nº 3 countdown reaches 0, the Jpanel nº5 is refreshed, and when the Jpanel nº7 makes a query, the result is painted in the Jlabel of the Jpanel nº1, etc.
    I suppose I'm doing something very wrong, but I don't know what.
    Any ideas?

    roquec wrote:
    It works well... with one, perhaps two diferent Jpanels, with two different queries. But my problem is that when I use, for example, 25 Jpanels with 25 different queries, that is, 25 Jpanels with 25 jprogress bar and each JPanel with tho swingworkers (one executor, and one timer), strange thing happens.
    For example, when the Jpanel nº 3 countdown reaches 0, the Jpanel nº5 is refreshed, and when the Jpanel nº7 makes a query, the result is painted in the Jlabel of the Jpanel nº1, etc.
    I suppose I'm doing something very wrong, but I don't know what.
    Any ideas?Please look into javax.swing.Timer to do the work of your "MyTimer" class. The reason your implementation of a Timer class with SwingWorker won't work with 25 instances is because each SwingWorker executes on a thread from SwingWorker's thread pool which has a limited size (I believe it is 10). With javax.swing.Timer, you can use as many countdowns as you want with no problem because they will all use a shared Thread.

  • Generics bug with multiple interface inheritance?

    Hi,
    I've noticed what I believe to be a compiler bug (I am getting an error where I believe none should exist). Can someone please comment on the following use-case?
    interface Interface1<SelfType extends Interface1<SelfType>>
    interface Interface2
    class Superclass implements A<Superclass>
    class Dependant<Type extends Interface1<Type>>
       public static <Type extends Interface1<Type>> Dependant<Type> getInstance(Class<Type> c)
         return new Dependant<Type>();
    class Subclass extends Superclass implements Interface2
      Subclass()
        Dependant<Subclass> dependant = Dependant.getInstance(Subclass.class);
    }The problem is that in the above code the compiler will complain that Dependant<Subclass> is illegal because "Subclass is not within its bounds" . The compiler requires that Subclass implement Interface1 and Interface2 directly and implementing Interface1 by extending Superclass doesn't seem to count. If you replace Subclass's definition by "class Subclass implements Interface1<Subclass>, Interface2" the problem goes away.
    Is this a compiler bug?
    Thank you,
    Gili

    Actually now I understand what you mean.... Ok, now I am going to modify the problem slightly and add Interface2 into the picture. The new code is:
    interface Interface1<SelfType extends Interface1<SelfType>>
    interface Interface2
    class Superclass implements Interface1<Superclass>
    class Dependant<Type extends Interface1<Type>>
       public static <Type extends Interface1<Type> & Interface2> Dependant<Type> getInstance(Class<Type> c)
         return new Dependant<Type>();
    class Subclass extends Superclass implements Interface2
      public Subclass()
        Dependant<Subclass> dependant = Dependant.getInstance(Subclass.class);
    }Now, previously I could replace:
    Dependant<Subclass> dependant = Dependant.getInstance(Subclass.class);
    with
    Dependant<Superclass> dependant = Dependant.getInstance(Superclass.class);
    and it solved the problem, but now that Type must implement Interface2 I cannot.
    The reason I added this requirement is that this is actually what is going on in my applicationI had made mistakely omited this detail from the original use-case.
    Can you think up of a possible solution to this new use-case?
    Thanks,
    Gili

  • Proofing bug with multiple monitors (InDesign & Acrobat on Mac)

    Software:
    InDesign CS3 5.0.3 and Acrobat Professional 8.1.2 (Mac OS X Leopard 10.5.4)
    Both application does not compensate the onscreen colors when moving document windows to another screen.
    I have three monitors: Eizo ColorEdge CG220, 30-inch Apple Cinema Display and 17-inch Apple Studio Display.
    The 30-inch Apple Cinema Display is my default monitor (with the menubar). But the Eizo ColorEdge is my color-proofing screen. To get correct onscreen colors on the ColorEdge I have to set it as the default monitor in System Settings. That's a hassle. I hope this bug will be fixed.
    Photoshop handles this perfectly.

    AlFerrari,
    My Mac Pro has two graphics card. The 30-inch uses the first one, and the Eizo and 17-inch shares the second card. The graphic cards are identical.
    Gernot,
    Photoshop refreshes the colors when releasing the mouse button after dragging a window from another screen. Acrobat and InDesign does not.

  • JDeveloper 10.1.3 Bug With Multiple JSF Config Files?

    There seems to be a problem with JDeveloper 10.1.3 when you have multiple JSF configuration files. I have three configuration files created for a JSF application. One file contains navigation cases, a second file contains the managed beans, and a third file consists of the regular faces-config.xml file.
    When you are working with a backing bean in JDeveloper, it seems to have a nasty habbit of sticking a "new" managed bean definition for the backing bean you are working on in the faces-config.xml file.

    Good point. We'll try to address this in the production release of 10.1.3.
    Thanks,
    Rod

  • Floating Dialog bug with multiple image selection?

    The selectionChangeObserver fuction of the LrDialogs.presentFloatingDialog command is not being triggered in all cases.
    It does not trigger when you have mulitple images selected and switch the main focus from one of the selected image to another seleted image.
    Anyone else run into this? or is it something I am doing wrong.
    function getSelectedImage()
            LrTasks.startAsyncTask( function ()
                 local selectedPhoto = catalog:getTargetPhoto()
                 props.PhotoNew = selectedPhoto
             end )
    end
    local result = LrDialogs.presentFloatingDialog (_PLUGIN, {
            title = "Thumbnail test",
            background_color = LrColor ("white"),
            contents = c,
            selectionChangeObserver = function(  )
                            getSelectedImage()
                    end,

    I reported this as a bug here:
    http://feedback.photoshop.com/photoshop_family/topics/lightroom_5_2_sdk_selection_change_c allback_not_called_by_change_in_most_selected_photo?rfm=1

  • Safari/Windows: "Grow" button bug with multiple displays

    I have two displays, the secondary is 1600x1200.
    If I have a S/w window in the secondary, then click the top right "grow" button (zoom window to full) the window zooms off-screen, only the left chrome is seen. To get it back I have to open a second window, right lick the taskbar Safari Group icon, then choose tile horizontally.

    I also have two displays running on XP. Both monitors are Samsung SyncMaster 940Bs at 1280x1024.
    I am having a similar problem - Safari zooms off screen on my secondary monitor when i try to maximise the window . Nothing I do seems to be able to coax it back!
    Any suggestions?

  • I have a bug with multiples menus in dvdsp4

    I currently have 2183 menus in my project,
    If i add one of them, the list x/Menus/... is not posted any more.
    I also tested since scripts (Jump/Menus/..)...
    The documentation of dvdsp4 known as (page 45): Maximum number of menus in a project : 10000.
    I am french and desperate.
    Cordialement

    Hi Gerald,
    What a welcome!!! Eeech 2000 menus and its your first post.
    Is there also a size limit as well? It used to be 2 Gig. I heard they were planning on changing it in version 4.
    I would also check and see if more RAM will do the trick. DVDSP 3 and 4 are RAM pigs. I've upgraded to 8Gb on all our machines and many little issues we had have disappeared.
    If you are still at a loss. Are you comfortable converting your remaining menus to buttons over video as an alternative?
    Good Luck

  • [svn] 949: Bug: BLZ-96 - When sending a HttpService request from ActionScript with multiple headers with the same name , it causes a ClassCastException in the server

    Revision: 949
    Author: [email protected]
    Date: 2008-03-27 07:12:59 -0700 (Thu, 27 Mar 2008)
    Log Message:
    Bug: BLZ-96 - When sending a HttpService request from ActionScript with multiple headers with the same name, it causes a ClassCastException in the server
    QA: Yes - try again with legacy-collection true and false.
    Doc: No
    Checkintests: Pass
    Details: Another try in fixing this bug. When legacy-collection is false, Actionscript Array on the client becomes Java Array on the server and my fix yesterday assumed this case. However, when legacy-collection is true, Actionscript Array becomes Java ArrayList on the server. So added code to handle this case.
    Ticket Links:
    http://bugs.adobe.com/jira/browse/BLZ-96
    Modified Paths:
    blazeds/branches/3.0.x/modules/proxy/src/java/flex/messaging/services/http/proxy/RequestF ilter.java

    Hi all!
    Just to post the solution to this if anyone ever runs accross this thread...
    For some reason i had it bad the first time, don't have time right now to see why but here is what worked for me:
    HashMap primaryFile = new HashMap();
    primaryFile.put("fileContent", bFile);
    primaryFile.put("fileName", uploadedFile.getFilename());
    operationBinding.getParamsMap().put("primaryFile", primaryFile);
    HashMap customDocMetadata = new HashMap();
    HashMap [] properties = new HashMap[1];
    HashMap customMetadataPropertyRoom = new HashMap();
    customMetadataPropertyRoom.put("name", "xRoom");
    customMetadataPropertyRoom.put("value", "SOME ROOM");
    properties[0] = customMetadataPropertyRoom;
    customDocMetadata.put("property", properties);
    operationBinding.getParamsMap().put("CustomDocMetaData", customDocMetadata);
    Basically an unbounded wsdl type is an array of objects (HashMaps), makes sense, i thought i had it like this before, must have messed up somewhere...
    Good luck all!

  • [svn] 931: Bug: BLZ-96 - When sending a HttpService request from ActionScript with multiple headers with the same name , it causes a ClassCastException in the server

    Revision: 931
    Author: [email protected]
    Date: 2008-03-26 11:31:01 -0700 (Wed, 26 Mar 2008)
    Log Message:
    Bug: BLZ-96 - When sending a HttpService request from ActionScript with multiple headers with the same name, it causes a ClassCastException in the server
    QA: Yes - we need automated tests for this basic case.
    Doc: No
    Checkintests: Pass
    Details: RequestFilter was not handling multiple headers with the same name properly.
    Ticket Links:
    http://bugs.adobe.com/jira/browse/BLZ-96
    Modified Paths:
    blazeds/branches/3.0.x/modules/proxy/src/java/flex/messaging/services/http/proxy/RequestF ilter.java

    Hi all!
    Just to post the solution to this if anyone ever runs accross this thread...
    For some reason i had it bad the first time, don't have time right now to see why but here is what worked for me:
    HashMap primaryFile = new HashMap();
    primaryFile.put("fileContent", bFile);
    primaryFile.put("fileName", uploadedFile.getFilename());
    operationBinding.getParamsMap().put("primaryFile", primaryFile);
    HashMap customDocMetadata = new HashMap();
    HashMap [] properties = new HashMap[1];
    HashMap customMetadataPropertyRoom = new HashMap();
    customMetadataPropertyRoom.put("name", "xRoom");
    customMetadataPropertyRoom.put("value", "SOME ROOM");
    properties[0] = customMetadataPropertyRoom;
    customDocMetadata.put("property", properties);
    operationBinding.getParamsMap().put("CustomDocMetaData", customDocMetadata);
    Basically an unbounded wsdl type is an array of objects (HashMaps), makes sense, i thought i had it like this before, must have messed up somewhere...
    Good luck all!

  • BulkLoader: how to define "Multiple Restricted" values in md.properties?

    I have defined a new type (myType) in the BEA Repository with a Property (myProp)
    which is a "multiple Restricted" string (values: "A", "B", "C").
    What do I need to put in the md.properties file in order to set more than one
    value?
    myProp=A
    myProp=B
    results in only the value B is retained. I've also tried using a variety of separators
    (e.g. myProp=A B), but this always causes BulkLoader to fail with "Property value:
    myProp must be from restricted list."
    Has anyone had any success with this?

    This patch is currently only available for SP1.
    We have requested the patch for SP2.
    "tanya" <[email protected]> wrote:
    >
    there's a patch for 8.1 (i'm assuming that's what you're running?) that
    will fix
    this.
    contact bea portal support for "patch_CR134752.zip"
    -tanya
    "Graham Patterson" <[email protected]> wrote:
    I have defined a new type (myType) in the BEA Repository with a Property
    (myProp)
    which is a "multiple Restricted" string (values: "A", "B", "C").
    What do I need to put in the md.properties file in order to set more
    than one
    value?
    myProp=A
    myProp=B
    results in only the value B is retained. I've also tried using a variety
    of separators
    (e.g. myProp=A B), but this always causes BulkLoader to fail with "Property
    value:
    myProp must be from restricted list."
    Has anyone had any success with this?

  • How to Restrict Single Delivery Date for PO with Multiple Line Items

    Dear Experts,
    How to Restrict Single Delivery Date for PO with Multiple Line Items.
    System needs to through Error Message if User Inputs Different Delivery Dates for PO with Multiple Line Items in ME21N Tcode.
    Can we achive this by Some Enhancement in SAP or Not ???
    If so how to do it.
    Any Inputs is highly appreciated.
    Thanks and Regards,
    Selvakumar. M

    Hi Selvakumar,
    we can resrict the PO to have a single delivery date in all the line items by means of giving a error message or overwiting the delivery date keyed/determined in the line item.
    You can use the BADI -> ME_PROCESS_PO_CUST. In which you need to implement the method PROCESS_SCHEDULE.
    (for technical aid - This method will be called for each and every PO line item, From the imporing parameter im_schedule we can get all the details of current PO line, even we can change the data in the current PO line. )
    Regards,
    Madhu.

Maybe you are looking for

  • Why does apple tv music search no longer provides lists of songs or artists based on inputing a few letters?

    When using my first generation apple tv and the music search capability, I no longer get a list of options generation when inputing a few letters of a song or artist.  In the past (up until a month or two ago) if I input "led" in the search, I would

  • Whats is the the problem with OBJ files in Photoshop CC 2014?

    What is up my fellow adobinites"!? Well I want to start off with, "I Have A Dilemma". When I open a .obj file in Photoshop CC 2014 There is an error every time but in reaction to the outcome, I torrented Photoshop Cs6 for educational and testing purp

  • Upgraded to Unlimited BT infinity 2 but still gett...

    Hi all, I hope someone can help as tech support is driving me round the bend. I placed two orders to upgrade to the new unlimited infinity 2 package, the second one finally confirmed to go through 3 days ago. However completing a test it says I am st

  • Pages and Mountain Lion Compatibility

    I have upgraded to Mountain Lion and have been trying the new features. In trying out Dictation, I've gotten it to work on most of my apps but it will not work on Pages.  I'm using Pages 08 and wondering if you need Pages 09 for it to work?

  • What would happen if I used Recovery Disk?

    I've recently bought a new iMac (Core i5) that came with Lion pre-installed, but I needed Snow Leopard for all my older software e.g. Photoshop CS, so I got the sellers to install SL for me. Everything is fine. Out of curiosity I tried to see if I co