Getting list of wired inputs to a vi

Is there any method to find out which inputs to a VI are wired? The intention is to execute differently if an input is connected. An example of what I am talking about is the "file dialog.vi" in the "advanced file functions" palette, labview 7.1.1.
Thanks,
Venkat

hi Venkat,
As far as I know, there is No method available to find which inputs are wired in a VI.
But U can design Ur own polymorphic VI with diff inputs wired & create cases where U ve match the Type Specifier of the incoming (or called) VI & do the execution accordingly. This is dynamically loading  of the VIs.
Can U come a bit more elaborate on the necessity & reason behind Ur question ?
I think I'm still not completely clear of Ur query...
Can U attach some of Ur code so that anybody can give U a good suggestion ?
Regards,
- Partha
LabVIEW - Wires that catch bugs!

Similar Messages

  • Get list of classes present in an applet's Jar file?

    I have an applet for drawing diagrams, which is bundled in a jarfile together with classes for each type of element in the drawing (e.g. a class for drawing 2-input NAND gates, a class for J-K flip-flops, and so on). When I add a new type of drawing element I have to modify the applet to add the new class to the applet's "Insert" menu to allow the element to be inserted. What I want to do is to search the jarfile containing the applet for any classes derived from DrawingElement and add them automatically to the Insert menu when the applet is inited. I presume this would require using getClass().getClassLoader() to get the class loader that read the JAR file, but from there it would seem I need to know the name of the resource to load. Is there a way of browsing the list of resources in the JAR file?

    AndrewThompson64 wrote:
    That 'modify the applet' is not strictly necessary. The list of menu items and classes might be passed to the applet as applet parameters, or as a property file or XML (or whatever) that defines the available elements.I could do this -- I'm just trying to avoid getting the list out of step with the contents (or if you prefer, I'm just being lazy!).
    Is there a way of browsing the list of resources in the JAR file?Yes and no. You might try this general strategy (untested).
    1) Gain an URL to a resource in the Jar in which the plug-ins exist.
    2) Parse that URL for everything before the '!' symbol to get an URL for the Jar itself.
    3) Get an InputStream from the Jar via URL.openStream().
    4) Get a ZipInputStream by wrapping the InputStream.
    5) Iterate the ZipEntry(s) to identify classes in the correct package, and store them in a collection of some type.
    6) Iterate the collection and check each one for extending DrawingElement, using reflection.
    I am guessing step 6 will require the applet to be trusted.Sounds plausible, and I'll give it a whirl. However, I hadn't thought about the "trusted" bit of this; maybe I can just create new instances and cast to DrawingElement, ignoring any that throw exceptions. I'll have to give it a go and see what happens.
    BTW - once you have the right classes, how do you get the screen name of them? Is the name defined in one of the attributes of a DrawingElement? What prevents name clashes?Plan A: I have a getIdentification() method that returns a string identifying the element, but I have to keep this unique the hard way (by hand).
    Plan B: use the class name with some prettification (e.g. have a class _2_input_NAND_gate which gets displayed as "2 input NAND gate") so that the compiler does the work of keeping it unique. Not sure I like this, though.
    Many thanks for your help.

  • Get List running all the time in Yosemite

    For the last two days I have had a gear spinning in Yosemite menu bar performing a function named Get List.  What is going on?

    I reran Etrecheck today while the getlist script was running to see if anything else might appear.  Also, I uninstalled CleanMyMac.  Here are the results:
    EtreCheck version: 2.1.5 (108)
    Report generated December 18, 2014 at 07:42:11 EST
    Click the [Support] links for help with non-Apple products.
    Click the [Details] links for more information about that line.
    Click the [Adware] links for help removing adware.
    Hardware Information: ℹ️
        iMac (27-inch, Late 2013) (Verified)
        iMac - model: iMac14,2
        1 3.5 GHz Intel Core i7 CPU: 4-core
        32 GB RAM Upgradeable
            BANK 0/DIMM0
                8 GB DDR3 1600 MHz ok
            BANK 1/DIMM0
                8 GB DDR3 1600 MHz ok
            BANK 0/DIMM1
                8 GB DDR3 1600 MHz ok
            BANK 1/DIMM1
                8 GB DDR3 1600 MHz ok
        Bluetooth: Good - Handoff/Airdrop2 supported
        Wireless:  en1: 802.11 a/b/g/n/ac
    Video Information: ℹ️
        NVIDIA GeForce GTX 780M - VRAM: 4096 MB
            iMac 2560 x 1440
    System Software: ℹ️
        OS X 10.10.1 (14B25) - Uptime: one day 15:50:19
    Disk Information: ℹ️
        APPLE HDD ST1000DM003 disk0 : (1 TB)
            EFI (disk0s1) <not mounted> : 210 MB
            Macintosh HD (disk0s2) / : 999.35 GB (752.72 GB free)
            Recovery HD (disk0s3) <not mounted>  [Recovery]: 650 MB
    USB Information: ℹ️
        Apple Inc. FaceTime HD Camera (Built-in)
        Apple Inc. BRCM20702 Hub
            Apple Inc. Bluetooth USB Host Controller
        Hewlett-Packard HP Color LaserJet CM1017
    Thunderbolt Information: ℹ️
        Apple Inc. thunderbolt_bus
    Gatekeeper: ℹ️
        Mac App Store and identified developers
    Kernel Extensions: ℹ️
            /System/Library/Extensions
        [loaded]    com.Cycling74.driver.Soundflower (1.6.6 - SDK 10.6) [Support]
        [not loaded]    com.hField.WiFire.ZD1215 (1.0.14) [Support]
        [loaded]    com.logmein.driver.LogMeInSoundDriver (1.0.3 - SDK 10.5) [Support]
        [not loaded]    com.markspace.iokit.IOMissingSyncMassStorage (199) [Support]
        [not loaded]    com.markspace.missingsync.palmos.classicseize (1) [Support]
        [not loaded]    com.palm.ClassicNotSeizeDriver (3.2.1) [Support]
        [not loaded]    com.rim.driver.BlackBerryUSBDriverInt (0.0.39) [Support]
        [not loaded]    com.rim.driver.BlackBerryUSBDriverVSP (0.0.39) [Support]
    Startup Items: ℹ️
        HP USB EWS Gateway: Path: /Library/StartupItems/HP USB EWS Gateway
        MissingSyncMounting: Path: /Library/StartupItems/MissingSyncMounting
        ParallelsTransporter: Path: /Library/StartupItems/ParallelsTransporter
        Startup items are obsolete in OS X Yosemite
    Launch Agents: ℹ️
        [loaded]    com.hp.help.tocgenerator.plist [Support]
        [running]    com.hp.productresearch.plist [Support]
        [loaded]    com.oracle.java.Java-Updater.plist [Support]
        [running]    com.rim.BBLaunchAgent.plist [Support]
    Launch Daemons: ℹ️
        [failed]    com.adobe.fpsaud.plist [Support]
        [loaded]    com.adobe.versioncueCS3.plist [Support]
        [running]    com.hfield.WiFireAgent.plist [Support]
        [loaded]    com.microsoft.office.licensing.helper.plist [Support]
        [loaded]    com.oracle.java.Helper-Tool.plist [Support]
        [loaded]    com.oracle.java.JavaUpdateHelper.plist [Support]
        [running]    com.rim.BBDaemon.plist [Support]
    User Launch Agents: ℹ️
        [running]    .dat0939.000 (hidden) [Support]
            /System/Library/CoreServices/Folder Actions Dispatcher.app/Contents/MacOS/Folder Actions Dispatcher /System/Library/CoreServices/Folder Actions Dispatcher.app/Contents/MacOS/Folder Actions Dispatcher
        [invalid?]    .dat1a10.000 (hidden) [Support]
        [loaded]    com.adobe.ARM.[...].plist [Support]
        [loaded]    com.facebook.videochat.[redacted].plist [Support]
        [loaded]    com.google.keystone.agent.plist [Support]
        [not loaded]    com.iLike.Agent.plist [Support]
        [loaded]    com.logos.LogosIndexer.plist [Support]
        [running]    com.microsoft.LaunchAgent.SyncServicesAgent.plist [Support]
        [running]    ws.agile.1PasswordAgent.plist [Support]
    User Login Items: ℹ️
        AirPort Base Station Agent    Application (/System/Library/CoreServices/AirPort Base Station Agent.app)
        Backup Scheduler for Time Machine    Application (/Applications/Time Machine Backup Scheduler.app)
        AdobeResourceSynchronizer    Application (/Applications/Adobe Acrobat 8 Professional/Adobe Acrobat Professional.app/Contents/Support/AdobeResourceSynchronizer.app)
        Printer Pro Desktop    Application (/Applications/Printer Pro Desktop.app)
    Internet Plug-ins: ℹ️
        DirectorShockwave: Version: 11.0.3r470 [Support]
        Default Browser: Version: 600 - SDK 10.10
        Flip4Mac WMV Plugin: Version: 3.2.0.16   - SDK 10.8 [Support]
        Musicnotes: Version: 1.17.2 [Support]
        OfficeLiveBrowserPlugin: Version: 12.3.5 [Support]
        AdobePDFViewerNPAPI: Version: 11.0.09 - SDK 10.6 [Support]
        FlashPlayer-10.6: Version: 16.0.0.235 - SDK 10.6 [Support]
        Silverlight: Version: 4.0.60129.0 [Support]
        Flash Player: Version: 16.0.0.235 - SDK 10.6 [Support]
        iPhotoPhotocast: Version: 7.0 - SDK 10.8
        QuickTime Plugin: Version: 7.7.3
        SharePointBrowserPlugin: Version: 14.4.6 - SDK 10.6 [Support]
        AdobePDFViewer: Version: 8.0.0 [Support]
        NPExView: Version: Unknown [Support]
        JavaAppletPlugin: Version: Java 8 Update 25 Check version
    User internet Plug-ins: ℹ️
        fbplugin_1_0_1: Version: Unknown [Support]
        fbplugin_1_0_3: Version: Unknown [Support]
    Safari Extensions: ℹ️
        1Password [Installed]
        OpenIE [Installed]
    User iTunes Plug-ins: ℹ️
        Flash Player: Version: 9.0.159.0 Mismatch! Adobe recommends 16.0.0.235
    3rd Party Preference Panes: ℹ️
        3ivx MPEG-4  [Support]
        Adobe Version Cue CS3  [Support]
        Citrix ShareFile Sync  [Support]
        Flash Player  [Support]
        Flip4Mac WMV  [Support]
        Java  [Support]
    Time Machine: ℹ️
        Skip System Files: NO
        Mobile backups: OFF
        Auto backup: NO - Auto backup turned off
        Volumes being backed up:
            Macintosh HD: Disk size: 999.35 GB Disk used: 246.62 GB
        Destinations:
            Data [Network]
            Total size: 2.00 TB
            Total number of backups: 3
            Oldest backup: 2014-09-30 07:50:32 +0000
            Last backup: 2014-10-02 13:38:07 +0000
            Size of backup disk: Adequate
                Backup size 2.00 TB > (Disk used 246.62 GB X 3)
    Top Processes by CPU: ℹ️
             8%    WindowServer
             2%    Finder
             2%    ScriptMonitor
             1%    Microsoft Outlook
             0%    fontd
    Top Processes by Memory: ℹ️
        996 MB    firefox
        275 MB    mds_stores
        206 MB    softwareupdated
        172 MB    WindowServer
        103 MB    mds
    Virtual Memory Information: ℹ️
        26.59 GB    Free RAM
        3.68 GB    Active RAM
        2.16 GB    Inactive RAM
        1.91 GB    Wired RAM
        6.32 GB    Page-ins
        0 B    Page-outs
    Diagnostics Information: ℹ️
        Dec 17, 2014, 03:08:33 PM    /Users/[redacted]/Library/Logs/DiagnosticReports/InkWidgetTool_2014-12-17-15083 3_[redacted].crash
        Dec 17, 2014, 03:08:23 PM    /Users/[redacted]/Library/Logs/DiagnosticReports/InkWidgetTool_2014-12-17-15082 3_[redacted].crash
        Dec 17, 2014, 08:02:20 AM    /Library/Logs/DiagnosticReports/DesktopServicesHelper_2014-12-17-080220_[redact ed].cpu_resource.diag [Details]
        Dec 17, 2014, 12:03:10 AM    /Library/Logs/DiagnosticReports/LogosIndexer_2014-12-17-000310_[redacted].cpu_r esource.diag [Details]
        Dec 16, 2014, 03:52:27 PM    Self test - passed
        Dec 16, 2014, 08:50:15 AM    /Library/Logs/DiagnosticReports/DesktopServicesHelper_2014-12-16-085015_[redact ed].cpu_resource.diag [Details]
        Dec 15, 2014, 10:32:16 PM    /Users/[redacted]/Library/Logs/DiagnosticReports/InkWidgetTool_2014-12-15-22321 6_[redacted].crash
        Dec 15, 2014, 10:32:06 PM    /Users/[redacted]/Library/Logs/DiagnosticReports/InkWidgetTool_2014-12-15-22320 6_[redacted].crash

  • Java tablespace SAPSR3DB is not getting listed in DB02 tcode

    Hi all,
    We installed Java Add-In in existing ABAP system.
    During Java installation a tablespace will be created named PSAPSR3DB.
    This particular tablespace PSAPSR3DB is not getting displayed in ABAP-DB02 transaction.
    We installed Java Add-In both Quality and PRD Environment.
    PSAPSR3DB tablespace is getting listed in PRD but not in quality server.
    Pls give some inputs on this regard
    Thanks
    Karthik

    Hi Karthikeyan,
    Have you refresh the database in DB02 ?
    Please check if the table have the same onwer as the ABAP.
    Regards,
    Fendi Suyanto

  • How to get Chinese and Japanese input in X11?

    I have tried a few things like building UIM, Canna, and Anthy, but nothing seems to work. For one thing, I seem able to compile and install the Canna library, but when I run ./configure for UIM, it can't find Canna.
    Can somebody walk me through getting Chinese and Japanese input in X11?

    It would probably be good to ask this in the Unix forum:
    http://discussions.apple.com/forum.jspa?forumID=735
    What apps are you trying to use?
    For what it's worth, it recently came up on the Chinese-Mac mailing list:
    http://groups.google.com/group/chinesemac/browse_thread/thread/19d00bd8cc3b1d88

  • Getting list of all users present in SIM

    Hi,
    I would like to update all the users (attributes of users) in SIM .
    Right now I am thinking to get list of all users present in SIM and get the view of each user and then update the particular attribute and chekin the view. and imp point to note here is I am having around 100,000 users present in SIM.
    I am thinking there could be a better solution than this...
    But I do not know which way can be used to accomplish the task.
    Can any one reply immediately with any thought on this.
    Thanks in advance.

    Run a bulk update actions you can easily get a list of all accountids by running select name from userobj;
    and in your field or in your input area specify the values u wanna update

  • Powershell script to get list of softwares installed as shown in registry on all the remote systems in a txt file

    Hi
    I need to know the command for getting list of softwares installed on all the remote systems in network  which are existing in their respective registry like HKEY_LOCAL_MACHINE\SOFTWARE of all other systems

    Hey
    Sorry this isn't powershell but it should do the job if you want to use it. The problem with using the Win32_Product WMI Class to enumerate the installed software (especially on Windows 2000 & 2003 Servers) is that the WMI class is NOT installed by default. Here is a VBScript i wrote to read a list of hostnames from a text file named "ComputerNames.txt" from the scripts directory and attempt to remotely enumerate all subkeys within the following registry key
    HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall
    For each subkey enumerated it will attempt to read the value of the "DisplayName" key and output the results to a csv file.
    (the results should be the same as what you would see when you open Add/Remove Programs)
    Hope that helps
    Cheers
    Matt :)
    'Script Name : CheckInstalledSoftware.vbs
    'Author : Matthew Beattie
    'Created : 01/03/10
    'Description : This script reads a list of hostnames from a text file name "ComputerNames.txt" in the scripts working
    ' : directory. For each hostName it requests an ICMP response and if successfull attempts a remote registry
    ' : connection to enumerate and read the registry values of installed software. All results are logged to the
    ' : scripts working directory in a log file per computer name.
    'Initialization Section
    Option Explicit
    Const ForReading = 1
    Const ForAppending = 8
    Dim objFSO, wshNetwork, wshShell, hostName
    Dim scriptBaseName, scriptPath, scriptLogPath
    On Error Resume Next
    Set objFSO = CreateObject("Scripting.FileSystemObject")
    Set wshShell = CreateObject("WScript.Shell")
    Set wshNetwork = CreateObject("WScript.Network")
    scriptBaseName = objFSO.GetBaseName(Wscript.ScriptFullName)
    scriptPath = objFSO.GetFile(Wscript.ScriptFullName).ParentFolder.Path
    scriptLogPath = scriptPath & "\" & IsoDateString(Now)
    If Err.Number <> 0 Then
    Wscript.Quit
    End If
    On Error Goto 0
    'Main Processing Section
    On Error Resume Next
    PromptStart
    ProcessScript
    If Err.Number <> 0 Then
    Wscript.Quit
    End If
    PromptEnd
    On Error Goto 0
    'Functions Processing Section
    'Name : ProcessScript -> Primary Function that controls all other script processing.
    'Parameters : None ->
    'Return : None ->
    Function ProcessScript
    Dim fileSpec, hostNames, regKey, keyName, results, result
    keyName = "DisplayName"
    regKey = "HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall"
    fileSpec = scriptPath & "\ComputerNames.txt"
    'Ensure the "ComputerNames.txt" file exists within the scripts working directory.
    If Not objFSO.FileExists(fileSpec) Then
    MsgBox DQ(fileSpec) & " does not exist!", vbCritical, scriptBaseName
    Exit Function
    End If
    'Read the list of hostNames from the "ComputerNames.txt" text file within the scripts working directory.
    If Not GetScriptInput(hostNames, fileSpec) Then
    Exit Function
    End If
    'Attempt to read the registry from each hostname read from the list of hostnames.
    For Each hostName In hostNames
    Do
    'Ensure the system responds to an ICMP request.
    If Not CheckConnection(hostName) Then
    LogMessage 2, "Failed to respond to an ICMP Request"
    Exit Do
    End If
    'Enumerate and read the registry values.
    If Not GetRegValues(results, hostName, keyName, regKey) Then
    Exit Do
    End If
    'Log the registry values results.
    For Each result In results
    LogMessage 0, result
    Next
    Loop Until True
    Next
    End Function
    'Name : GetScriptInput -> Reads a text file to be used as Script input.
    'Parameters : items -> Output: An array of items in the script input file.
    ' : fileSpec -> The full folder Path, file Name and extention of the script input file.
    'Return : GetScriptInput -> Returns an array of items for script input and True or False.
    Function GetScriptInput(items, fileSpec)
    Dim scriptInputFile, itemsDict, item
    GetScriptInput = False
    Set itemsDict = NewDictionary
    If Not objFSO.FileExists(fileSpec) Then
    Exit Function
    End If
    On Error Resume Next
    Set scriptInputFile = objFSO.OpenTextFile(fileSpec, ForReading)
    If Err.Number <> 0 Then
    Exit Function
    End If
    On Error Goto 0
    Do Until scriptInputFile.AtEndOfStream
    item = scriptInputFile.ReadLine
    If item = "" Then
    Exit Function
    End If
    If Not itemsDict.Exists(item) Then
    itemsDict.Add item, ""
    End If
    Loop
    items = itemsDict.Keys
    GetScriptInput = True
    End Function
    'Name : CheckConnection -> Checks a remote host using WMI ping.
    'Parameters : hostName -> Hostname of computer system to verify network connectivity with.
    'Return : Boolean -> True if hostname replies. False otherwise.
    Function CheckConnection(hostName)
    Dim ping, response, replied
    Set ping = GetObject("winmgmts:{impersonationLevel=impersonate}").ExecQuery _
    ("select * from Win32_PingStatus where address = '" & hostName & "'")
    For each response in ping
    replied = Not IsNull(response.StatusCode) And response.StatusCode = 0
    Next
    CheckConnection = replied
    End Function
    'Name : GetRegValues -> Enumerates the subkeys in a registry key and the values of the keyName.
    'Parameters : hostName -> String containing the hostName of the system to enumerate the registry keys on.
    ' : keyName -> String containing the name of the registry key value to enumerate.
    ' : regKey -> Registry key to enumerate subkey names for.
    'Return : GetRegValues -> Returns True and an Array containing the registry key values otherwise False.
    Function GetRegValues(results, hostName, keyName, regKey)
    Dim objReg, regDict, rootKey, hive, keyValue, subKeys, i
    GetRegValues = False
    rootKey = regKey
    hive = GetRegistryHiveFromKey(rootKey)
    On Error Resume Next
    If hive <> 0 Then
    'Create a dictionary object to store the registry values in.
    Set regDict = NewDictionary
    If Err.Number <> 0 Then
    LogMessage 1, "Creating Dictionary Object"
    Exit Function
    End If
    'Connect to the remote registry.
    Set objReg = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & hostName & "\root\default:StdRegProv")
    If Err.Number <> 0 Then
    LogMessage 1, "Creating StdRegProv Object"
    Exit Function
    End If
    'Enumerate the subkey names within the regKey paramater.
    objReg.EnumKey hive, rootKey, subKeys
    If Err.Number <> 0 Then
    LogMessage 1, "Enumerating Registry Keys"
    Exit Function
    End If
    'Ensure the results are an array.
    If Not IsArray(subKeys) Then
    subKeys = Array(subKeys)
    End If
    'Read the registry key value for each subkey. Add the results to the dictionary.
    For i = 0 to UBound(subKeys)
    objReg.GetStringValue hive, rootKey & "\" & subKeys(i), keyName, keyValue
    If Err.Number = 0 Then
    If Not IsNull(keyValue) Then
    regDict(regDict.Count) = keyValue
    End If
    Else
    Err.Clear
    End If
    Next
    End If
    On Error Goto 0
    results = regDict.Items
    GetRegValues = True
    End Function
    'Name : GetRegistryHiveFromKey -> Get the hive ID from a registry key name.
    'Parameters: Input/Output: key -> Registry key name. Hive name will be removed.
    'Return : GetRegistryHiveFromKey -> ID of hive of given key name (0 if invalid).
    ' : -> The hive name is removed from the input key name.
    Function GetRegistryHiveFromKey (key)
    Dim pos, hive
    pos = Instr (key, "\")
    If pos = 0 Then
    pos = Len(key) + 1
    End If
    hive = Left (UCase (Left (key, pos - 1)) & " ", 4)
    key = Mid (key, pos + 1)
    GetRegistryHiveFromKey = Array(0, &H80000000, &H80000001, &H80000002, &H80000003, &H80000005, &H80000006) _
    (Int ((Instr("HKCR,HKCU,HKLM,HKU ,HKCC,HKDD", hive) + 4) / 5))
    End Function
    'Name : NewDictionary -> Creates a new dictionary object.
    'Parameters : None ->
    'Return : NewDictionary -> Returns a dictionary object.
    Function NewDictionary
    Dim dict
    Set dict = CreateObject("scripting.Dictionary")
    dict.CompareMode = vbTextCompare
    Set NewDictionary = dict
    End Function
    'Name : DQ -> Place double quotes around a string and replace double quotes
    ' : -> within the string with pairs of double quotes.
    'Parameters : stringValue -> String value to be double quoted
    'Return : DQ -> Double quoted string.
    Function DQ (ByVal stringValue)
    If stringValue <> "" Then
    DQ = """" & Replace (stringValue, """", """""") & """"
    Else
    DQ = """"""
    End If
    End Function
    'Name : IsoDateTimeString -> Generate an ISO date and time string from a date/time value.
    'Parameters : dateValue -> Input date/time value.
    'Return : IsoDateTimeString -> Date and time parts of the input value in "yyyy-mm-dd hh:mm:ss" format.
    Function IsoDateTimeString(dateValue)
    IsoDateTimeString = IsoDateString (dateValue) & " " & IsoTimeString (dateValue)
    End Function
    'Name : IsoDateString -> Generate an ISO date string from a date/time value.
    'Parameters : dateValue -> Input date/time value.
    'Return : IsoDateString -> Date part of the input value in "yyyy-mm-dd" format.
    Function IsoDateString(dateValue)
    If IsDate(dateValue) Then
    IsoDateString = Right ("000" & Year (dateValue), 4) & "-" & _
    Right ( "0" & Month (dateValue), 2) & "-" & _
    Right ( "0" & Day (dateValue), 2)
    Else
    IsoDateString = "0000-00-00"
    End If
    End Function
    'Name : IsoTimeString -> Generate an ISO time string from a date/time value.
    'Parameters : dateValue -> Input date/time value.
    'Return : IsoTimeString -> Time part of the input value in "hh:mm:ss" format.
    Function IsoTimeString(dateValue)
    If IsDate(dateValue) Then
    IsoTimeString = Right ("0" & Hour (dateValue), 2) & ":" & _
    Right ("0" & Minute (dateValue), 2) & ":" & _
    Right ("0" & Second (dateValue), 2)
    Else
    IsoTimeString = "00:00:00"
    End If
    End Function
    'Name : LogMessage -> Parses a message to the log file based on the messageType.
    'Parameters : messageType -> Integer representing the messageType.
    ' : -> 0 = message (writes to a ".csv" file)
    ' : -> 1 = error, (writes to a ".err" file including information relating to the error object.)
    ' : -> 2 = error message (writes to a ".err" file without information relating to the error object.)
    ' : message -> String containing the message to write to the log file.
    'Return : None ->
    Function LogMessage(messageType, message)
    Dim prefix, logType
    prefix = hostName
    Select Case messageType
    Case 0
    logType = "csv"
    Case 1
    logType = "err"
    message = "Error " & Err.Number & " (Hex " & Hex(Err.Number) & ") " & message & ". " & Err.Description
    Case Else
    LogType = "err"
    End Select
    If Not LogToCentralFile(scriptLogPath & "." & logType, hostName & "," & message) Then
    Exit Function
    End If
    End Function
    'Name : LogToCentralFile -> Attempts to Appends information to a central file.
    'Parameters : logSpec -> Folder path, file name and extension of the central log file to append to.
    ' : message -> String to include in the central log file
    'Return : LogToCentralFile -> Returns True if Successfull otherwise False.
    Function LogToCentralFile(logSpec, message)
    Dim attempts, objLogFile
    LogToCentralFile = False
    'Attempt to append to the central log file up to 10 times, as it may be locked by some other system.
    attempts = 0
    On Error Resume Next
    Do
    Set objLogFile = objFSO.OpenTextFile(logSpec, ForAppending, True)
    If Err.Number = 0 Then
    objLogFile.WriteLine message
    objLogFile.Close
    LogToCentralFile = True
    Exit Function
    End If
    Randomize
    Wscript.sleep 1000 + Rnd * 100
    attempts = attempts + 1
    Loop Until attempts >= 10
    On Error Goto 0
    End Function
    'Name : PromptStart -> Prompt when script starts.
    'Parameters : None ->
    'Return : None ->
    Function PromptStart
    MsgBox "Now processing the " & DQ(Wscript.ScriptName) & " script.", vbInformation, scriptBaseName
    End Function
    'Name : PromptEnd -> Prompts when script has completed.
    'Parameters : None ->
    'Return : None ->
    Function PromptEnd
    MsgBox "The " & DQ(Wscript.ScriptName) & " script has completed successfully.", vbInformation, scriptBaseName
    End Function
    'Name : PromptError -> Prompts when an unexpected script error occurs.
    'Parameters : None ->
    'Return : None ->
    'Function PromptEnd
    ' MsgBox "Error " & Err.Number & " (Hex " & Hex(Err.Number) & "). " & Err.Description, vbCritical, scriptBaseName
    'End Function

  • How to optimize code for getting list of portal GP erroneous processes

    Hello,
    In our Web Dynpro application for Java we got the list of GP processes with status Erroneous which match the following criteria (initiator, processName, blockName, actionName, startDate, endDate, instanceName, actionProcessor) by loop of all portal users. The problem is that it takes too much time for execution. In example with 200 users it takes about 5 min. Any idea how to optimize execution?
    <br>
    <br>
    <br>
    <br>
    public java.util.List getListOfUser( )  {<br>
        //@@begin getListOfUser()<br>
         List<IUser> usersList = null;<br>
            try {<br>
              ISearchResult uniqueIDs =  UMFactory.getUserFactory().getUniqueIDs();     <br>
              if (uniqueIDs.getState() == ISearchResult.SEARCH_RESULT_OK)     <br>
              {     <br>
         usersList = new ArrayList<IUser>();     <br>
                 for (Iterator<?> it = uniqueIDs; it.hasNext();) {     <br>
                     usersList.add(UMFactory.getUserFactory().getUser((String)it.next()));     <br>
         }     <br>
               }       <br> 
            } catch (UMException ex) {     <br>
            msgMngr.reportException("Unable get list of users!");     <br>
         }          <br>
         return usersList;     <br>
        //@@end     <br>
      }     <br>
    <br>
    <br>
    <br>
    public void getErrorProcessAllUser( )  {     <br>
    IUser currentUser = null;     <br>
              try {        <br>
                    if (wdContext.nodeUsers().currentUsersElement().getLogonId() == null){     <br>
                         List<IUser> userList = getListOfUser( );     <br>
    <font color="red">//{this loop is extremely slow</font>     <br>
                             for(int n = 0; n < userList.size();n++){       <br>
                                     String logonID =  userList.get(n).getUniqueName();     <br>
                                    currentUser = UMFactory.getUserFactory().getUserByUniqueName(logonID);     <br>
                                  viewProcessDetails(currentUser);     <br>
                         }     <br>
    //}     <br>
                     }else{     <br>
                         currentUser = <br>     UMFactory.getUserFactory().getUserByUniqueName(wdContext.nodeUsers().currentUsersElement().getLogonId());
                         viewProcessDetails(currentUser);<br>
                     }<br>
                   } catch (UMException e) {<br>
                    msgMngr.reportException("No user with this logonId!");<br>
                   }<br>
    }<br>
    <br>
    <br>
      public void viewProcessDetails( com.sap.security.api.IUser currentUser )  {<br>
        //@@begin viewProcessDetails()<br>
             List<IProcessInfoElement> bindableResult = new ArrayList<IProcessInfoElement>();<br>
                 try {   <br>
                    IGPRuntimeManager rtManager = GPProcessFactory.getRuntimeManager();<br>                           
                    IGPWorkItem[] workItems = rtManager.getWorkItems(GPWorkItemStatus.WORKITEM_STATUS_COMPLETED_BY_SYSTEM,<br> GPContextFactory.getContextManager().createUserContext(currentUser));<br>
                     for(int i = 0; i < workItems.length; i++){<br>
                               IGPProcessInstanceInfo processInfo =  rtManager.getProcessInstanceInformation(workItems<i>.getProcessID(), currentUser);<br>
                               if(GPBlockInstanceStatus.getStatusForCode(processInfo.getStatus()) == GPBlockInstanceStatus.BLOCK_INSTANCE_STATUS_ERROR){ <br>
                                    IGPProcessInstance instance = rtManager.getProcessInstance(processInfo, GPContextFactory.getContextManager().createUserContext(currentUser));  <br>                           
                                    IGPActivityInstance[] blocksList = instance.getChildrenInformation();    <br>
                            for(int j = 0; j < blocksList.length; j++){    <br>
                                     IGPActivityInstance[] actionsList = ((IGPBlockInstance)blocksList[j]).getChildrenInformation();
                                for (int k = 0; k < actionsList.length; k++){<br>               
          DO SOMETHING

    got the answers ..
    we have use IndexedRecord instead of MappedRecord
                   IndexedRecord input = rf.createIndexedRecord("input");
                   boolean flag = input.add("/FolderpathValue");
                   flag = input.add("CampusCodeValue");
    <b>Thanks</b>,
    Saravanan

  • CUPS, HP PSC 2355 and "Unable to get list of printer drivers: Unknown"

    Hey fellow Archers!
    The Introduction
    The other day, I installed ArchLinux for the ARM processor on my GoFlex Home. Straight away I installed samba, got it set up and everything works like a charm with explosive transfer-rates compared to the old factory-firmware. Also put on a mysql server to centralize my xbmc database and pyload to download large files without having to have my laptop opened all the time. Have to admit, this Arch Linux is a glorious world!
    The Setup
    Well, after this positive input, now comes my problem. I wanted to share our printer on our LAN, so I did a little search to quickly find CUPS. Installed it together with all the dependencies, like foomatic, python (which was installed as pyload uses it) and all that stuff.
    Changed the /etc/cups/cupsd.conf to listen on 0.0.0.0 and started the daemon.. Woohoo! Turned on the printer, opened the web interface, went to administration -> add printer and selected one of the printers available from this list:
    Local printers
    CUPS-PDF (Virtual PDF Printer)
    HP PSC 2350 series USB MY5BNF4423KJ HPLIP (HP PSC 2350 series)
    Seriel port #1
    HP PSC 2350 series (HP PSC 2350 series)
    HP Fax (HPLIP)
    Before I proceed, I want to say that I have tried the following with both of the PSC-entries.
    The Problem
    Now, i selected the printer and just let the default values be, pressed continue and got this error message:
    "Unable to get list of printer drivers: Unknown"
    Well, googled it a bit and tried to blacklist lsusb, as well as chmod /dev/bus/usb/001/002 to 665 (even 777). Still the same error message. Also tried to install the printer with hp-setup -i which let me pick a ppd myself; didn't work either. Gave me an error message saying that it was unable to add the printer to cups. I have run out of options, and the almighty sir Google wont give me any solutions other than those which I have tried.
    I even get this error message when I try to add cups-pdf (which I also installed oc).
    Kind regards,
    Rasmus Dencker
    Last edited by dencker90 (2011-12-30 17:53:10)

    Hey fellow Archers!
    The Introduction
    The other day, I installed ArchLinux for the ARM processor on my GoFlex Home. Straight away I installed samba, got it set up and everything works like a charm with explosive transfer-rates compared to the old factory-firmware. Also put on a mysql server to centralize my xbmc database and pyload to download large files without having to have my laptop opened all the time. Have to admit, this Arch Linux is a glorious world!
    The Setup
    Well, after this positive input, now comes my problem. I wanted to share our printer on our LAN, so I did a little search to quickly find CUPS. Installed it together with all the dependencies, like foomatic, python (which was installed as pyload uses it) and all that stuff.
    Changed the /etc/cups/cupsd.conf to listen on 0.0.0.0 and started the daemon.. Woohoo! Turned on the printer, opened the web interface, went to administration -> add printer and selected one of the printers available from this list:
    Local printers
    CUPS-PDF (Virtual PDF Printer)
    HP PSC 2350 series USB MY5BNF4423KJ HPLIP (HP PSC 2350 series)
    Seriel port #1
    HP PSC 2350 series (HP PSC 2350 series)
    HP Fax (HPLIP)
    Before I proceed, I want to say that I have tried the following with both of the PSC-entries.
    The Problem
    Now, i selected the printer and just let the default values be, pressed continue and got this error message:
    "Unable to get list of printer drivers: Unknown"
    Well, googled it a bit and tried to blacklist lsusb, as well as chmod /dev/bus/usb/001/002 to 665 (even 777). Still the same error message. Also tried to install the printer with hp-setup -i which let me pick a ppd myself; didn't work either. Gave me an error message saying that it was unable to add the printer to cups. I have run out of options, and the almighty sir Google wont give me any solutions other than those which I have tried.
    I even get this error message when I try to add cups-pdf (which I also installed oc).
    Kind regards,
    Rasmus Dencker
    Last edited by dencker90 (2011-12-30 17:53:10)

  • Making a list of user input

    how can i make a list of user input. for instance, i'm asking the user, how many people played. then i take that number and it asks the user that number of times to type a players name. i then want to make a list of those players. i have the repeat operator working correctly, however, it only gets the name of the laset person i typed. help!

    Hi Nana,
    You should create an algorithm, because this script will probably get a lot bigger. You might create subroutines to make things easier. Anyway, here's an example of what you want. Say athe team names are a-f, with a playing b, c playing d, etc.
    set the_winners to {"a", "d", "e"}
    set player_list to {"joe", "sally"}
    set the_picks to {{"a", "d", "f"}, {"b", "c", "f"}}
    set i to 0
    set n to count player_list
    set winning_players to {}
    set high_score to 0
    repeat
    set i to i + 1
    set player_picks to item i of the_picks
    set c to 0
    repeat with this_pick in player_picks
    if (contents of this_pick) is in the_winners then set c to c + 1
    end repeat
    if c > high_score then
    set high_score to c
    set winning_players to {}
    set end of winning_players to (item i of player_list)
    else if c = high_score then
    set end of winning_players to (item i of player_list)
    end if
    if i = n then exit repeat
    end repeat
    {winning_players, high_score}
    About Excel, you could easily get a listing. I'm using Excel X which might not work (scipting wise) with Excel 2004, so that part you can get from somebody else or try it yourself.
    gl,

  • Func/BAPY to get list of objects from Material class

    Hi guys,
    I am looking for BAPI/FUNC to get list of material/objects if I know Class and Class type. In MM02 I am doing following: In selection of input I choose Materilas of Class there I write Class and Class type, and then there is icon FIND IN INITIAL CLASS after clicking that icon I get list of materials for entered class.
    Can you advise me which BAPI/Func do that or in which tables I can find this DATA.
    Thanks very much for any help.
    Zbynek

    Zbynek,
    Try using this BAPI....<b>BAPI_CLASS_SELECT_OBJECTS</b>
    Actually you can do this by directly going to tables....
    First using the class type and class number, go to KLAH tables... get the Int class no. (KLAH-CLINT). Using this go to KSSK table and use the KLAH-CLINT value in KSSK-CLINT and adda another condition like KSSK-MAFID = 'O'.
    Hope this helps...
    Please provide reward points if you find this reply helpful.
    Balaji

  • WHAT CAN I DO TO GET THIS EMAIL ADDRESS INPUTED?

    SETTING UP AN IMAP EMAIL ON HP EPRINT. IT CONTINUES TO TELL ME VERIFICATION ERROR. I KNOW FOR A FACT THE INFORMATION IS CORRECT BECAUSE I HAVE SET THE EMAIL UP ON THE I PAD AND MY PHONE WITH NO PROBLEMS. WHAT CAN I DO TO GET THIS EMAIL ADDRESS INPUTED?

    Hi RIZZMAN1969,
    Welcome to the HP Support Forums. I gather that you are trying to enter your email credentials into the HP ePrint app and you are getting a verification error.
    I have included a link to a post by @VisionAiry that lists the information needed to add the more common email providers in the USA. If you continue to have problems please let me know who your email provider is so I can help you find the information needed.   Another option is to please call HP’s Cloud Services at 1-855-785-2777 if you live in the USA/Canada region. If you live outside the USA/Canada region please click here to find the Technical Support number for your country/region.
    Regards,
    Happytohelp01
    Please click on the Thumbs Up on the right to say “Thanks” for helping!
    Please click “Accept as Solution ” on the post that solves your issue to help others find the solution.
    I work on behalf of HP

  • New build on boot getting "NO SIGNAL", every input; MSI x99S SLI Plus, gtx 970s

    Hey Guys,
    This is my first build and everything seemed to be great until it was time to boot. Then I get the dreaded no input on my ASUS VG248QE Monitor. Motherboard lights are on, system and GPU fans are on, cables all connected on motherboard (both the 8 pin and 24). I'm 99% sure the CPU is right - I aligned the corners with the arrow. Only odd thing is the text is upside down. It did fit though and I hooked up my x61 kraken to it.
    Here's my build:
    pcpartpicker. com/p/jMddJx
    (remove space)
    Troubleshooting:
    - I've tried 2 monitors
    - I've been through the typical "no boot" fix list
    - I've tried every possible configuration of my 2 graphics cards. All 3 input types, SLI, no SLI, switched up positions, only 1 in, etc.
    - I've tried only 1 DDR4 RAM stick, I've tried 1 and 5; and 1, 3, 5, 7
    - I've done a 15 minute CMOS reset/clear
    - I've hit the BIOS switch and tried both
    It kind of stinks that you can't boot graphics from motherboard with this x99, any ideas on how the heck I'm supposed to troubleshoot properly?

    none of that should have happened in the first place, be very careful putting CPU into the socket, vertically down, no force, no wiggle, maybe pins were damaged before you got the board, happens too. but now what I would do is to try and straighten those pins, maybe you have a friend with steady and precise hands, it is doable, just tricky. and if this "fixing of the pins" doesn't work, I don't think there is another choice but to try send it back to MSI, or get another board.
    http://youtu.be/cN35m82zur4

  • Pricing: New condition type not getting listed in options in product master

    Hi,
    I have created a new pricing procedure and also created a new condition type for it. I am trying to create a condition record in the product master for this  condition type but the condition is not there in the list of conditions. How can I inlcude it in the condition list?
    Even the new condition type I have created by copying 0PR0 is not getting listed in the options, whereas 0PR0 is getting listed.
    Regards,
    Meenakshi
    Edited by: Meenakshi Sawhney on Sep 9, 2010 8:27 AM
    Edited by: Meenakshi Sawhney on Sep 9, 2010 8:29 AM

    Hi Meenakshi,
    you need to enhance the condition maintenance group in the customizing, which is assigned to the product master. Please check: IMG: Customer Relationship Management -> Master Data -> Products -> Special Settings for Sales Operations -> Assign Condition Group to Application CRM and IMG: Customer Relationship Management -> Master Data -> Conditions and Condition Technique -> Condition Technique: Basics -> Create Maintenance Group.
    Best Regards,
    Michael

  • Is there any FM or BAPI to get list of all sales orders

    Hello all,
            I have the requirement like below.
    Is there any FM if i Pass Drawing document no, type,part,revision level which gives
    the output list as.
    1) all sales orders, where the above drawing document no is attached to the materials
    and these materials are used as one of the lower level components in the Sales order BOM,
    I need to show all those sales orders along with SO number,item,Material,Plant and BOM Item no,
    2)all sales orders, where the above drawing document no is attached to the materials
    and the same material is one of the item in sales order.
    3)all sales orders, where the above drawing document no is used as one of the component in Sales order BOm's
    Addition of 1,2,3 will be the o/p.
    are there any FM or BAPI to get the above list.
    Basically the above report is concatenation of report outputs of t-code CSD5 and CS15.
    Awaiting reply.
    Thanks.

    Hi venkatesh,
       You can use the BAPI
    BAPISDORDER_GETDETAILEDLIST
    to get list of all sales orders.
    Here is a lik which provides you BAPI'S regarding everything.
    [http://www.saptechies.com/sap-bapi-list/]
    Hope this will help you.
    Regards,
    Pavan.

Maybe you are looking for

  • How can I change my choice of program to download to?

    I tried to download my ebook from KOBO's site but when I tried to open it in Powerpoint I got the error message: "Powerpoint can't open this file. The file may be not recognized by Powerpoint or the file extension may not match the internal format of

  • Presentation Variable in Legend or Static Text

    Hi Experts, Is it possible to call the Presentation variable in Legend or Static Text View. Please let me know how can I achive this. Thanks, Balaa...

  • Bill to Return order - Pricing procedure determination

    Hi Need expert advice on following customization.  We have a return order getting created with reference to F2 invoice.  We need to have a new pricing procedure determined in the return order instead of the pricing procedure copying from F2. I have c

  • AP entry database error

    Need some information on resolving this issue or how to resolve. I am not sure what this error is:  CAPWAP-3-AP_DB_ALLOC: capwap_ac_db.c:144 The system is unable to alloc AP entry in database.   If anyone can shed some light on this and provide some

  • Data Guard Configuration Issue / ORA-16047

    So last night I decided to setup a test Physical Standby database. I had everything working correctly and when I started playing around with the Data Guard Broker I started having some problems. Now I can't get the logs to ship from the primary to th