Determine if parameter exists

I am trying to programatically Enable and Disable database logging. Database is set to disable from Configure>Result Processing..., I write to Parameters.ModelPluginConfiguration.Plugins[1].PluginSpecific.Options.DisableDatabaseLogging value of False. This does not enables database and nothing gets comitted. All this customization is done in PreUUT.
Also need to have a precondition to find if a Parameter exists.
PropertyExists("Parameters.ModelPluginConfiguration.Plugins[Locals.DatabaseIndex].PluginSpecific.Options.DisableDatabaseLogging")
But the above always returns False. Need to receive True when Locals.DatabaseIndex is set to 1 as that is the location of Database under Configure>>ResultProcessing.
Thanks.
CLD,CTD

Your lookup string is wrong. It has to look like this:
PropertyExists("Parameters.ModelPluginConfiguration.Plugins["+Str(Locals.DatabaseIndex)+"].PluginSpecific.Options.DisableDatabaseLogging")
hope this helps,
Norbert
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.

Similar Messages

  • How to Determine if parameter is in a Parameter List?

    Hi all,
    I have to write a procedure to be used by both Designer Generated Forms and hand coded forms to handle navigation buttons. The procedure so far looks like:
    procedure proc_nav_call_form (p_form_name in varchar2, p_param_list in paramlist) is
    begin
    delete_parameter(p_paramlist,'CALL_METHOD');
    proc_generic_call_form(p_form_name,'Y','Y','p_paramlist;
    end;
    The problem I have is that the parameter list may or may not contain the 'CALL_METHOD' parameter. Designer generates the 'CALL_METHOD' parameter as a bug, so i need to have the delete_paramter call to get rid of it as a work around. Hand coded apps will not have the 'CALL_METHOD' parameter.
    The hand coded modules raise a 'FRM-47017: Cannot delete parameter CALL_METHOD....' error as the parameter does not exist in the list.
    Is there any functionality in Forms to be able to check if the parameter CALL_METHOD exists in the list before I try to delete it? I can't find anything in the documentation.
    Thanks,
    Michael.

    Thanks, but that is not an option.
    I need to ensure that a parameter list does NOT contain the CALL_METHOD parameter. If the CALL_METHOD parameter exists in the list, then delete it. If it doesn't exist, take no action and continue.
    Cheers,
    Michael.

  • VTFL - control determine export parameter

    Hello,
    In VTFL for creating billing doc's from deliveries, we are using the copy routine '003' and determine export parameter of 'B'. Now we would like to control this parameter 'B' setting based on the sales org or plant. For example, use setting 'A' for sales org X and setting 'B' for sales org Y. Can this be controlled thru config or do we need to find a user-exit to do this? Anyone with any suggestion, please respond. Thanks.

    Hi Adrian,
    Did you maintain separate delivery document types for each sales organisation or plant.?  If you have, then its possible through configuration.
    Goto VTFL  Enter source delivery document type and target billing document type.
    Maintain export data A for one combination B for another combination.
    If you want further clarification let me know,
    Regards,
    Babu

  • How to Determine Whether Columns Exist in a Table

    Greetings,
    Because of customizations to our product, certain database table structures vary between different client installations. Hence, in the code, I need to determine whether two columns exist in a certain table, in order to apply some business logic.
    Please suggest a way for me to determine whether two named columns appear in a specific table. In other words, for example, I need to discover whether both columns SAL_GRADE and BONUS appear in the EMP table, or not. Only if both columns are defined, can I apply my business logic.
    Thanks,
    Avi.

    Avi,
    Like this ?
    SQL> declare
      2    l_count number;
      3  begin
      4    select count(*)
      5      into l_count
      6      from user_tab_columns
      7     where table_name = 'EMP'
      8       and column_name in ('SALGRADE','BONUS')
      9    ;
    10    if l_count = 2
    11    then
    12      dbms_output.put_line('Both columns exist, so apply business logic');
    13    else
    14      dbms_output.put_line('One or both columns are missing, so don''t apply business logic');
    15    end if;
    16  end;
    17  /
    One or both columns are missing, so don't apply business logic
    PL/SQL-procedure is geslaagd.Regards,
    Rob.

  • Posting Keys for Account Determination do not exist

    This doubt in STO scenario:
    STO - between 2 plants - different company codes under same client
    Created STO from  Receiving Plant in ME21N with document type NB
    Based on that STO, Created Delivery in VL10B from supplying Plant
    Tried PGI in VL02N from supplying Plant.
    Received the Error Message as below:
    Posting keys for account determination for transaction BUV do not exist
    Message no. F5598
    Diagnosis
    The posting keys necessary for account determination for transaction BUV have not been set.
    System Response
    Because the posting key is missing, the system cannot generate any automatic postings.
    Procedure
    Maintain the posting keys necessary for transaction BUV.
    kindly give the solution and advance thanks.
    Vaidee

    Hi Vadee,
    Account Determination for BUV has not been setup for PGI.
    So , go to transaction OBYC and assign the account by double clicking BUV  and give u r chart of accounts and check whether the account has been maintained. If not maintain.
    If account has been maintained , select your account/valuation class and select posting keys push button and maintain the posting keys.
    Regards,
    Nani

  • Determine if service exists?

    In Powershell, how do you determine if a windows service exists and stop it?
    thanks

    Hi Scott_m,
    Mike's script should work, to start powershell Conditional Operators, please also check these articles:
    Introduction to PowerShell Conditional Operators
    Introduction to The Windows PowerShell If Statement
    If you have any feedback on our support, please
    click here.
    Best Regards,
    Anna
    TechNet Community Support

  • Determine if database exists?

    Is is possible, through Java, to determine if a database exists on a particular database server? We have an application that will either create or migrate a database, and I need to add a check in the installer to ensure that the given database name exists before continuing. I'm looking for something that works with both SQL Server and Oracle (but SQL would be fine atm). Any help is greatly appreciated and thanks in advance.

    As far as I know, you have to connect to the database and you are quite correct, it will only verify if you have rights to read from that database. If are wondering what to do if you don't have appropriate system rights in the database or ability to connect to the database, then you will have to go the registry route for Oracle and see if the database you are looking for has been registered--I will assume SQL does something similar, but I do not know. This assumes you will have rights enough on the server to search the registry.
    Aside from the previous suggestions, you can literally search the server directory structures looking for the database you seek. This way you also have to have appropriate rights into the server.
    Any way you look at it, you are going to have to have a login account and appropriate rights to find what you are looking for--however you choose to do the searching.

  • Determine whether parameter is dynamic or static?

    I'm having some challenges with applying connection information to my reports. I'm seeing that I need to use one method for reports that contain dynamic parameters, and another method for ones that do not. It's insane to me how difficult it's been to find a solid way to handle setting connection information, and there appears to be a million ways to do it, but I digress.
    What's the best way to load a report and determine whether or not it contains parameters that are dynamic or not? Any advice would be appreciated!

    Ok... I'll take you down the rabbit hole, which will probably slightly change the topic of this thread This all stems from a post I made back in 2011 which you and Don were active on:
    http://scn.sap.com/thread/1887128
    I never did quite figure out the issue described in that thread, and finally began to tackle it again. My CR viewer needs to support reports that utilize ODBC (RDO) and OLE DB (ADO) connection types. As it turns out, reports utilizing OLE DB (ADO) connection types were actually working as expected, no login screen was being shown prior to the dynamic parameter being displayed, it was only reports utilizing the ODBC connection type. So I downloaded the "CodeBuilder-RasConnectionInfo" utility and worked with the code it generated, which looked like an entirely different method of setting the connection info. After using this new method, my ODBC based reports began to work just fine, whereas my OLE DB (ADO) reports were now displaying the logon prompt prior to displaying the dynamic parameters. The code I've been using all along has been working so well and is very trusted that thought one approach I would take is to detect if the crystal report contained dynamic parameters, and only use the new connection code if it did, otherwise it would revert back to what I was always using. I'm now changing my tune on this, and don't think that's the right approach. I'm actually comfortable with making the statement that my viewer only supports dynamic parameters when utilizing OLE DB (ADO) connection types. But just in case you are curious, here are the two blocks of code:
    Here is what I was always using, where dynamic parameters show a logon prompt for ODBC connections types, but not OLE DB (ADO) connection types:
    http://resources.rock-pond.com/orig.txt
    Here is what I used from the code generator, where dynamic parameters do not show a logon prompt for ODBC connection types, but do for OLE DB (ADO) connection types (In this example, there are minor changes to the code depending on whether the report utilizes ole db (ado) vs ODBC... The example here is for odbc
    http://resources.rock-pond.com/new.txt
    Ideally I would find one method that work work against both connection types and display dynamic parameters without the logon prompt, but I haven't found the answer yet.
    I'm currently using 13.0.5.891 on the development system, and am testing the functionality against a 13.0.8 version of the runtimes. If you've got any thoughts or direction I might take, let me know.

  • Does authentication_required Parameter exist?

    I have "inherited" a 10gR2 database that has following entry in sqlnet.ora
    SQLNET.AUTHENTICATION_REQUIRED=FALSEI wonder if such a parameter does exist. I searched Oracle docs 10g and 9i but did not find anything.
    The DBAs setting up the DB already left the company. The DB has been migrated from 9i to 10g some time ago (some of these DBAs are still available but none of them can explain the parameter). Does anybody know this parameter?
    sqlnet.ora has the following parameters (BEQ in line SQLNET.AUTHENTICATION_SERVICES=(BEQ,NTS, NONE) is not listed in documentation http://download.oracle.com/docs/cd/B19306_01/network.102/b14213/sqlnet.htm#sthref443 ):
    USE_DEDICATED_SERVER=ON
    SQLNET.ENCRYPTION_SERVER=REQUIRED
    SQLNET.ENCRYPTION_CLIENT=REQUIRED
    SQLNET.ENCRYPTION_TYPES_SERVER=(RC4_40,RC4_128)
    SQLNET.ENCRYPTION_TYPES_CLIENT=(RC4_40,RC4_128)
    SQLNET.CRYPTO_SEED = "<deleted>"
    SQLNET.CRYPTO_CHECKSUM_SERVER=REQUIRED
    SQLNET.CRYPTO_CHECKSUM_CLIENT=REQUIRED
    SQLNET.CRYPTO_CHECKSUM_TYPES_SERVER = (MD5)
    SQLNET.CRYPTO_CHECKSUM_TYPES_CLIENT = (MD5)
    SQLNET.AUTHENTICATION_SERVICES=(BEQ,NTS, NONE)
    SQLNET.AUTHENTICATION_REQUIRED=FALSE

    Part of Oracle 9 Advanced Security Guide :
    EXTERNAL AUTHENTICATION AND SINGLE SIGN-ON
    In order to require external authentication and disable username/
    password authentication, set the sqlnet.ora parameter
    SQLNET.AUTHENTICATION_REQUIRED=TRUE. The default is false.
    If you are not using external authentication you can remove this parameter.
    False is the default you can remove this from your SQLNET.ORA.
    Oded
    [www.dbsnaps.com]
    [www.orbiumsoftware.com]
    Edited by: Oded Raz on Jun 25, 2009 4:08 PM

  • Help on determining version for existing forms & porting to Forms 9i

    I'm new to Oracle and Oracle Forms.
    I have a large number of *.fmb, *.fmx, *.pll, *.sql files (all developed in the early 1990's).
    I am trying to convert them to 9i. Are there any "How-To's" on the subject?
    Is there a tool to help me determine what the original Forms version is?
    Also . . .
    When opening a *.fmb in Forms 9i, I get the error "FRM-10102: Cannot attach PL/SQL library &lt;filename&gt;.pll. This library attachment will be lost if the module is saved.
    I opened the specified *.pll file and then another form and received the same error.
    Any help or direction will be greatly appreciated.
    Thanks in advance.
    Brian Atkinson

    Generally speaking you can just open up a form in 9i and that will upgrade it. There are specific issue on moving from client/server to the web and you can go to otn.oracle.com/products/forms and click to view the Forms Upgrade Centre.
    The error you are getting probably means that the form has a library attached but when you open that form it cannot find it.
    What I would do is make sure the location of the pll files is on the FORMS90_PATH environment variable (in the registry on Windows).
    Another note - you can go to otn.oracle.com/products/forms and click to download other versions of the software - including 6i. However while it may only be certified to go to 61 and then 9i, in many cases you can go directly from 4.5. to 9i.
    Hope this helps.
    Regards
    Grant Ronald
    Forms Product Management

  • How determine repository for existing IDM instance

    Hello all! Here is an interesting one. I've inherited an IDM instance and have to find out about its repository (nobody seems to know as the consultants who set it up are long gone). I looked through the idm.war file but don't see anything regarding where its database instance is (I'm sure its not in LDAP or a flat file). Where is this data persisted and how can it be changed if need be? :-)
    Thanks!

    Sorry - didn't see the last part of this.
    If you want to change the assigned REPO, you can either use the correct flags / options with the "lh setRepo" command or you can run "lh setup" instead. The "lh setup" will launch a wizard-based window to take you through the steps to connect. This is where you can specify (drop-list, text entry) the type of REPO (files, DB) and how-to connect to it. Just be careful that when the REPO was originally created using the provided scripts, it would likely have been modified so that there's a specific account (ID, Password) that would be enabled for access. So net -- if you don't know the account credentials for remotely connecting to the existing or alternate REPO, I wouldn't go changing which REPO the instance points to.
    Make sense?

  • How to determine in an XML node exists in Coldfusion

    If I have XML that looks something like this:
    <manifest>
        <state ID="20" name="State 2">
            <person>john.black</person>
        </state>
        <state ID="30" name="State 2">
            <person>bill.doe</person>
            <group>Group2</group>
        </state>
    </manifest>
    Where <group> may or may not exist under <state>, how do I determine if <group> exists when I'm parsing this XML? 
    This is the code I'm working with currently:
    <cfset szXMLFile = "Manifest.xml">
    <cfset XMLDoc = xmlParse(szXMLFile)>
    <cfset StateNodes = xmlSearch(XMLDoc,'/manifest/state')>
    <cfoutput>
    <cfloop from="1" to="#ArrayLen(StateNodes)#" index="i">
        <cfset StateXML = xmlparse(StateNodes[i])>
        <cfloop index="p" from="1" to="#ArrayLen(StateXML.state.person)#">
            <cfoutput>Person: #StateXML.state.person[p].xmltext#</cfoutput><br />
        </cfloop>
        <cfloop index="g" from="1" to="#ArrayLen(StateXML.state.group)#">
            <cfoutput>Person: #StateXML.state.group[g].xmltext#</cfoutput><br />
        </cfloop>
    </cfloop>
    </cfoutput>
    I suppose I could just put <try><catch> blocks around where I'm referencing <group> and if it doesn't exist, I'll just handle it that way - but that seems like such a hack.  Is there a 'real' way to determine if the node actually exists? 
    Thanks! 

    <cfif structKeyExists(StateXML.state, "group")>
        <cfloop index="g" from="1" to="#ArrayLen(StateXML.state.group)#">
            <cfoutput>Person: #StateXML.state.group[g].xmltext#</cfoutput><br />
        </cfloop>
    </cfif>

  • Programatiicaly determine if a subsequence exists

    How do I determine if a named sequence exists in a sequence file (not the current sequence file) and if present, execute it? The file in which the sequence resides may or may not be loaded.
    I would like to do this within a TestStand sequence (presumably using the TestStand API). I'm using TS 3.0. I know how to dynamically call the sequence, I just need to determine if it exists before calling it.
    Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T
    If you don't hate time zones, you're not a real programmer.
    "You are what you don't automate"
    Inplaceness is synonymous with insidiousness

    Hi,
    Get a reference to the SequenceFile then you can use the API SequenceFile.SequenceNameExists(sequenceNameParam) and this returns a Boolean.
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • Cannot check if user already exists in Shared Service (9.3.1)

    Hi,
    I wrote some code based on the sample from 9.3.1 CSS documentation for adding users for shared services.
    Thing is that I need this script to determine if a user exists or not so it won't go through the creation code again.
    So, from the code:
    public class UserFunctionsSample extends Sample {
    public CSSNativeUserIF createUser() throws CSSException
              CSSNativeUserIF user = null;
              HashMap context = new HashMap();
         user = cssDMAPI.getNativeUserInstance(context, principal);
         user.setLoginName("testuser" );
         user.setDescription("Created for test");
         user.setFirstName("First");
         user.setLastName("Last");
         cssDMAPI.addNativeUser(context, principal, user);
         cssDMAPI.setPassword(context, principal, user.getIdentity(),"testuser" );
         return user;
    public static void main (String [] args) throws CSSException{
                   /* Create a native user */
                   UserFunctionsSample cu = new UserFunctionsSample();
                   CSSNativeUserIF user = cu.createUser();
    I have Sample.java and ApplicationContract.java set up.
    What I tried to do is to use the following code (also taken from the same sample) just before calling createUser()
    CSSNativeUserIF user = cu.createUser();
    to determine if user exist.
    /*lookup the user just created by identity */
    CSSNativeUserIF u = cu.lookupUser(user.getIdentity());
    cu.dumpUsers(System.out, "Found user", new CSSNativeUserIF[]);
    For some hidden reason, I keep getting:
    Exception in thread "main"
    Error Code: 4
    com.hyperion.css.CSSInvalidUserException: User not found with identity: native://DN=cn=32687d765b75fb16:13778f33:12684aee8f5:-8000,ou=People,dc=css,dc=hyperion,dc=com?USER     Error Code: 4
         at com.hyperion.css.spi.impl.nv.NativeProviderDirMgmt.getNativeUserByIdentity(Unknown Source)
         at UserFunctionsSample.lookupUser(UserFunctionsSample.java:101)
         at UserFunctionsSample.main(UserFunctionsSample.java:123)
    User was created successfully at the previous run. Why can't I find it now? What am I missing here?
    Thanks, Assaf

    Hmm, tried that and now have more build errors in the finally section.
    init:
    deps-jar:
    Compiling 1 source file to C:\resin-2.1.11\doc\examples\basic\WEB-INF\classes\JavaLibrary1\build\classes
    C:\resin-2.1.11\doc\examples\basic\WEB-INF\classes\JavaLibrary1\test\FormBean.java:57: cannot resolve symbol
    symbol  : variable rst
    location: class foo.FormBean
                if (rst != null) rst.close();
    C:\resin-2.1.11\doc\examples\basic\WEB-INF\classes\JavaLibrary1\test\FormBean.java:57: cannot resolve symbol
    symbol  : variable rst
    location: class foo.FormBean
                if (rst != null) rst.close();
    C:\resin-2.1.11\doc\examples\basic\WEB-INF\classes\JavaLibrary1\test\FormBean.java:58: cannot resolve symbol
    symbol  : variable stat
    location: class foo.FormBean
                if (stat != null) stat.close();
    C:\resin-2.1.11\doc\examples\basic\WEB-INF\classes\JavaLibrary1\test\FormBean.java:58: cannot resolve symbol
    symbol  : variable stat
    location: class foo.FormBean
                if (stat != null) stat.close();
    C:\resin-2.1.11\doc\examples\basic\WEB-INF\classes\JavaLibrary1\test\FormBean.java:59: cannot resolve symbol
    symbol  : variable conn
    location: class foo.FormBean
                if (conn != null)  conn.close();
    C:\resin-2.1.11\doc\examples\basic\WEB-INF\classes\JavaLibrary1\test\FormBean.java:59: cannot resolve symbol
    symbol  : variable conn
    location: class foo.FormBean
                if (con != null)  conn.close();
    6 errors
    BUILD FAILED (total time: 1 second)Just for a quick test, I deleted the sql exception and finally code and replaced it with a regular exception just to see what happened and got no build errors, however when I run the form I am getting an sql exception from the prepared statement, parameter out of range (1 > 0). I tried reading into prepared statements, and although I now understand their basics, I still have no idea why I'm getting this error?

  • How to automate the deletion of existing request

    Hi ,
    I want to delete the existing old requests under Cube . How to automate this process .
    Please can anybody help me .

    Hi,
    This code deletes <b>all</b> requests seuential from one particular cube determined by parameter I_Cube. Please create a variant with name of desired cube
    and a batch job processing this variant.
    REPORT  Z_DELETE_REQ_FROM_IC.
    DATA: I_T_RSICCONT TYPE TABLE OF RSICCONT.
    DATA: WA_RSICCONT  TYPE RSICCONT.
    PARAMETERS : I_CUBE TYPE RSINFOCUBE .
    IF I_CUBE IS INITIAL.
      EXIT.
    ENDIF.
    SELECT * FROM RSICCONT INTO TABLE I_T_RSICCONT WHERE
             ICUBE = I_CUBE.
    LOOP AT I_T_RSICCONT INTO WA_RSICCONT.
      CALL FUNCTION 'RSSM_DELETE_REQUEST'
        EXPORTING
          REQUEST                    = WA_RSICCONT-RNR
          INFOCUBE                   = WA_RSICCONT-ICUBE
        EXCEPTIONS
          REQUEST_NOT_IN_CUBE        = 1
          INFOCUBE_NOT_FOUND         = 2
          REQUEST_ALREADY_AGGREGATED = 3
          REQUEST_ALREADY_COMDENSED  = 4
          OTHERS                     = 5.
      IF SY-SUBRC <> 0.
    open for error-handling
      ENDIF.
    ENDLOOP.
    Please use it carefully 
    Regards
    Joe

Maybe you are looking for