JDOQL - isEmpty() on variable field not working?

I have a class X that has a Set of Filters. Each Filter has a Set of
elements. For this example, I'll use CommodityFilter that has a Set of
Commodities. Here is some example code of the example:
public class X {
// type: Filter
private Set filters = new HashSet();
public class CommodityFilter extends Filter {
// type: Commodity
private Set commodities = new HashSet();
public class Commodity {
private String name;
Here is my query in English:
Give me all X where the "filters" set does NOT contain a CommodityFilter
OR it contains a CommodityFilter and that CF's commodities set is empty
OR it contains a CommodityFilter and that CF's commodities set contains
comm
In JDOQL:
!filters.contains(commFilter)
|| (filters.contains(commFilter) && commFilter.commodities.isEmpty())
|| (filters.contains(commFilter) && commFilter.commodities.contains(comm))
Variable: CommodityFilter commFilter
Parameter: Commodity comm
Value: comm set to Commodity instance
When I run this query, it returns all instances of X. I did some testing
and
found that the clause "(filters.contains(commFilter) &&
commFilter.commodities.isEmpty())" always returns true, even if the
commodities Set does have entries.
This is on PostgreSQL 7.4.2 with Kodo 3.1.0.
Am I constructing this query incorrectly or structuring it improperly
somehow? Or does someone have a better idea for how it should be written?
thanks for your help,
dave

!filters.contains(commFilter)
|| (filters.contains(commFilter) && commFilter.commodities.isEmpty())
|| (filters.contains(commFilter) && commFilter.commodities.contains(comm))The problems might stem from the fact that you're re-constraining the
commFilter variable 3 times by using it in a contains() statement.
The first use -- "!filters.contains(commFilter)" -- is rather
meaningless, since commFilter doesn't have any criteria on it and so can
be any element of the collection. Do you mean filters.isEmpty()?
For the second and third uses, I recommend using different variables and
seeing if that makes any difference.

Similar Messages

  • Variable Text not working as dynamic header in Crystal report

    Dear Experts,
    I'm working Crystal report that connected to Query BEX SAP BW trough SAP integration kit,
    currently i have case that need report dynamic header using variable text from BEX query, but seem the variable text not working in Crystal reports. the header in Crystal report shown as Desription\technical name, not result from the variable text in Query BEX in SAP.
    In https://wiki.sdn.sap.com/wiki/display/BOBJ/Crystal%20Reports%20and%20BW%20query%20elements stated that the "Text variable" with "replacement path" is supported, but i don't know in my query is not working.
    i already set in Database -> options->  table and fields -> Show Both, but the text variable still not working.
    can you help me
    Crystal Reports 2008 12.2.0.290
    SAP Integration KIT 12.1.0.890
    Thanks
    Luqman

    Post your question BEX and B1 and classic SAP data source issues to the Integration Kit forum

  • SELECT INTO ( variable ) STATEMENTS NOT WORKING FOR SYBASE TABLE AS VIEW

    Dear Experts,
    We have connected our 9i db with Sybase db using Hs connectivity.
    and then we have create the view in oracle db for SYBASE_TABLE as SYBASE_TABLE_VIEW.
    ALL THE INSERT, UPDATE AND DELETE COMMANDS ARE WORKING BUT THE
    select Into (variable) is not working.
    Please help to resolve the select into statment which is in BOLD in the below routine
    PLEASE NOTE! FORM WAS COMPILED SUCCESSFULLY AND FORM IS RUNNING BUT SELECT INTO COMMAND IS NOT WORKING.
    Thanks & Regards
    Eidy
    PROCEDURE SRBL_INSERT IS
    CURSOR SRBL IS
         SELECT impno,impcod,impnam
         from oracle_table1 a, oracle_table2 b
         WHERE a.impcod=b.empcod
         v_srpcod varchar2(5);
    BEGIN     
    FOR rec in SRBL loop     
         begin
    select "im_code" into v_impcod                    
         from SYBASE_TABLE_VIEW
         where "im_code"=rec.impcod;
    exception when no_data_found then
         v_srpcod:=null;
    end;
    END LOOP;
    END;
    Edited by: Eidy on Aug 16, 2010 11:28 AM

