Define variable in server context

Hello !
Where I work we have 3 environnements: developpement, integration and production on 3 servers.
For each War we package, we must include a different configuration file that points to a specific property file on a different place on each server.
Can we define a common variable on each server and access it through our application ?
Thanks

In 10.3, there is the concept of a generic file override. If your app is
using getResource to load the property file, then you can supply a different
property file as a subdirectory of the plan directory and it will be loaded
instead of the property file inside the war.
<az azf> wrote in message news:[email protected]..
Hello !
Where I work we have 3 environnements: developpement, integration and
production on 3 servers.
For each War we package, we must include a different configuration file that
points to a specific property file on a different place on each server.
Can we define a common variable on each server and access it through our
application ?
Thanks

Similar Messages

  • Want to read a Query list of results into a defined variable "as Collection" for later use (ie create reports)

    The following code works great (Functions Main and OpenThisFile ) to select files from a folder and read into defined variable "FileToProcess As Collection" (I guess then renamed fil) and use that list of files to run through
    an import process defined in a function "StartMe". 
    What I want to do is read the results of a query into a similar collection variable and then use in a function like "StartMe" to run a series of reports.  The functions to do that below (PrintCKListTables and ReadQueryOfSDGs) currently
    don't work erring out "For Each s In .selectedQuery".  I would appreciate any help guiding me how to fix function
          ReadQueryOfSDGs() As Collection
    Thank you very much in advance for your help!
    Public Function Main()
    Dim FilesToProcess As Collection, fil
    Dim initialFilePath As String
    initialFilePath = CreateObject("WScript.Shell").specialfolders("C:\temp")
    Set FilesToProcess = OpenThisFile(initialFilePath)
    For Each fil In FilesToProcess
    StartMe fil
    Next fil
    End Function
    Public Function OpenThisFile(initialFilePath As String) As Collection
    'Requires reference to Microsoft Office 12.0 Object Library.
    Dim fDialog As Office.FileDialog
    Dim varFile As Variant
    'Clear listbox contents.
    'Me.FileList.RowSource = ""
    'Set up the File Dialog.
    Set fDialog = Application.FileDialog(msoFileDialogFilePicker)
    With fDialog
    'Allow user to make multiple selections in dialog box.
    .AllowMultiSelect = True
    .InitialFileName = initialFilePath
    'Set the title of the dialog box.
    .Title = "Please select one or more files"
    'Clear out the current filters, and add our own.
    .Filters.Clear
    .Filters.Add "XML Files", "*.XML"
    'Show the dialog box. If the .Show method returns True, the
    'user picked at least one file. If the .Show method returns
    'False, the user clicked Cancel.
    If .Show = True Then
    'Loop through each file selected and add it to the list box.
    Dim s
    Set OpenThisFile = New Collection
    For Each s In .SelectedItems
    OpenThisFile.Add s
    Next s
    Else
    MsgBox "You clicked Cancel in the file dialog box."
    NotContinue = True
    End If
    End With
    End Function
    Public Function PrintCkListTables()
        Dim FilesToProcess As Collection, fil
        Dim ListSDGs As String
        Set FilesToProcess = ReadQueryOfSDGs(ListSDGs)
        For Each fil In FilesToProcess
            fNameExportpdfReport (fil)
        Next fil
    End FunctionPublic Function ReadQueryOfSDGs() As Collection       DoCmd.OpenQuery "y_qs_DataIn_All_SDGList"
           Dim s
           Set ReadQueryOfSDGs = New Collection
           For Each s In .selectedQuery
           ReadQueryOfSDGs.Add s
           Next s
    End Function

    There are a few problems here. In function PrintCkListTables() you define a string variable ListSDGs and then use that as an argument to the function ReadQueryOfSDGs(), but ReadQueryOfSDGs() as written does not accept any arguments.  It's also not clear
    what ListSDGs represents...a list of files, names of queries? Also, the line
    For Each s In .selectedQuery in
    ReadQueryOfSDGs()
    references something called .selectedQuery which is undefined. 
    Is it that you want ReadQueryOfSDGs() to loop through the records returned by a query and add a field from each record to a collection?  If so, something like the following might better serve you:
    Public Function ReadQueryOfSDGs() As Collection
        Dim C As New Collection
        Dim rst As DAO.Recordset
        Set rst = DBEngine(0)(0).OpenRecordset("y_qs_DataIn_All_SDGList", dbOpenForwardOnly, dbReadOnly)
        Do Until rst.EOF
            C.Add rst!MyField ' where MyField is the field in y_qs_DataIn_All_SDGList you want to add to your collection
            rst.MoveNext
        Loop
        rst.Close
        Set rst = Nothing
        Set ReadQueryOfSDGs = C
    End Function

  • To define variables for all pages

    How can one define variables which can be accessed from all pages. 'Public' does not do it

    Hello,
    Is your query related to Project Server PWA?
    Thanks
    Paul
    Paul Mather | Twitter |
    http://pwmather.wordpress.com | CPS

  • Accessing a variable from different context

    Hai all,
    I want to access a servlet that is defined outside of my context(application),
    I have two contexts that r running under tomcat server.
    Please help me

    Then you need to create a URLConnection to that servlet. Eg :
    URLConnection connection = new URL("http://localhost:8080/Test/TestServlet").openConnection();
    [/code[                                                                                                                                                                                                                                                                                                                                                       

  • Any possibility to define variable limits for alarms

    Hi,
    I need to define variable LO and HI limits for alarms. That is, these LO and HI limits should be linked to different tags.
    In the tag configuration editor, we can only give constant values to the LO and HI limit fields. Is there a way to associate tags to these fields, instead of constant values?

    Hi helene.
    My implementation to this was to use the tag Attribute VI's and have a seperate program that checks that the current HI or LO value with that of a tag storing my HI set point and another Tag Storing my LO Set point. If there is a diffrence in value, the appropriate alarm level gets changed to match the current value.
    How are you changing your values? I have a slider on the front panel that triggers and event on change to update the tag.
    However a point you may or may not have noticed is that if you change the LO or HI value using the Tag Attribute VI's on one computer, this change is not carried across to others. You will have to programatically run the update program mentioned above continuously on every computer running the system
    This is a very large mine field that you will have to take extra care of. Think about what would happen on startup of the various clients, will there be a point when your computers fall out of sink with each other? will the current alarm set points be reatined when the computer is shut down and restarted?
    I sent a very long time coming up with some solutions for all these problems. Which way you chose to do this depends on:
    Number of computers
    Frequency of limits changes
    Number of tags you wich to change
    Whether you system is server client or multi server based.
    Let me know If you want to know more.
    Later
    Phil McD

  • Error While defining the content server

    Dear Folks,
    We are trying to define the content sever in our sever. It is required for integration of SAP with documentum. We are trying to define in below path.
    Cross-Application Components - Document Management - General data - Settings for storage systems - Maintain storage system -
    It already have DMS_C1 content repository with storage type R/3 database. We are creating a new content repository with storage type HTTP Content Server. We are giving below inputs.
    Vesion No. 0045, HTTP Server - (My machine's FQDN and port is 8080), HTTP script as - sap/bc/contentsever/300.
    After giving above inputs, if I click on test connection, I m getting error as Error in HTTP Access:IF_HTTP_CLIENT -> RECIEVE1 ICM_HTTP_CONNECTION_FAILED.
    If I define the HTTP content sever as sap-qas.vsnl.co.in (i.e. My quality servers host name) it works fine i.e. connection test goes OK. Does any one know how we can define the content server and what all steps required for the same?
    Thanks and Regards,
    Kedar

    Hi Kedar,
    YOu have to provide the details as fallows
    Storage type : HTTP content server
    Version no. : 45 (based on the content server version)
    HTTP server : <content server IP>
    Port Number of content server : 1090 (default port)
    HTTP Scrip : ContentServer/ContentServer.dll
    Once after these details you can check
    Also install the DBM gui in your local PC and add this content servers database (if the content server is on MAX DB) then you need to star it from the console or else use the command to start it once after the installation.
    /sapdb/programs/bin/dbmcli -d <SID> -u control,plmcont db_state - to check the database status
    /sapdb/programs/bin/dbmcli -d <SID> -u control,plmcont db_online - to start the database
    Thanks,
    Chaitanya

  • How to define variables in toad sql script editor - newbie

    I have just pull out the script of a Function and want to run it on toad SQL editor.
    I am little bit confused how to define the VARIABLEs here in toad SQL editor to run my script.
    SELECT
    NVL(SUM(debit), 0) - NVL(SUM(credit), 0)
    INTO l_accountBalance
    FROM
    GLP_VoucherMaster vm
    INNER JOIN GLP_VoucherDetail vd ON vm.GLP_VoucherMaster_ID = vd.GLP_VoucherMaster_ID
    INNER JOIN GLP_ChartOFAccounts coa ON vd.GLP_ChartOfAccounts_ID = coa.GLP_ChartOfAccounts_ID
    WHERE
    vm.isActive = 'Y' AND vd.isActive = 'Y'
    -- *** how to define variables in toad sql script editor ***
    AND vm.voucherDate < p_cDate
    AND coa.AccountCode LIKE p_accountCode || '%';
    Thanks
    w\

    Just prefix with a colon (:)
    SELECT   NVL (SUM (Debit), 0) - NVL (SUM (Credit), 0)
      INTO   L_accountbalance
      FROM           Glp_vouchermaster Vm
                 INNER JOIN
                     Glp_voucherdetail Vd
                 ON Vm.Glp_vouchermaster_id = Vd.Glp_vouchermaster_id
             INNER JOIN
                 Glp_chartofaccounts Coa
             ON Vd.Glp_chartofaccounts_id = Coa.Glp_chartofaccounts_id
    WHERE       Vm.Isactive = 'Y'
             AND Vd.Isactive = 'Y'
             AND Vm.Voucherdate < :P_cdate
             AND Coa.Accountcode LIKE :P_accountcode || '%';
    /:p

  • Using user defined variables in SAP BPC 7.0 NW

    Hi,
    I am using BPC 7.0 SP2 NW version. I want to do some calculatioins and/or comparision in the script logic by using user defined variables.
    For Ex: I want to assign the property TIMEID of TIME dimension to a variable and then use this variable in my IIF statement.
    I have tried a lot but not getting any solution.
    Can anyone guide me in how to use user defined variables in Script Logic.
    Your valuable reply is appreciated.
    Thanks & Regards
    Manoj Damle

    Hi,
    Thanks for the valuable reply.
    But i want to define variables in the Script Logic and not in the Data Manager.
    The scenario is like this:
    I want to check the value of the DUMMYACC1 member of GL_ACCOUNT dimension with a constant and depending on the condition i want to update a user defined variable. This variable will further be used in the *SELECTCASE statement for decision making.
    The Code is as follows:
    *XDIM_MEMBERSET COMP_CODE = COMP_CODE_1
    *XDIM_MEMBERSET BUS_AREA = BUS_AREA_1
    *XDIM_MEMBERSET VERSION = VERSION_1
    *XDIM_MEMBERSET CURRENCY = AUD
    *XDIM_MEMBERSET DATASRC = DATASOURCE_1
    *XDIM_MEMBERSET GL_ACCOUNT = SALESREVENUE,PRICE,QUANTITY,DUMMYACC1
    *XDIM_MEMBERSET TIME=2009.MAY,2009.JUN
    *XDIM_MEMBERSET CUSTOMERCATEGORY = CUSTOMER_CAT_1
    *XDIM_MEMBERSET PROFIT_CTR = PROFIT_CTR_1
    *XDIM_MEMBERSET SEGMENT = SEGMENT1
    *XDIM_MEMBERSET MEASURES = PERIODIC
    *FUNCTION PRO(%VAR1%,%VAR2%)
        [%VAR1%].CURRENTMEMBER.PROPERTIES("%VAR2%")
    *ENDFUNCTION
    *FOR %GL_ACC% = DUMMYACC1
        *FOR %CV_TIM% = 2009.MAY,2009.JUN
            #CUR_MTH = IIF(([GL_ACCOUNT].[%GL_ACC%],[TIME][%CV_TIM%]) = 1.,1,NULL)
        *NEXT
    *NEXT
    *SELECTCASE #CUR_MTH
    *CASE 1
        #CURRENTMTH = PRO(TIME,TIMEID)
    *ENDSELECT
    The errors which system gives is:
    1. Duplicate formula found
    2. Invalid MDX statement
    3. #CUR_MTH & #CURRENTMTH is not a valid member
    Please give your valuable suggestion.
    Thanks and Regards
    Manoj Damle

  • How To guide...for Flat File upload for User-Defined variables

    Has anyone got link to the guide that describes how to do a flat file upload for populating User-Defined Variables ?
    Any assistance will be appreciated.
    Uche

    SAP BW Business Planning and Simulation "How To" Guides
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/ab9fd590-0201-0010-2590-be78eb70015c
    How to Upload User-Specific Variable Selections in BW-BPS
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/how to upload user-specific variable selections in bw-bps.pdf
    this is what you are looking for ?
    Message was edited by: Murali

  • How to define variable for value range in Bex Query?

    Hi
    How to define variable for Keyfig. value range on runtime like characteristic in Bex Query?
    Example: On runtime user select one of the following condition:
    1)User want to those records where amount is greater than $1000
    2)User want to those records where amount is greater than $1000 and less than $5000
    3)User want to those records where amount is greater than and equal to $1000

    Hi ,
    Need to Use exceptions & conditions for this scenario's  & need to create variable for exceptions based on condtions.
    Below document provides steps how to make selections at run time for a kfg.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/60b33a28-dca2-2d10-f3b2-d2096b460b1e?QuickLink=index&overridelayout=true&48842368468641
    Regards,
    Seshu.P

  • Db connection from content server context through JSP

    Hi All,
    Can anyone tell me how to get ucm db connection from Content Server context through JSP file? Thanks.
    Joe
    FMW Team,iTech,Shenzhen

    Start by getting a sample JSP here:
    http://www.corecontentonly.com/Blog/UsingJavaServerPagesWithContentServerAndAnExample
    Then, you can use the Workspace object in the jsp to create resultsets from SQL.
    String sql = "SELECT * FROM REVISIONS";
    // Execute the sql
    rs = objWorkspace.createResultSetSQL(sql);
    drs = new DataResultSet();
    drs.copy(rs);
    for (drs.first(); drs.isRowPresent(); drs.next())
    String dDocName = ResultSetUtils.getValue(drs, "dDocName");
    System.out.println(dDocName);
    }

  • How can i see the code of SAP Exit for SAP Defined Variables

    Hi,
       It's very Urgent! How can i see the Source Code of SAP Provided Variables. I need to write code for User Defined Variables. please help me. It's very Urgent.
    Thanks in Advance.
    Nagesh.

    hi Nagesh,
    sample code for variable exit,
    there is 'how to' docs, can't see your email address.
      DATA: L_S_RANGE TYPE RSR_S_RANGESID.
      DATA: LOC_VAR_RANGE LIKE RRRANGEEXIT.
      CASE I_VNAM.
      WHEN 'CUMMONTH'.
        IF I_STEP = 2.                                  "after the popup
          LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE
                  WHERE VNAM = 'MONTH'.
            CLEAR L_S_RANGE.
            L_S_RANGE-LOW      = LOC_VAR_RANGE-LOW(4)."low value, e.g.200001
            L_S_RANGE-LOW+4(2) = '01'.
            L_S_RANGE-HIGH     = LOC_VAR_RANGE-LOW.   "high value = input
            L_S_RANGE-SIGN     = 'I'.
            L_S_RANGE-OPT      = 'BT'.
            APPEND L_S_RANGE TO E_T_RANGE.
            EXIT.
          ENDLOOP.
        ENDIF.
      ENDCASE.

  • How to create User Defined Variables in Procurement Contract 12.1.3

    Hi,
    We are using Procurement Contract 12.1.3. As per our business requirement while creating contract template we need to use many variables which are not available in 'System Defined' variable list. Please guide us with some samples (step by step) how to create the 'User defined' variables.
    Regards,
    Prabhu

    Hi Prabhu,
    Did you get the setps how to create user defined variables in Procurement contracts? if so please share me the setp by step flow.
    Prakash

  • Sequence Quiz Using User Defined Variables - Can See Underlying Variable Name On Move

    I have just tested using 1 slide to capture several user defined variables and the next slide to insert those variables as options in a sequence quiz slide.
    This works but as soon as I grab an object to begin sequencing them the underlying variable name shows up alongside the variable content.
    Am wondering if I am attempting something that shouldn't be possible in Captivate and / or if there is a fix?
    Thanks

    Sure, I'm using Captivate 8. On a test project I've created:
    a slide with 2 text entry boxes, their contents are stored in variables
    another slide with a sequence question (using the native captivate question slide)
    The labels on the 2 sliders on the question slide use the variables from the previous slide.
    This works, so if the variables are as follows:
    $$data_sequence1$$ - "blah blah blah"
    $$data_sequence2$$ - "blah"
    The labels on the sliders on the sequence question will be "blah blah blah" and "blah".  as intended.
    The issue is when I click one of the sliders to drag it to sequence the variable name will flash up on screen. So if I touch the slider with the label "blah blah blah" $$data_sequence1$$ will flash up on screen.
    I have other slides on there but these are the two related to this question. I haven't fully published the project I've previewed it.

  • User-defined variable in selection variant - doesn't work?

    Hello,
    Anyone had any experience of using user-defined variables (type B) in a selection variant? I can't get this to work in 4.7 or ECC 6.0. Seems like a bug - there's no way to specify the name of the variable. The theory behind their use is fine, but I wonder if anyone has successfully used them?
    Thanks,
    Chris.

    In an ECC 5 system, I can get to these showing if I'm in a report selection screen and I use the "Goto > User variables" (or Ctrl-F6) option... but note that it will only show the menu option if there are report parameters that have a PID on them and where the PID is defined in table TUVID (see note 144459).  That said, personally I've only used the "T" option and maintained system wide values in table TVARVC.
    Jonathan

Maybe you are looking for

  • Printing ICAL

    I am very new to ical and wanted to print the month for the family to view. The calender printed fine, except in front of every entry there was a time that I didn't enter. How do I get rid of these times? Thanks for any help given by fellow apple use

  • Unlock Purchase Requisitions

    Hi, Does anyone know how to unlock a purchase requistion after it has been partially converted? I have a situation where MRP has created a purch req, but the business have split the PO (to cover different business areas). However, in the stock requir

  • Help using "WHERE col_N IN (?,?,?)" clause in SQLJ stmnt

    Hi All, I need assistance with a SQLJ SELECT statement that includes a 'WHERE <colN> IN (<value list>) clause with <value list> consisting of a set of host variables. Unfortunately, I can find NO reference to such a clause - spefically, a WHERE that

  • Need adobe flash for power book g4 OS X 10.5.8

    need adobe flash for power book g4 OS X 10.5.8

  • Find File By Name

    Just upgraded to SL and was disappointed to find the the apple-F dialog box still defaults of find file by content. My gripe is that if you type the word "microsoft" for example, files beginning with this word appear well, and I mean WELL, down the l