Create the registry variable


I'm looking to create the registry variable, the script console and came across this post to create the simple registry variable.

However, I need to add registry values to objects of topology (FxMApplicationResult to be precise). Is there a way to do this in the script. Can you please indicate.

Thank you


To add that John has already provided.

This will allow you to query the outside object and assign the value.

She could use additional checks of types etc. but a quick way to reach of many objects to a specific value that are not part of the global default value

// Name of the Registry Variable we are going to updatedef regVarName = 'SampleRegistryVariableName'  

//Value we want to set on the returned objects.//This is based on the registry Variable Type (Double, Long, Integer, String, Boolean, Timestamp, Password)def newRegValue = 99 as Double

// Query to return the objects we want the registry value scoped toodef topologyQuery = #!Host where name like 'host%'#

// Get the Registry Service to execute the registry updatedef regSrv = server["RegistryService"]

// Get the registry variable for updatedef regVar = regSrv.editRegistryVariable(regVarName)

// Get all existing values for this registrydef values = regVar.getRegistryValues()

// Loop through the objects returned from the queryfor( obj in topologyQuery.getTopologyObjects() ) {

// create the registry value object associated to the current object in loop   newTop = regVar.createTopologyObjectRegistryValue(obj.uniqueId)

//set the value defined within newRegValue   newTop.setDefaultValue(newRegValue)

//add the topologyObjectRegistryValue to the Array of existing values   values.add(newTop)}

// Store the values within the Registry VariableregSrv.saveRegistryVariable(regVar)

Hope this helps your use and any other case.

Tags: Dell Tech