    hellow
    try this.
    select "im_code" into v_impcod
    from SYBASE_TABLE_VIEW
    where "im_code"=rec.impcod;
    v_srpcod := v_impcod ;
    ........

  • AT END OF for char field not working

    Hi all,
    AT END OF (char field) not working,
    I sorted the itab and also avoid the stars(*) problem also, but its not working.
    Thanks in advance.
    Edited by: Vijay Babu Dudla on Jan 28, 2009 11:01 PM

    Hi, Niranjan
    Test the following Sample Code it will solve out your Problem,
    " This is not working properly right now.
    TYPES: BEGIN OF t_name,
      name1(10),  " if You Change Cut the Name2 from the 2nd line and past it up to the Name one will work fine
      name2(10),
      amount1 TYPE p,
      amount2 TYPE p,
      END OF t_name.
    DATA: it1_sum TYPE STANDARD TABLE OF t_name WITH HEADER LINE,
          wa_it1_sum TYPE t_name,
          it2_sum TYPE STANDARD TABLE OF t_name WITH HEADER LINE,
          wa_it2_sum TYPE t_name.
    wa_it1_sum-name1 = 'AAAAAA'.
    wa_it1_sum-name2 = 'AAAAAA'.
    wa_it1_sum-amount1 = 500.
    wa_it1_sum-amount2 = 200.
    APPEND wa_it1_sum  TO it1_sum.
    wa_it1_sum-name1 = 'AAAAAA'.
    wa_it1_sum-name2 = 'AAAAAA'.
    wa_it1_sum-amount1 = 500.
    wa_it1_sum-amount2 = 200.
    APPEND wa_it1_sum  TO it1_sum.
    wa_it1_sum-name1 = 'BBBBBB'.
    wa_it1_sum-name2 = 'AAAAAA'.
    wa_it1_sum-amount1 = 100.
    wa_it1_sum-amount2 = 200.
    APPEND wa_it1_sum  TO it1_sum.
    wa_it1_sum-name1 = 'AAAAAA'.
    wa_it1_sum-name2 = 'AAAAAA'.
    wa_it1_sum-amount1 = 500.
    wa_it1_sum-amount2 = 10000.
    APPEND wa_it1_sum  TO it1_sum.
    wa_it1_sum-name1 = 'BBBBBB'.
    wa_it1_sum-name2 = 'AAAAAA'.
    wa_it1_sum-amount1 = 105000.
    wa_it1_sum-amount2 = 20500.
    APPEND wa_it1_sum  TO it1_sum.
    wa_it1_sum-name1 = 'BBBBBB'.
    wa_it1_sum-name2 = 'AAAAAA'.
    wa_it1_sum-amount1 = 21000.
    wa_it1_sum-amount2 = 22000.
    APPEND wa_it1_sum  TO it1_sum.
    SORT it1_sum BY name1 name2.
    LOOP AT it1_sum INTO wa_it1_sum.
      APPEND wa_it1_sum TO it2_sum.
      AT END OF name2. " When you will use this in this Condition it will give you wrong Because this row is on number two and
                       " it is not changing but the Row one is Changing so it will work fine if LEFT MOST
        SUM.
        wa_it1_sum-name1 = 'End Name 2'.
        wa_it1_sum-name2 = 'End Name 2'.
        APPEND wa_it1_sum TO it2_sum.
      ENDAT.
      AT LAST.
        SUM.
        wa_it1_sum-name1 = 'At Last'.
        APPEND wa_it1_sum TO it2_sum.
      ENDAT.
    ENDLOOP.
    Please Reply if need more help about it.
    Kind Regards,
    Faisal

  • Customer Ext Variable is NOT working correctly in the Restricted Key Figure

