Skip to Content
avatar image
Former Member

Dynamically reloading a Global proerty in xMII

I would like to reload a Global property dynamically reading from a config file whenever needed. To achieve this, I created a transaction 'ConfigLoader.trx'. this transaction was checking if this global property is already loaded and if not loaded, read the contents from the config file and assign it to this global property. After assigning this new value to the Global property, I am logging this global proerty. when I run the transaction, I see the new value in the log after the assignment.

But it looks like the new Global property value is available only inside the current transaction. Other transaction (or when you rerun the same transaction second time) dont see this newly assigned value.

Is it a bug in the xMII?

Thanks,

Sara

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Mar 07, 2007 at 05:36 AM

    Hi Saramani,

    This you can not call as bug at all !!! You are saying that you are storing the value in the global property variable dynamically. Let me explain this practically.. Whenever you create the global variable in the transaction, after saving it will store inside of the global properties file location in the server. If you assign this value it will not store that one in the file. It will also store in the cache only. Whatever there in the Global property tab you saved at first it will only be there even after execution of the transaction.

    For your problem i think you need to change the global property file in the server, but it is not at all feasible. I think it is better to redesign your solution.

    Thanks,

    Rajesh.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 06, 2007 at 07:19 PM

    I'm not sure what context you are trying to apply this to so maybe a bit more info is required. However, GLOBAL's are meant to be defined prior to any execution and on a manual basis so they are available to all transactions. Any type of parameter modification should be declared within the Transaction-->Properties.

    For what you are trying to do, it would be a bit simpler to store whatever value you desire in a session variable using the following:

    <b>document.iGrid.setPropertyValue(PROPNAME,PROPVALUE);</b>

    • Note: you can replace the iGrid with any other applet type on your page or simply create a 1x1 pixel applet to allow this property access.

    Once created you can call that session property with the following:

    <b>document.iGrid.getPropertyValue(PROPNAME)</b>

    From here you can pass this value to any transaction you may call or any other query you are working with.

    I hope this helps. Thanks!

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Alin,

      Yes, if I have something like session, I could cache this config file contents into it. But the problem is I don't have Web GUI. I have only transactions which are used for the integration.

      I thought that Global property will be the one, can be used for storing the cached values and update this cached value during runtime whenever needed.

      Thanks,

      Sara