Similar Questions

  • LabVIEW 2014 app installer doesn't create files % 2Ffiles in the documents and does not create the registry entries at least as administrator

    the LabVIEW 2014 32 bit app installer doesn't create folders/files in personal documents folder and does not create the registry entries in hkey_current_user\software except as an administrator.

    It's a true statement.

    You must change the windows policies, user restrictions (not recommended), normally the register (write) access is limited to normal users.

  • Unable to create the session variable after upgrade to 11g

    Hi all

    I've updated RPD 10g for the OBIEE 11g version. Everything works fine. I can access the data when I click Show data on the table in physics. But when I tried to create the initialization block to create the session variable, I was not able to select the connection pool. Anyone have any idea why is - this? I've updated RPD and catalog using OBIEE upgrade utility. There was no error. Analyze in dashboards work correctly.


    Thank you



    Thank you

  • What is the best way to create the USER variable in BI applications?

    I just installled BI Apps and try to integrate EBS R12 with OBIEE 11 g

    We have the USER variable that is already defined in the RPD to BI applications.

    In the security context init EBS block, I need to set the USER variable, but when I would define it it... He said * 'USER' has already been defined in the variable "authentication." "" USER. "

    What is the best way to create the variable USER security context of EBS init block?

    (1) remove the existing USER variable and then set a new (in this case, all the places where the variable USER is getting used to the RPD would become < missing >)
    And told me that he shouldn't do.

    Let me know how it is possible.

    Thank you

    Disable the existing Init block and then double-click the USER variable and press NEW to create the new Init block

    Thank you

    Published by: Srini VIEREN on May 1, 2013 16:18

  • Create the global variable

    I am new to animate. Please can you tell me how I can declare a global variable?

    I try to have a single button that plays the next 10 frames, another button that plays the next 20 images. I put the event listeners for the buttons on the first image. I'm putting the code on the timeline each 10 images that works if the game has to stop. I would like to connect with some global Boolean values. The project is the html canvas.

    It must be simple. Can you help me?

    Scope of variables in canvas mode:

    myVar = 1; variable is accessible everywhere in the current page

    this.myVar = 1; variable is accessible in all the images of the current clip

    var myVar = 1; variable is accessible in the current context only

    So yes, the creation of a global variable is simple the most.

  • Looking for a method to search for rules that use a particular registry variable


    I have a series of registry variables that hold email lists effectively different specific alarms.  Is there a way to query to use what are the rules that save variables?  His most difficult when several people create rules and lists.




    One method would be to export the foglight configuration to a file using the fglcmd program. You can find the file in the registry variable that interests you. You will see references to registry variables in the section rules.

    Example of export of the foglight management server bin directory:

    C:\Quest_Software\Foglight\bin>fglcmd.bat - usr - pwd foglight cmd - foglight util:configexport f filexxx

    David Mendoza

    Foglight Consultant

  • Error display session in the report Variable

    Hi all

    I created the session variable to display the current period of closed from the AP. Variable is etup as initialization of the sage line. The default values are assigned.

    When using this variable in report filter - I get the error message below. Please let me know what mistake I make.

    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error occurred. [nQSError: 23006] The session variable, NQ_SESSION. CPG_AP_PERIOD_CLOSED, has no value definition. (HY000)
    Issued SQL: SELECT Time. "' Exercise ' saw_0 OF THE time WHERE 'Financial States - AP Transactions'. "' Exercise ' = VALUEOF (NQ_SESSION. ("' CPG_AP_PERIOD_CLOSED ') ORDER BY saw_0

    Thank you

    Session variables are associated with a users session. In other words, that it will be initialized when a user connects to OBIEE. Apparently, the session variable has not been initialized for your user. I don't know why, but you must check the file NQServer.log.

  • What is the file or registry in mozilla application that gets launch to create the APPData\Roaming\Mozilla

    I do not know what is the file that fires when you launch Mozilla Firefox for the first time to create the AppData folder is local or roaming because I want to change to a different name because I want to have 2 versions of mozilla on the same computer with the old version I want to customize to my company only web application.
    I have open all files with the extension *. JS, but none of them have the setting to create the folder I also look into each INI file in the application of mozilla firefox, but no info found more.
    I use the ORCA MSI Editor to reveal the registry keys, but I'm not sure because many of them leads to the Mozilla folder but either none for the Appdata roaming or Local.
    Please let me know if you have some tips or the files I need to edit to change this name to perhaps MOZ2015
    Thanks in advance for your answer

    I think I understand, however, the reference of the code might suggest it of where the magic happens (name records) it would make sense to find another work around?

    If we cannot find here, it is also possible to ask or ESR mailing list.

  • How to create a Global Variable through the Project Explorer

    Hello world!

    I know how to create a global variable (in a vi through the range of functions...).

    but I'm missing a way to create one via the Project Explorer.

    It's a missing feature or just this documentation (and the intuition of myself) are missing?

    It would be very convenient.

    THX for your time and hope that answers.


    Right click on my computer > new > new... > select Global Variable.

    EDIT: although I agree with Gerd (he probably wondering why you need so we can recommend a better way ), I rarely use them in easy to write once - read many applications such as security levels overall program at initialization (VER) to read later, but NOT modified.  I know it would be better to make a good class, functional Global Variable (FGV) or a motor Action (AE) but globals ARE practical and safe IF used wisely.

  • How to create a Subscriber variable to the network &amp; OnDataUpdate for Variant data type?

    Looking at the example C:\Documents and Settings\All Users\Documents\National Instruments\MStudioVS2008\DotNET\Examples\NetworkVariable\Basic\cs\Subcriber.2008, how can I create a subscriber to the network variable and OnDataUpdate for Variant data types?

    All tracks will be useful. Thank you.

    I solved it by using the correct data type in .NET, for example an sbyte to CVIInt8.

  • How to create a new folder in the registry.

    I'm following the instructions to solve my problem in the installation of the USB modem byArticle ID: 883356 .

    When I opened the registry there is no folder "Modem" under "Services" of the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Modem subkey.

    So I can't do the solution needed to solve my problem of installing a USB modem.

    Help, please.

    Simply create it. Right-click on the key Services and choose new - key and rename
    It (right click - renaming).
    "Daddybear20" wrote in message news: 4cd2203e-ed7b-4efe-9e42-5174c7957d4e...
    > I'm following the statement to solve my problem in USB modem
    > throughArticle installation ID: 883356.
    > When I opened the registry there is no folder "Modem" under "Services" of
    > the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Modem subkey.
    > So I can't do the solution needed to solve my problem of installation of a
    > USB modem.
    > Please help.
  • create the simple register variable in Foglight 5.6.4 AND 5.5.8


    is it a short and simple piece of code to simply create a register variable named "numero_fichier" with the value "60" in full?

    It's certainly very simple... but not for me ;)

    Thank you very much



    I just ran this script in the script console.

    He created the variable and filled both global default and extended by default to the integer value 60.

    varname = "numero_fichier";

    regValue = 60;

    topsvc = server.get ("TopologyService");

    type = topsvc.getType ("TopologyObject");

    Regsvc = server.get ("RegistryService");

    regsvc.createRegistryVariable (varname, java.lang.Integer)

    regsvc.saveRegistryValue (regsvc.createRegistryValue (varname, regValue));

  • Failed to create the required registry key: vmware, Inc. error: 2 when installing the vm 7 wareinwin and the installation of any software of a few errors in registry pls help...

    Failed to create the required registry key: vmware, Inc. error: 2 when installing the vm 7 wareinwin and the installation of any software of a few errors in registry pls help...

    Hello mnaveen.kumar,

    Search the registry to see if this key was created. Sometimes, the installation program does not have permission to this key.


    You can try to manually create the key to see if this will help.

    Please reply back and let us know if this can help.


    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think

  • What should I do after getting error messages trying to change the registry to solve a problem of inability to create folders

    I copied a file titled "windows registry editor version 5.00" to solve the problem of records but when running, got an error message that says: "cannot import c:\...\NewFolder.reg: not all data was successfully written to the registry." some keys are open by the system or other processes.

    I've eliminated the "windows registry editor version 5.00" header then tried to run again.

    This time, I got an error saying "cannot import c:\...\NewFolder.reg: the specified file is not a registry script." You can only import files from binary registry within the registry editor. »

    What should I do now?

    I can't yet create a folder. This problem started after I had the help of Norton to eliminate a problem of phishing.

    Did you use one of them? The first is a zip file that does all the work for you.
    You have installed chrome? It's looking like a recent update of chromium may be the cause. Here are two patches.

    How to remove and restore the default context Menu items 'New' in Windows 7 and Windows 8
    Tip: When you save the text in Notepad, the default file format is .txt. Replace all files.
  • "The service user profile Service has no logon. User profile cannot be loaded. "and new users are not created in the registry, that is it please help

    I am trying to create new users on my computer windows 8 but it dosent open, I get a message "the service user profile service has no logon. User profile cannot be loaded. "and new users are not created in the registry, that is it please help

    I had the same problem.  Get the «user profile service has no user of logan...» "I tried everything I found online and nothing has worked.  Then I reinforced to the back and looked at the whole picture.  It turns out that it wasn't a computer after all problem but a question of the user.  Under folder C:/users/default in the end I managed to delete all subfolders except appdata.  So when you went to create a new user he could not find the correct files to copy to the new profile to store information in.  To ensure that I had a correct records back into the C:/users/default folder, I went on another computer and just copy paste the new default folder from another computer in the folder users on my computer and erased mine.  Of course I could create my comments and new users account once again.  Finally.

Maybe you are looking for

  • Pavilion xt 973: Pavilion it 3d

    I have an old xt pavilion 973 who died... He needs a recovery? disc where can I gey one... Thank you

  • How can I use iCloud for backup entire folders?

    I see that I can drag and drop files in iCloud.  I need a way to copy entire folders as a backup device. I don't have to see them on more than one device necessarily, but want to ensure that they are saved if Mac fails What is the best way to do it?

  • Google Maps 5.0 update

    I was wondering if someone has already taken the plunge and updated Google maps 5.0 yet? I was about to and noticed a few negative comments that set me off * Slow interface * Problems find location + rerouting I have not think is should be a problem

  • Lenovo recovery media does not a recovery media

    My T430 has a problem with the creation of the product recovery discs. It doesn't give me any options of recovery media. The drop down meny is totally empty. By clicking on "Refresh" does nothing. I updated the software and restarted several times, w

  • is it posible to get the iteration on a Subvi?

    Hello is it possible to get the real iterationcycle of a forloop or whileloop on a Subvi in vi? How could I solve this problem? Chris