    Hi all,
       I have created a variable ZVCBLMTH (Period from 01/1996 to Last Month) with reference to
        0CALMONTH  and it will be populated through  Customer Exit and it works fine.
        In the selection for 0CALMONTH, I gave the range as '05/2008' to '08/2008' and this new
        variable  passed the value of  range as '01/1996' to '04/2008' in RSRT.
        The properties of the variable are:
              Type of Variable -  Characteristic, Processing by - Customer Exit, Variable Represents - Interval
              and Variable is - Optional.
              No change in the result after changing the 'Variable is' from Optional to 'Mandatory'.
      This variable is used in Restricted Key Figure to calculate the number of matching records between
       01/1996 & 04/2008 and somehow it is not recognizing this variable and NOT passing the results correctly.
       But, there are records with 0CALMONTH between 01/1996 & 04/2008.   
       How could I test that which value is passed into the Restricted Key Figure for this variable, PLEASE ?
       Thanks in advance.
    Regards,
    Venkat.

    Hi Clemens Li
    I agreed on your point. When we define the Internal table the type for element EQUNR & QUMNR , we are referring the SAP data element for EQUNR, QMNUM field.
    Our doubt is even though we refer the standard data element, in the ALV display, it shows with leading zeros and also it creates problems in the filtering and in the filter window all values instead of unique nos.
    Hi Abhii
    I have given below the fieldcat coding.
    Friends, can you kindly clarify the above said problems. Since we use SAP ECC 6.0 any notes or patches apply is required. ( this is the basic functionality in ALV, that is my doubt).
        wls_fieldcat-col_pos   = wpv_pos.
        wls_fieldcat-fieldname = wpv_champ.
        wls_fieldcat-tabname   = wlc_tabname.
      wls_fieldcat-seltext_s = wls_fieldcat-seltext_m
        wls_fieldcat-seltext_l = wpv_libelle.
        wls_fieldcat-ddictxt   = 'L'.
        wls_fieldcat-no_out    = wv_no_out.
        APPEND wls_fieldcat TO gt_fieldcat.
    Kind regards,
    Jegathees P.

  • Flex Time with variable tempo not working correctly.

    Hey,
    Has anyone else noticed that Flex Time doesn't work as intended if you have variable tempo?
    To clarify, I recorded a band playing their song and then figured out their various natural tempo changes and adjusted the Global Tempo Track accordingly.
    Then, the drummer recorded his part to a click on that track, obviously keeping with the natural tempo changes that the band played to.
    Quantization of MIDI works just fine, as in, it matches the increases and decreases in tempo.
    However, attempting to quantize an audio track using Flex Time does not work properly.
    I was just wondering if there is something that I'm doing wrong or if this is a known bug.
    Thanks,
    William

    Thank you for your answers!
    But there are several Problems using a dummy field in an IDOC structure. We have got a naming convension so that we can't create an IDOC-like structure named ORDRSP.ORDERS05.
    But perhaps I am thinking to complex and there is an easier way to add a dummy field to an IDOC structure.
    Could you perhaps also suggest a solution for that dummy field problem?
    Many thanks and kind regards,
    Steven

  • Help: ORDER BY variable does not work in CS3

    I have a variable in my recordset query for the ORDER BY
    clause which is set by the URL variable, 'order'. With CS2 the
    recordset worked fine with the variable. CS3 shows N/A for the
    variable type in the Recordset dialog, and when I click Test to
    test my recordset, it says I need to specify a variable type. So I
    set it to 'Text' and suddenly the variable doesn't even work. It
    just orders the records by ID. Am I going to have to use CS2 to
    create recordsets with an ORDER BY variable in the future or is
    there some other way around this?

    AngryCloud wrote:
    > In CS2, Dreamweaver does not ask for a data type.
    There is no such thing as Dreamweaver CS2. You are presumably
    talking
    about the version of Dreamweaver that was bundled with Adobe
    Creative
    Suite 2 after Macromedia was acquired by Adobe. That was
    Dreamweaver 8.
    From the sound of it, you have the original Dreamweaver 8,
    which didn't
    use data types for variables. Everything changed when the
    8.0.2 updater
    was released. The updater made important changes to the way
    Dreamweaver
    handles variables in SQL queries. These are designed to
    prevent
    malicious attacks through SQL injection. Dreamweaver CS3 uses
    the same
    code as Dreamweaver 8.0.2.
    If I remember correctly, Dreamweaver will automatically
    update all the
    code if you open the Recordset dialog box, make any changes,
    and then
    click OK. If that doesn't work, the safest approach is to
    select the
    Recordset in the Server Behaviors panel, and click the minus
    button to
    remove it cleanly. Then build the recordset again: a
    nuisance, I know,
    but it makes your code more secure.
    When using LIKE in a SQL query, you must always choose Text
    as the data
    type, even if you're using numbers in the variable field.
    This is
    because the SQL specification says that LIKE is for comparing
    strings.
    Dreamweaver 8.0.2 and above now follows the SQL
    specification, whereas
    it didn't before.
    David Powers, Adobe Community Expert
    Author, "The Essential Guide to Dreamweaver CS3" (friends of
    ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • Inferring type in variable declaration not working in interface generation

    I am writing my DSL's Model inferrer, which extends from AbstractModelInferrer. Until now, I have successfully generated classes for some grammar constructs, however when I try to generate an interface the type inferrer does not work and I get the following Exception:
    0 [Worker-2] ERROR org.eclipse.xtext.builder.BuilderParticipant - Error during compilation of 'platform:/resource/pascani/src/org/example/namespaces/SLA.pascani'.
    java.lang.IllegalStateException: equivalent could not be computed
    The Model inferrer code is:
    def dispatch void infer(Namespace namespace, IJvmDeclaredTypeAcceptor acceptor, boolean isPreIndexingPhase) {
    acceptor.accept(processNamespace(namespace, isPreIndexingPhase))
    def JvmGenericType processNamespace(Namespace namespace, boolean isPreIndexingPhase) {
    namespace.toInterface(namespace.fullyQualifiedName.toString) [
    if (!isPreIndexingPhase) {
    documentation = namespace.documentation
    for (e : namespace.expressions) {
    switch (e) {
    Namespace: {
    members +=
    e.toMethod("get" + Strings.toFirstUpper(e.name), typeRef(e.fullyQualifiedName.toString)) [
    abstract = true
    members += processNamespace(e, isPreIndexingPhase);
    XVariableDeclaration: {
    members += processNamespaceVarDecl(e)
    def processNamespaceVarDecl(XVariableDeclaration decl) {
    val EList<JvmMember> members = new BasicEList();
    val field = decl.toField(decl.name, inferredType(decl.right))[initializer = decl.right]
    // members += field
    members += decl.toMethod("get" + Strings.toFirstUpper(decl.name), field.type) [
    abstract = true
    if (decl.isWriteable) {
    members += decl.toMethod("set" + Strings.toFirstUpper(decl.name), typeRef(Void.TYPE)) [
    parameters += decl.toParameter(decl.name, field.type)
    abstract = true
    return members
    I have tried using the lazy initializer after the acceptor.accept method, but it still does not work.
    When I uncomment the line members += field, which adds a field to an interface, the model inferrer works fine; however, as you know, interfaces cannot have fields.
    This seems like a bug to me. I have read tons of posts in the Eclipse forum but nothing seems to solve my problem. In case it is needed, this is my grammar:
    grammar org.pascani.Pascani with org.eclipse.xtext.xbase.Xbase
    import "http://www.eclipse.org/xtext/common/JavaVMTypes" as types
    import "http://www.eclipse.org/xtext/xbase/Xbase"
    generate pascani "http : // www . pascani . org / Pascani" // Eclipse forum thinks this is a link...
    Model
    : ('package' name = QualifiedName ->';'?)?
    imports = XImportSection?
    typeDeclaration = TypeDeclaration?
    TypeDeclaration
    : MonitorDeclaration
    | NamespaceDeclaration
    MonitorDeclaration returns Monitor
    : 'monitor' name = ValidID
    ('using' usings += [Namespace | ValidID] (',' usings += [Namespace | ValidID])*)?
    body = '{' expressions += InternalMonitorDeclaration* '}'
    NamespaceDeclaration returns Namespace
    : 'namespace' name = ValidID body = '{' expressions += InternalNamespaceDeclaration* '}'
    InternalMonitorDeclaration returns XExpression
    : XVariableDeclaration
    | EventDeclaration
    | HandlerDeclaration
    InternalNamespaceDeclaration returns XExpression
    : XVariableDeclaration
    | NamespaceDeclaration
    HandlerDeclaration
    : 'handler' name = ValidID '(' param = FullJvmFormalParameter ')' body = XBlockExpression
    EventDeclaration returns Event
    : 'event' name = ValidID 'raised' (periodically ?= 'periodically')? 'on'? emitter = EventEmitter ->';'?
    EventEmitter
    : eventType = EventType 'of' emitter = QualifiedName (=> specifier = RelationalEventSpecifier)? ('using' probe = ValidID)?
    | cronExpression = CronExpression
    enum EventType
    : invoke
    | return
    | change
    | exception
    RelationalEventSpecifier returns EventSpecifier
    : EventSpecifier ({RelationalEventSpecifier.left = current} operator = RelationalOperator right = EventSpecifier)*
    enum RelationalOperator
    : and
    | or
    EventSpecifier
    : (below ?= 'below' | above ?= 'above' | equal ?= 'equal' 'to') value = EventSpecifierValue
    | '(' RelationalEventSpecifier ')'
    EventSpecifierValue
    : value = Number (percentage ?= '%')?
    | variable = QualifiedName
    CronExpression
    : seconds = CronElement // 0-59
    minutes = CronElement // 0-59
    hours = CronElement // 0-23
    days = CronElement // 1-31
    months = CronElement // 1-2 or Jan-Dec
    daysOfWeek = CronElement // 0-6 or Sun-Sat
    | constant = CronConstant
    enum CronConstant
    : reboot // Run at startup
    | yearly // 0 0 0 1 1 *
    | annually // Equal to @yearly
    | monthly // 0 0 0 1 * *
    | weekly // 0 0 0 * * 0
    | daily // 0 0 0 * * *
    | hourly // 0 0 * * * *
    | minutely // 0 * * * * *
    | secondly // * * * * * *
    CronElement
    : RangeCronElement | PeriodicCronElement
    RangeCronElement hidden()
    : TerminalCronElement ({RangeCronElement.start = current} '-' end = TerminalCronElement)?
    TerminalCronElement
    : expression = (IntLiteral | ValidID | '*' | '?')
    PeriodicCronElement hidden()
    : expression = TerminalCronElement '/' elements = RangeCronList
    RangeCronList hidden()
    : elements += RangeCronElement (',' elements +=RangeCronElement)*
    IntLiteral
    : INT
    ;

    i dont know if that you are doing is a good idea.
    the inferrer maps your concepts to java concepts and this enables the scoping for the expressions.
    if you do not have a place for your expressions then it wont work. their types never will be computed
    thus i think you have a usecase which is not possible using xbase without customizations.
    your semantics is not quite clear to me.
    i think the easiest would be to infer a class (with fields) as well
    and then
    if (decl.isWriteable) {
    members += decl.toMethod("set" + Strings.toFirstUpper(decl.name), typeRef(Void.TYPE)) [
    parameters += decl.toParameter(decl.name, decl.right.inferredType)
    abstract = true
    alternatively (with no guarantee to work in future)
    def processNamespaceVarDecl(XVariableDeclaration decl) {
    val EList<JvmMember> members = new BasicEList();
    //val field = decl.toField(decl.name, inferredType(decl.right))[initializer = decl.right]
    // members += field
    val gtr = decl.toMethod("get" + Strings.toFirstUpper(decl.name), decl.right.inferredType) [
    abstract = true
    body = decl.right
    members += gtr
    if (decl.isWriteable) {
    members += decl.toMethod("set" + Strings.toFirstUpper(decl.name), typeRef(Void.TYPE)) [
    parameters += decl.toParameter(decl.name, decl.right.inferredType)
    abstract = true
    return members
    which works without an add. class

  • Help for date field not working after upgrade

    hi experts,
    In our BSP application for a page we had an inputfield (date).
    Onvaluehelp for input field we were calling the saphelpdate function.
    however after upgrade this functionality is not working properly as no pop up comes after clicking on the icon.
    we have upgraded to SPS 16 recently.
    please help me.
    regards,
    Arvind.

    Hi, I try upper case but nothing happen. This is all my code by far, I hope you can help me:
    DATA: BEGIN OF T_PCONT OCCURS 0,
          PCONT LIKE ZPSPERMISOS-PSOBKEY,
    END OF T_PCONT.
    DATA: BEGIN OF T_FIELDS OCCURS 0.
            INCLUDE STRUCTURE help_value.
    DATA END OF T_FIELDS.
    DATA: BEGIN OF T_VALUES OCCURS 0,
          VALUE(60) TYPE c.
    DATA: END OF T_VALUES.
    DATA: N TYPE i.
    SELECTION-SCREEN BEGIN OF BLOCK  b20 WITH FRAME TITLE text-b02.
      SELECT-OPTIONS:
        P_CONT FOR  ZPSPERMISOSH-PSOBKEY OBLIGATORY NO-EXTENSION NO INTERVALS,
        P_INT  FOR  ZPSPERMISOSH-PARTNER OBLIGATORY NO-EXTENSION NO INTERVALS,
        P_FEC  FOR  ZPSPERMISOSH-ZFINICN NO-EXTENSION NO INTERVALS,    
        P_RAZ  FOR  ZPSPERMISOSH-ZRAZONFINIC NO-EXTENSION NO INTERVALS.
    SELECTION-SCREEN END OF BLOCK b20.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_CONT-LOW.
      PERFORM P_HELP_P_CONT USING P_CONT-LOW.
    *&      Form  P_HELP_P_CONT
    FORM P_HELP_P_CONT  USING P_P_CONT.
      DESCRIBE TABLE T_PCONT LINES N.
      IF N EQ 0.
        T_FIELDS-FIELDNAME  = 'PSOBKEY'.
        T_FIELDS-TABNAME    = 'ZPSPERMISOS'.
        T_FIELDS-SELECTFLAG = 'X'.
        APPEND T_FIELDS.
        CLEAR T_FIELDS.
        SELECT PSOBKEY FROM ZPSPERMISOS
        INTO  TABLE T_PCONT.
        SORT T_PCONT BY PCONT.
      CALL FUNCTION 'HELP_VALUES_GET_WITH_TABLE'
        EXPORTING
          CUCOL        = 10
          CUROW        = 1
          TABNAME      = 'T_PCONT'
          FIELDNAME    = 'PCONT'
        IMPORTING
          SELECT_VALUE = P_P_CONT
        TABLES
          FIELDS       = T_FIELDS
          VALUETAB     = T_VALUES.
    ENDFORM.                    " P_HELP_P_CONT
    Edited by: J. Garibaldi on Nov 25, 2009 11:14 AM
    Edited by: J. Garibaldi on Nov 25, 2009 11:16 AM

  • Variable Substitution not working when using ABAP mapping

    Hi all,
    I am doing an IDoc to File scenario.
    Due to some complex mapping requirements, i had to use ABAP mapping for IDoc to File ( IDoc : SHPMNT05)
    There is also one more requirement where in i need to generate the receiver filename dynamically
    i.e the filename is of the form :     
        GW-XYZ-DD/MM/YYYY.csv
    Where
    XYZ is the Shipment number (E1EDT20- TKNUM)
    DD/MM/YYYY is the IDOC creation date in ECC (EDIDC-CREDAT)
    so i used the variable substitution option in receiver file adapter.
    But its not working.
    Is there any limitation for using the variable Substitution, doesnt variable substitution work in case of ABAP mapping?
    Regards,
    Loveena.

    Hi,
      u written ABAP mapping program to get the file name in the required format ,
    is it rt?
    when u test it at message mapping(including ABAP map program)
    u get the the required format of file name in the one of target filed.
    if that was fine, please check the variable substituiton parameters at receiver file adapter.
    i mean, are u maintain variable name and refernece.
    u have to specify the payload information.
    warm regards
    mahesh.

  • Variable is not working

    HI Experts,
    can any one suggest me on this issue . When i enter 0Material variable range selction the data is not retriving .the data has there in 0material master data. if enter other range like date with out giving materila the data is displaying . i checked user defined variable and customized variable its not displaying . but the same variable it working in quality system and its problem in production system so any one suggest me on this issue.
    Regards
    Rk

    Hi,
    Thank you very much for your reply . User has been raised some other requirement . here 6 variables containg  and out of 2 are mandtory.  if the user enter  the  one of the optional slection screen and 2 mandatory variable also be optional. if the user is not entring the optional the 2 remains mandtory  here same variable act like optional and mandatory. if it is possible In please let me know.
    Regards
    Rk

  • Flash Variable is not working in Ipad

    Hi Experts,
    I'm facing with an issue, could you please suggest me your valuable suggestions.
    I have created Two dashboard (Example names A1 and B1), I need to open the dashboard B1 without asking credentials, when I select an Image in A1.
    To work in such a way, I have created a flash variable and pointed the range to cell J1.
    I have placed a URL button on top of image in Dashboard A1. I have copied following URL in a cell, and this URL I have pointed to URL Button.
    URL= (="../../../Xcelsius/opendoc/documentDownload?iDocID=M1TVABCADjs2AHoAlg123AAgoBpgwAAAA&sIDType=CUID&CELogonToken="&J1)
    Opening B1 dashboard from A1 is working fine in desktop and in Android tab, but it is not working in Ipad. Not working in Ipad in the sense a new browser window is opening with empty page.
    I have tested in another way like, passing opendocID and Flash variable to the URL button, It is working fine in Ipad but asking for the credentials.
    Experts could you please suggest me some solution.
    Ipad is Ipad2 and BO Version is 4.1 SP4.
    Thanks & Regards
    Karthik M

    Hello,
    You hyave to use the special flash variable "CELogonToken"
    Would request you to check http://scn.sap.com/docs/DOC-36362   this is a SCN document
    with title "Step by step way to create parent child dashboard in BI 4.0/4.1 using flash variable".
    SWF loader is not supported for mobile.
    Best regards,
    Mohamed AISSA.

  • Shared variable does not work in executable

    In editor mode, the shared variables update fine.  When I build the executable, the shared variables no longer work.
    See attachment.
    Attachments:
    TestCitadel.vi ‏30 KB

    I found this note in the LV2010 help, I wonder if this could be related to your problem...
    Note  You can use scaling only for network-published
    shared variables, I/O variables, or I/O aliases. When the shared
    variable you want to scale is a network-published shared variable, it
    must have a data source. Configure a network-published shared variable
    to have a data source by placing a checkmark in the Enable Aliasing checkbox on the Variable page of the Shared Variable Properties dialog box.

  • Shared variable does not work between two computers

    I am using LabVIEW 8 on Windows XP computers.
    1. On one computer I have created two projects, writeProject and readProject.
    2.  In the writeProject I have a shared variable, writeData, which is "network-published" double. In this project I have a writeData.vi which in while loop assigns a random value to the writeData variable.
    3. In the readProject I have a shared variable, readData, which is "network-published" double and is bound to the writeData variable.  This is on the same computer as the writeProject.
    4. I run both the writeData.vi and the readData.vi and all works fine.
    5. Now, I create a readProject on a diferent computer.  Perform all the steps as described above and also in tools/shared variable/register computer, I have entered the IP address of the target computer on which the writeData shared variable exists.
    6. Binding the readData variable fails in the following way.  When I browse for the source, in the "Select Source Item" dialog, I see <IP> <Populating Node...>, where <IP> is the IP address of the source computer (on which exists the writeData shared variable).  A very long time later it is still "Populating Node...".  Neddless to say, this readData.vi does not work!
    What am I doing wrong?  Or, perhapse what else do I need to do to make it work?

    Hi,
    I would suggest checking out the two KnowledgeBases I have linked below for common issues with Network Shared Variables. Let me know the results. Thanks!
    Troubleshooting Network-Published Shared Variables
    Why Are My Network Shared Variables Taking Very Long to Initialize?
    Stephanie

  • Security filter with variable does not work correctly

    Helo,
    I have one table with this columns (called BI_USERS):
    USERBI | REGIONS
    XXXX 10,5 -> In this case the user XXX can access the region 10 and 5
    AAA 9,7
    I use this table to apply the security filters. Fisrt I did a initialization block with the select: SELECT USERBI, REGIONS FROM BI_USERS WHERE USER = :USER
    This select populate two variables: variable USER (system variable) and UserRegion (Non-system variable)
    After I use the UserRegion variable in the securty filter of the one group of users. For exemple:
    Name | Status | Business Model Filter
    "Claro"."Historico Saldo Pre-Pago" Enabled "Claro"."Historico Saldo Pre-Pago"."DW_UN_NEG" In(VALUEOF(NQ_SESSION.*UserRegional)* )
    But the issue is that the query is not working, because the query created for BIServer no use the IN operator. Seems the IN operator is changed for equal (=).
    And the query returs error because the value 10,5 (for example) is not a numeric value.
    Anybody could help me, please? I am using the version 10.1.3
    Mauricio

    |||\/||| wrote:
    Helo,
    I have one table with this columns (called BI_USERS):
    USERBI | REGIONS
    XXXX 10,5 -> In this case the user XXX can access the region 10 and 5
    AAA 9,7
    I use this table to apply the security filters. Fisrt I did a initialization block with the select: SELECT USERBI, REGIONS FROM BI_USERS WHERE USER = :USER
    This select populate two variables: variable USER (system variable) and UserRegion (Non-system variable)
    After I use the UserRegion variable in the securty filter of the one group of users. For exemple:
    Name | Status | Business Model Filter
    "Claro"."Historico Saldo Pre-Pago" Enabled "Claro"."Historico Saldo Pre-Pago"."DW_UN_NEG" In(VALUEOF(NQ_SESSION.*UserRegional)* )
    But the issue is that the query is not working, because the query created for BIServer no use the IN operator. Seems the IN operator is changed for equal (=).
    And the query returs error because the value 10,5 (for example) is not a numeric value.
    Anybody could help me, please? I am using the version 10.1.3
    MauricioHi Mauricio,
    First of all you have some syntax errors with your init block:
    select USERBI, REGIONS from BI_USERS WHERE upper(USER)=upper(':USER');
    Couple things to consider here:
    1) Why are you selecting Userbi column from the table? Is USER system session variable not getting populated through other souces like LDAP or default security?
    Ans: If your user session variable is getting populated from a different init block, then you dont need to select that column. Then your init block would look something like this:
    select 'USERREGIONAL', REGIONS from BI_USERS WHERE upper(USER)=upper(':USER'); - Data Source
    Row Wise Initialization - Data Target
    Initblock that is populating the user session variable as the order of precedence.
    2) If you dont have USER session variable populating from any other source, then your init block would look something like below:
    select 'USER', USERBI, "USERREGIONAL', REGIONS from BI_USERS; - Data source
    Row Wise Initialization - Data target
    After following one of the above two steps, you need to apply the filters on the table.
    "Claro"."Historico Saldo Pre-Pago"."DW_UN_NEG" IN(VALUEOF(NQ_SESSION.USERREGIONAL))
    Note: Make sure you understand that variables are case sensitive.
    Please award points as this is correct answer.
    Thanks,
    -Amith.
    Edited by: Amith on May 10, 2011 3:18 PM

Maybe you are looking for