Passing a collection to the ActiveX component / copying a collection to another

[Migrated from the Syclo Resource Center]
KarthikSetty   05/06/2011 10:48,
Hi,We need to pass a collection to an ActiveX component. With 5.2.8 this is possible. My collection needs to be selected dynamically. If it were a property I can be easily set using a rule. But I dont see how I can return a collection through a rule. One of the scenarios that we need to implement is to pass a list of notification objects for a particular work order, where the work order id is set by the activex component as an eternal value.What I was thinking of doing is to have a dummy notification collection under the main object which I would populate based on the work order id. The Agentry value of the Active X will point to this.
Is there a easy way to copy the contents from one collection to another?I need to copy the notification object from MainObject -> select WorkOrder by key -> Notification Collection to MainObject -> Temp Notification Collection.The only way to copy a collection is to loop through the collection and copy each object individually. Is there a way to do this in one step?
Thanks,Karthik
Jason Latko   05/06/2011 11:12
Karthik,Unfortunately there is no easier way to do this.
  You need to go about it the way you suggested one at a time by looping over the parent collection and adding objects to your new collection, initializing each property value "from other object" in the add transaction.
Jason Latko - Senior Product Developer at Syclo
KarthikSetty   05/06/2011 14:24
Alright, Thanks for your response.

[Migrated from the Syclo Resource Center]
KarthikSetty   05/06/2011 10:48,
Hi,We need to pass a collection to an ActiveX component. With 5.2.8 this is possible. My collection needs to be selected dynamically. If it were a property I can be easily set using a rule. But I dont see how I can return a collection through a rule. One of the scenarios that we need to implement is to pass a list of notification objects for a particular work order, where the work order id is set by the activex component as an eternal value.What I was thinking of doing is to have a dummy notification collection under the main object which I would populate based on the work order id. The Agentry value of the Active X will point to this.
Is there a easy way to copy the contents from one collection to another?I need to copy the notification object from MainObject -> select WorkOrder by key -> Notification Collection to MainObject -> Temp Notification Collection.The only way to copy a collection is to loop through the collection and copy each object individually. Is there a way to do this in one step?
Thanks,Karthik
Jason Latko   05/06/2011 11:12
Karthik,Unfortunately there is no easier way to do this.
  You need to go about it the way you suggested one at a time by looping over the parent collection and adding objects to your new collection, initializing each property value "from other object" in the add transaction.
Jason Latko - Senior Product Developer at Syclo
KarthikSetty   05/06/2011 14:24
Alright, Thanks for your response.

Similar Messages

  • How do I quickly update the ActiveX automation references in my VIs when the ActiveX interface changes?

    Hello all,
    I joined a test automation team in the middle of a large project and
    inherited a huge set of VIs (over 700) and associated architecture for
    this automation (not to mention the several thousand TestStand
    sequences).  Another part of the project is being developed by our
    customer, who is using VB 6.0 to create ActiveX components which we
    need to use in LabView to access their hardware.  They've already
    invested a large amount of time developing these ActiveX components,
    and they are not finished -- meaning the ActiveX interfaces will be
    changing.  Every time they send updated ActiveX components, I have to
    re-write many, many VIs including updating a couple strict typdefs. 
    This process takes way too much time and is mind-numbing and prone to
    error or omission.
    Unfortunately I can't post any of the VIs because of a NDA.  But
    perhaps a bit more detailed explanation would help.  TestStand calls a
    VI to open and get an ActiveX reference for automation (which it stores
    in a variant).  It will pass this reference into any VI it calls to
    perform specific functions through this ActiveX interface.  For
    example, one VI that may be called passes this automation refnum into
    another, which passes it to another, which passes it into another to
    get the actual ActiveX reference stored in that variant (through a
    Variant To Data call with a strict typedef of the ActiveX component
    wired to the type input).  [See the attached image of this sample VI
    hierarchy: the far left icon would represent TestStand, and the far
    right is the strict typedef.]  Any of the VIs in the chain might use
    ActiveX Property or Invoke nodes, and it can break at any one of those
    when the ActiveX component changes.  It's easy to fix each one, but
    since there are so many VIs it takes a very long time.
    Is there any way at all to do a massive search/replace or something to
    make the ActiveX references update?  I realise that even though
    property or method names stay the same from one version to the next,
    they are different references.  Is there a way to update these based on
    name if you give it the base ActiveX reference?
    Thanks in advance for any help!
    Tom Williams
    Attachments:
    hierarchy.GIF ‏6 KB

    Ben,
    Unfortunately I can't post any VIs that would demonstrate the problem
    because the ActiveX components are confidential.  I'll try to develop
    my own ActiveX dll that will demonstrate it, but in the meantime, in
    hopes that another picture will help, I've attached an image of a block
    diagram (with some names changed to protect confidential information)
    of one of the lower level VIs from the hierarchy I posted.  In this
    example, the "Automation Refnum IN" is an input with a type definition
    linked to the strict typedef based on the ActiveX automation dll that
    has changed.  I updated that typedef, but as you can see the output to
    the "Class1" indicator is broken.  If I delete the "Class1" indicator
    and select Create->Indicator from the Class1 property node, and then
    wire the new "Class1" indicator to the connector pane, the VI is fixed
    -- at least at compile time.  In most cases there is also a runtime
    problem where the reference obtained by one of the intermediate
    property nodes is null, so the property or method node that uses it
    fails (e.g. "_VNManager.Networks" property returned is 0, so the
    "_Networks.Network1" property node fails).  To fix this problem, I have
    to delete the wires between the property nodes, and one by one select a
    different property/method, then select the correct property/method and
    re-wire.  There seems to be a bit of "jiggling the handle" to get it to
    work though.
    I don't know if the ActiveX developer changed anything in this class,
    but if he did, he didn't change the name of this class.  I would like
    to have to modify the VI only if a class, property or method has
    changed name or been removed.
    Does that all make sense?  Thanks for any pointers or help!
    Tom
    Attachments:
    Class1_Path.GIF ‏7 KB

  • Call a dll with an activeX component gives error

    Hello all,
    My program consist of:
    - Main program
    - DLL's
    How it works:
    The main program is the interface for the user, this main program call's several dll's
    The problem:
    The main program runs withought problems, but when it call's a dll, which also call's an activeX component, I get an error.
    I then made a executable from the dll which then works ok, no problem.
    When I click the retry it runs ok, but when I call it again I get the message again.
    The message does allways accur, but still very often
    Conclusion:
    The error message only comes when I call it as a dll, when the dll is standalone executable no problems occur.
    Below you can see how I call the dll:
    Can someone please help me with this problem?
    greetz,
    Bart

    Hello Bas,
    I have included the vi which calls de dll(executedll.vi) en the dll in VI form(plugin.vi & plugin.lvproj).
    As you can see the dll calls the canconfigurator activex component.
    And closes the activex component when done.
    This plugin will be called several times in the test enviroment.
    gr,
    Message Edited by darkxceed on 02-12-2010 04:33 AM
    Message Edited by darkxceed on 02-12-2010 04:33 AM
    Attachments:
    ExecuteDLL.vi ‏12 KB
    plugin.lvproj ‏8 KB
    plugin.vi ‏31 KB

  • Remote control using DCOM: Error: "ActiveX component cannot be created."

    Hello,
    I want to address a OMICRON CPC100 device via remote control. I have a dll ("TESTCONTROL.dll"), which provides methods to control the CPC100. In order to encapsulate this functionality, I've written a VB.NET-dll ("CLC_CL_for_Net.dll") (it's a class-dll) which calls methods of TESTCONTROL.dll. Now I want to use CLC_CL_for_Net.dll in LabVIEW.
    Here's the code of CLC_CL_for_Net.dll:
    Imports TESTCONTROLLib
    Namespace MyCPCNamespace
        Public Class CPCClass
            Public Sub New()
            End Sub
            Public Sub testfunction(ByVal ipaddress As String)
                Dim tc As TestProcedure
                Dim atm As IATMTest
                tc = CreateObject("TestControl.TestProcedure", ipaddress)   '<-- here the error occurs!
                atm = CreateObject("TestControl.ATMTest", ipaddress)
                atm.Activate(300, 10, 1)
                atm.Deactivate()
            End Sub
        End Class
    End Namespace
    In order to enable DCOM on my computer, I did the following:
    - I switched the firewall off.
    - I started "dcomcnfg.exe", chose "Component Services/Computers/My Computer -> Properties" and checked the checkbox "Enable Distributed COM on this computer".
    - I also chose the tab "My Computer Properties/COM Security" and allowed everyone full access and launch
    permissions.
    - I created an exe-file from my LabVIEW VI, which uses the dll, with the help of the LabVIEW Application Builder.
    For this exe-file and also for the TESTCONTROL, I set the authentication level to "None".
    For test purposes, I used my dll in a C++ project. There everything works fine. However, when I try to use the dll
    in LabVIEW (using LabVIEW's .NET constructor node and method node, which you can find under Connectivity -> .NET), the program fails at the line "tc = CreateObject("TestControl.TestProcedure", ipAddress)".
    Here the error message displayed by LabVIEW (I translated it from German into English):
    "Error 1172 has occurred at Error calling method CLC_CL_for_Net.MyCPCNamespace.CPCClass.testfunction of ObjectId
    handle: 0x2BB117C for obj 0x3F19E1D[CLC_CL_for_Net.MyCPCNamespace.CPCClass] in domain [LabVIEW Domain for Run] and
    thread 3792, (System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
     Inner Exception: System.Exception: The ActiveX component cannot be created.
    ) in CPC100_RemoteControlVI.vi"
    As the dll works when I use it in the C++ project, I don't understand why this error occurs when I use the dll in
    LabVIEW. Do I have to give LabVIEW any special permissions?
    Can anyone help me to solve this problem? Thanks a lot for your efforts!
    Regards,
    Matthias

    Hi Matthias,
    I am not really familiar with .NET assemblies but I found couple informations on your error :
    First of all, about the Error 1172 in LabVIEW, there is two things to proof:
    Ensure that the .NET assemblies that you are using are saved in the root directory of the top-level VI.
    Add the .NET assembly as a reference in LabVIEW by selecting Tools»Advanced»NET Assembly References. Click the Add button and navigate to the location of all the assemblies that you want to call.
    Those two steps sometimes solve Error 1172 related problems. I also found some information about the "ActiveX component cannot be created" error. A .Net Class library needs to be in a COM wrapper in order for it to be called through COM methods, such as ActiveX. The way to do so is:
    1. Create a new .NET Class Library project.
    2. Remove the Class1.vb that is created.
    3. Click Add Class on your project.
    4. Choose "COM Class", and add it.
    5. Add at least 1 function or sub in it.
    6. Compile it, and Visual Studio should registrer it automaticly.
    If you whish to manuall reg it, or create a registry entry file, use "RegAsm.exe" in the .NET Framework folder.
    I hope this could be any helpful to you
    Regards
    Florian Abry
    Application Engineer Group Leader
    NI Germany

  • "an error occurred saving the activex control"

    I'm trying to compile an executable in Labview 5.1. When I run the build app, it gets about half way done then pops up the error:
    "an error occurred saving the activex control"
    After clearing the error message, it proceeds to go through the motions of compling the app, but no exe is generated.
    The design mode progam run operates fine, and it saves fine as well in design mode.
    Thanks!

    wawatts,
    Though Brian and I got a broken arrow because we didn't have the necessary ActiveX component installed, I imagine you get no errors on the development system because you do have the component.
    This problem would be much harder to pin down on your side given the lack of development-environment errors and the sprawling design of the main VI. One possible troubleshooting approach would be the LabVIEW Find functionality (Edit >> Find). ActiveX functionality typically involves the use of Property Nodes and Invoke Nodes, so if you search for any Invoke Nodes (Select Object, then Functions >> Communication >> ActiveX >> Invoke Node) in the scope of your main VI and its subVIs, you could perhaps have turned up some hits that take you to the subVI that has the control that is presumably causing the problem.
    Unfortunately, I fear that finding the problem area doesn't solve the problem. It seems to me that either the LabVIEW app builder or the ActiveX component is doing something unexpected or nonstandard that is leading to the error message.
    I'm going to stick to my "upgrade the software as much as possible" guns:
    1. Install the LabVIEW 5.1.1 patch I linked to above, if it isn't already installed. There were fixes to the development environment and changes to the app builder that might resolve your problem. This is a free patch.
    2. Consider upgrading the ActiveX control. I think that the latest version is called IntuiLink for 54600-series Oscilloscopes, Version 3.1, and it's available here on the Agilent site.
    It was easy to do a simple test using your Xezgetsetup.vi on my system (LabVIEW 7.1.1, XP) with the updated ActiveX control. First, I installed the Agilent software. Then, I right-clicked inside the ActiveX control on the front panel of Xezgetsetup.vi, chose Insert ActiveX Object, and selected Agilent 54600 Scope Control from the list. Then I had to go to the block diagram and relink a few of the property and invoke nodes by just left-clicking on broken nodes and re-selecting the items that your code was already displaying. That fixed the VI so that it would run again.
    Then I built that VI into an EXE and got no errors.
    Perhaps all this proves is that you would have clear sailing if you upgraded to LabVIEW 7.1 and got the most recent Agilent ActiveX control--and maybe this is a good reason to bite the bullet and do that upgrade now--but it's certainly possible that you can do the same thing in 5.1 and solve your problem. Worth a shot.
    Hope that helps,
    John

  • Acrobat - Cannot create ActiveX component

    I'm using Visual Studio 2005 (.Net 2.0) Console Application to interact with Acrobat 9.  I'm trying to open an existing PDF and Save as TIFF (using the JSObj = PDDoc.GetJSObject() and JSObj.SaveAs()).  On the development computer with Acrobat 9.1.3 installed it works fine.  If I move the executable to my colleague's development machine (Acrobat 9.2) the code throws error: Cannot create ActiveX component.  The Interop.Acrobat.dll resides in the same folder as the .Net exe.  Last month, this worked fine on my collleague's computer.  What has changed on his computer to prevent the ActiveX component from launching?  Below is the code snippet.  Other info: Acrobat 9.2 is the only Adobe app installed on the destination computer.
    Any ideas would be helpful.
    Dim PDFApp As Acrobat.AcroApp
    Dim PDDoc As Acrobat.CAcroPDDoc
    Dim AVDoc As Acrobat.CAcroAVDoc
    Dim JSObj As Object
    Try
      ' Create Acrobat Application object
      PDFApp = CreateObject("AcroExch.App")
      ' Create Acrobat Document object
      PDDoc = CreateObject("AcroExch.PDDoc")

    Just realized I replied to my own message...
    The repair did not work.
    Notes:
    ===============================================================
    - When I open the Acrobat UI with a PDF and then Save as TIFF, it works great.
    - Event Viewer: System Error: The server {85DE1C45-2C66-101B-B02E-04021C009402} did not register with DCOM within the required timeout.  I checked this ClsID in the Registry and it's the PDFShellInfo Class ("C:\Program Files\Adobe\Acrobat 9.0\Acrobat\AcrobatInfo.exe" /PDFShell).
    Should I uninstall Acrobat and re-install?  I'm at wits end...
    Thanks in advance.

  • Loading ActiveX component in BSP

    Hi,
    I wonder if anyone has experienced this peculiar problem before. I'm trying to load an ActiveX component in a BSP that has no BSP tags whatsoever (See test code below).
    The peculiar thing is that the ActiveX component will load on my local machine, will load in the Preview tab of Tx: SE80, but will not load when the page is Tested (F8). I'm running Internet Explorer of course.
    I've tried experimenting, and the funny thing is that some ActiveX components will load when Tested (F8), while others will not. As far as I know, there doesn't seem to be any configuration differences between those ActiveX components that work, and those that don't.
    Can anyone suggest possible explanations why this might be so? Many thanks.
    <html>
    <body>
        <!-- Com1 -->
        <object classid="clsid:030690FC-BF2F-47A6-AC2D-330BCB402664" name="Com1" id="Com1">
        <span class="c1">Failed to load Com1 </span>
        </object>
        <!-- Com2 -->
        <object classid="clsid:04f78816-f6e5-424a-9961-988e90d41276" name="Com2" id="Com2">
          <span class="c2">Failed to load Com2</span>
        </object>
    </body>
    </html>

    Hi Amos,
    I have the same problem with the "SAP.Functions" ActiveX that is packed with the SAP Gui Install.
    You weren't using that one by the way... ? 
    You said that you got newer versions, did you mean signed versions ? Is this not the requirement for ActiveX to display ?
    Thanks.
    Best regards,
    Guillaume

  • Configure WL 8.1 for ActiveX component ?

    Hi guys, i am using Weblogic 8.1 as my application server. My application need to use an activex component (smartcd.CAB) and I have a jsp file that use it describe at the code below. However, I do not understand how come it says that the smartcard object is not found when I call the page. I have the smartcd.CAB placed in the same folder as this jsp file and the CLASSID and version are checked to be correct. May I know if I need to configure the weblogic server 8.1 to allow the use of activeX component?
    My boss told me that if I done it correctly, a dialog will appear requesting me to download the activex component before executing below. But I did not receive the dialog box. Anyone got any idea ?
    <HTML>
    <OBJECT ID="smartcard" WIDTH=0 HEIGHT=0
    CLASSID="CLSID:6F5F1253-9333-11D3-AFEG-106018B089BG"
    CODEBASE="smartcd.CAB#version=1,2,0,5">
    </OBJECT>
    <script language="vbscript">
    sub window_onload
         frmA.txtID.value = smartcard.GetInfo(1)
    end sub
    </script>
    </HTML>
    Thanks.

    Sorry, please read the following code instead as I forgot to add in some part of the code:
    <HTML>
    <OBJECT ID="smartcard" WIDTH=0 HEIGHT=0
    CLASSID="CLSID:6B6F1053-9123-11D3-AFEG-106018B089BG"
    CODEBASE="smartcd.CAB#version=1,2,0,5">
    </OBJECT>
    <form name="frmA" action="process.jsp" method="post">
         <input type="hidden" name="txtID" >
    </form>
    <script language="vbscript">
    sub window_onload
         frmA.txtID.value = smartcard.GetInfo(1)
    end sub
    </script>
    </HTML>

  • Register and Host activeX component in windows / internet explorer

    I have made a ActiveX control for commericial application. A Drag and Drop component for Mail server.
    I need to host the component in Internet Explorer.
    When a user opens a mail it should prompt the user to download and register the Drag and Drop activeX component.
    When the user comes to url for the first time and when page loads for the first time, normal security alerts should pop up. Such as the user should be prompted with the drop down menu, when he clicks 'Install ActiveX Control' a Security Warning dialog box should pop up with controls name on it.
    When user clicks to install, the component should get registered in the
    windows registry. (How to do this in JSP/Java?)
    The next time user comes back on the url the page should load the ActiveX component as it is already registered on the PC.
    OS supported are Windows 2000, XP and Vista
    IE supported are IE 6 (SP1/2) and IE7
    Please suggest Java code and Script which will do this.
    Thank you

    Hello,
    Did you resolve your problem? I am interesting to know how we can do this.
    Thank you

  • Drag the component from one cell to another cell within JTable

    Hi All,
    I have one requirement to drag the component from JList to JTable cell. I am able to do it but once if i drag the component from list to table cell, table accepting the drop after this i am unable to move the same component from one cell to another cell within the table.
    Any advice.
    I have used the following logic for JTable and JList is drag enabled.
    DefaultTableModel tableModel=new DefaultTableModel(
                new Object [][] {
                    {null, null, null, null,null,null,null},
                    {null, null, null, null,null,null,null},
                    {null, null, null, null,null,null,null},
                    {null, null, null, null,null,null,null}
                new String [] {
                    "Title 1", "Title 2", "Title 3", "Title 4","Title 5","Title 6","Title 7"
            JTable table = new javax.swing.JTable(){
                public boolean isCellEditable(int row, int column)
                    return false;
            table.setModel(tableModel);
            table.setDragEnabled(true);
            table.setDropMode(DropMode.INSERT);
            table.setTransferHandler(new TransferHandler(){
                public boolean canImport(TransferHandler.TransferSupport info){
                    if (!info.isDataFlavorSupported(DataFlavor.stringFlavor)){
                        return false;
                    return true;
                public boolean importData(TransferSupport support) {
                    if (!support.isDrop()) {
                        return false;
                    if (!canImport(support)) {
                        return false;
                    JTable table=(JTable)support.getComponent();
                    DefaultTableModel tableModel=(DefaultTableModel)table.getModel();
                    // fetch the drop location
                    JTable.DropLocation dl = (JTable.DropLocation)support.getDropLocation();
                    int row = dl.getRow();
                    int col=dl.getColumn();
                    // fetch the data and bail if this fails
                    String data;
                    try {
                        data = (String)support.getTransferable().getTransferData(DataFlavor.stringFlavor);
                    } catch (UnsupportedFlavorException e) {
                        return false;
                    } catch (IOException e) {
                        return false;
                    calendarTableModel.setValueAt(data, row, col);
                    return true;
            });Thanks & Regards,
    Maadhav.
    Edited by: maadhav on Jun 23, 2009 12:29 AM

    Hi All,
    I fixed this issue with some additional logic which allow me to drag and drop the string component from one cell to another cell within in the JTable.
    I am attaching the new logic here, if any one needs use it.
    DefaultTableModel tableModel=new DefaultTableModel(
                new Object [][] {
                    {null, null, null, null,null,null,null},
                    {null, null, null, null,null,null,null},
                    {null, null, null, null,null,null,null},
                    {null, null, null, null,null,null,null}
                new String [] {
                    "Title 1", "Title 2", "Title 3", "Title 4","Title 5","Title 6","Title 7"
            JTable table = new javax.swing.JTable(){
                public boolean isCellEditable(int row, int column)
                    return false;
            table.setModel(tableModel);
            table.setDragEnabled(true);
            table.setDropMode(DropMode.USE_SELECTION);
            table.setTransferHandler(new TransferHandler(){
              public int getSourceActions(JComponent c) {
                    return DnDConstants.ACTION_COPY_OR_MOVE;
                public Transferable createTransferable(JComponent comp)
                    JTable table=(JTable)comp;
                    int row=table.getSelectedRow();
                    int col=table.getSelectedColumn();
                    String value = (String)table.getModel().getValueAt(row,col);
                    StringSelection transferable = new StringSelection(value);
                    table.getModel().setValueAt(null,row,col);
                    return transferable;
                public boolean canImport(TransferHandler.TransferSupport info){
                    if (!info.isDataFlavorSupported(DataFlavor.stringFlavor)){
                        return false;
                    return true;
                public boolean importData(TransferSupport support) {
                    if (!support.isDrop()) {
                        return false;
                    if (!canImport(support)) {
                        return false;
                    JTable table=(JTable)support.getComponent();
                    DefaultTableModel tableModel=(DefaultTableModel)table.getModel();
                   JTable.DropLocation dl = (JTable.DropLocation)support.getDropLocation();
                    int row = dl.getRow();
                    int col=dl.getColumn();
                    String data;
                    try {
                        data = (String)support.getTransferable().getTransferData(DataFlavor.stringFlavor);
                    } catch (UnsupportedFlavorException e) {
                        return false;
                    } catch (IOException e) {
                        return false;
                    tableModel.setValueAt(data, row, col);
                    return true;
            });Thanks & Regards,
    Maadhav..
    Edited by: maadhav on Jun 23, 2009 5:26 AM
    Edited by: maadhav on Jun 23, 2009 5:28 AM

  • Grant access to all the views created in user schema to another schema

    How to grant access for all the views created in own HAGGIS schema to comqdhb schema on the HAGGIS database.
    Oracle Grant Privileges
    ===============
    Object privileges assign the right to perform a particular operation on a specific object
    I read that we can use select 'grant select on' ||view_name||'HAGGIS' user_views where owner='COMQDHB'
    Is this right
    Oracle System Privileges
    ===============
    System privileges should be used in only cases where security isnt important,because a single grant statement could remove all security from the table
    Role based security
    ============
    Role security allows you to gather related grants into a collection-since the role is a predefined collection of privileges that are grouped together.privileges are easier to assign to users.
    [http://www.dba-oracle.com/art_builder_grant_sec.htm]
    can we grant select update to all the views at a time to the other schema.
    Are there any other ways to secure the data other than creating users and assigning roles.
    Thank you
    Edited by: Trooper on Dec 23, 2008 9:24 AM

    I think what was suggested was that you use SQL to generate the grants on each and every view, that is, you use SQL to generate SQL where the SQL being generated is "grant select on view_name to role'"
    If you users to connect to Oracle you have to create usernames for them though if the users only connect via an application the application might run just as one user and access to the application is controled via application security. The control on the application can be via Directory Services such as OID or MS Active Directory. User access to Oracle can also be controlled via OID.
    To connect to Oracle you can use OS authenication (not recommended), usernames with passwords, or via Advanced Security Option which supports single sign-on products like Kebros or Oracle Internet Directory etc....
    Example using SQL to generate SQL
    How do I find out which users have the rights, or privileges, to access a given object ?
    http://www.jlcomp.demon.co.uk/faq/privileges.html
    HTH -- Mark D Powell --

  • When editing an image in ps from a lr 4.2 smart collections image not shown back in smart collection

    Hi all,
    I have noticed at LR 4.2, that if you edit an image of a smart collection using PS (edit in PS function threw LR) and then save, the image is not appearing in the specific smart collection. Instead  image appears in the parent folder from where the smart collections retrieves images.
    Has anyone notice that as well??
    Forgot to mention that my parent folder with files is a collection created with virtual copies of seleveted files. If i edit in Photoshop directly threw this virtual copies collection then the files appears in smart collections as well. but if i edit in PS directly from smart collections then files dont appear into smart collections neither at the virtual copies collection!!

    "obviously you use virtual copies when creating those collections" - why? It seems to me that this just increases the number of images in your Library for no benefit, unless you want to independently edit  the two image versions, one inside the Event collection and one outside the collection. If you ever wanted to see an unedited version of a particular image, LR retains the history (and before/after view) needed to show that, within the single thumbnail.
    It is not necessary to make a Smart Collection in order to show only picked images from a particular event. You can use a Filter to show just the picked images and hide the rest. That means you can work inside the collection, and that means that when you edit an image to PS, the new LR version WILL inherit the collection membership as well as the Pick status, and therefore will immediately show next to the image it is based on.
    I think this is going to be simpler and easier - BTW you don't have to go back to Library Grid view in order to apply filters, only in order to configure them in the first place. By saving Filter presets with a name, you can then select between these directly [from the menu at the right end of the Filmstrip] while you work, even in Develop- for example, "no filter", "picked", "unpicked", "rated two or more", whatever you want. Also you can switch between the recently-viewed collections and folders [from a menu when you click on the image details text toward the left end of the Filmstrip], to change the underlying content of the Filmstrip, to which you are applying these filters.
    By "using selection criteria other than membership in a manual collection", I just meant: a special keyword, or a particular folder, or some combination of such things. But if you prefer to put images into a Collection, you can just use that directly and IMO you don't need the SC.
    I personally like to have some kind of sufficiently identifying keywords on the image anyway, so that Exported copies will also show this information automatically... since an exported image will not reveal what collection its master image belonged to, that classification alone is not enough IMO.

  • You are not authorized to display the case component, when using copy

    I copied the standard UDM_SPS_CASE_RECORD and created a Z version with no changes, in addition also copied the standard Case Record model with no changes. I have entered my new case record model into my new element and tied both the to case type. When trying to create a case get a message "You are not authorized to display the case component"
    SU53 looks good, and BASIS did a Trace and did not see anything.
    When I change the configuration back to use the standard no issues and case is created. Anybody know what the issue might be?
    Thanks

    dear friend,
    when you get this error on screen type /NSU53 , hit Enter and get a new screenshot
    if you see the message ""The last  authorization check was successful" that means nothing to do with Basis team, it could be a custom message - talk to abaper ;
    but if you see some objects there (Authorization check failed) - please pass to security or basis guys
    ask / try another user which hasn'rt such error and comare the roles you and he/she has - try to find out the difference
    good luck!

  • How do I Pass a parameter to a SQL Component Task where the source SQL statement is also a variable

    Hi,
    I have been tasked with making a complex package more generic.
    To achieve this I need to pass a parameter to a SQL Component Task where the source SQL statement is also a variable.
    So to help articulate my question further I have create a package and database as follows; -
    USE [KWPlay]
    GO
    /****** Object: Table [dbo].[tblTest] Script Date: 05/14/2014 17:08:02 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    CREATE TABLE [dbo].[tblTest](
    [ID] [bigint] IDENTITY(1,1) NOT NULL,
    [Description] [nvarchar](50) NULL,
    CONSTRAINT [PK_tblTest] PRIMARY KEY CLUSTERED
    [ID] ASC
    )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
    ) ON [PRIMARY]
    GO
    I populated this table with a single record.
    I unit tested the SQL within SSMS as follows;
    SELECT * FROM dbo.tblTest
    Result; -
    ID           
    Description
    1             
    Happy
    DECLARE @myParam NVARCHAR(100)
    SET @myParam = 'Sad'
    UPDATE dbo.tblTest SET [Description] = @myParam FROM dbo.tblTest WHERE ID = 1
    SELECT * FROM dbo.tblTest
    Result; -
    ID   
    Description
    1    
    Sad
    Within the package I created two variables as follows; -
    Name: strSQL
    Scope: Package
    Data Type: String
    Value: UPDATE dbo.tblTest SET [Description] = @myParam FROM dbo.tblTest WHERE ID = 1
    Name: strStatus
    Scope: Package
    Data Type: String
    Value: Happy
    I then created a single ‘Execute SQL Task’ component within the control flow as follows; -
    However when I run the above package I get the following error; -
    SSIS package "Package.dtsx" starting.
    Error: 0xC002F210 at Execute SQL Task, Execute SQL Task: Executing the query "UPDATE dbo.tblTest SET [Description] = @myParam FR..." failed with the following error:
    "Parameter name is unrecognized.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.
    Task failed: Execute SQL Task
    Warning: 0x80019002 at Package: SSIS Warning Code DTS_W_MAXIMUMERRORCOUNTREACHED. 
    The Execution method succeeded, but the number of errors raised (1) reached the maximum allowed (1); resulting in failure. This occurs when the number of errors reaches the number specified in MaximumErrorCount. Change the MaximumErrorCount or fix the
    errors.
    SSIS package "Package.dtsx" finished: Failure.
    I also tried; - 
    Name: strSQL
    Scope: Package
    Data Type: String
    Value: UPDATE dbo.tblTest SET [Description] = ? FROM dbo.tblTest WHERE ID = 1
    However I received the error; - 
    SSIS package "Package.dtsx" starting.
    Error: 0xC002F210 at Execute SQL Task, Execute SQL Task: Executing the query "UPDATE dbo.tblTest SET [Description] = ? FROM dbo...." failed with the following error: "Parameter name is unrecognized.". Possible failure reasons: Problems with
    the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.
    Task failed: Execute SQL Task
    Warning: 0x80019002 at Package: SSIS Warning Code DTS_W_MAXIMUMERRORCOUNTREACHED.  The Execution method succeeded, but the number of errors raised (1) reached the maximum allowed (1); resulting in failure. This occurs when the number of errors reaches
    the number specified in MaximumErrorCount. Change the MaximumErrorCount or fix the errors.
    SSIS package "Package.dtsx" finished: Failure.
    Kind Regards,
    Kieran.
    Kieran Patrick Wood http://www.innovativebusinessintelligence.com http://uk.linkedin.com/in/kieranpatrickwood http://kieranwood.wordpress.com/

    Tried; - 
    Name: strSQL
    Scope: Package
    Data Type: String
    Value: UPDATE dbo.tblTest SET [Description] = ? FROM dbo.tblTest WHERE ID = 1
    and; - 
    Result; - 
    SSIS package "Package.dtsx" starting.
    SSIS package "Package.dtsx" finished: Success.
    Therefore the answer was to put the parameter number rather than the parameter name under the parameter mapping tab-> parameter name column. 
    Kieran Patrick Wood http://www.innovativebusinessintelligence.com http://uk.linkedin.com/in/kieranpatrickwood http://kieranwood.wordpress.com/

  • Coming up with the error - "Runtime error '429': ActiveX Component Can't cr

    Hi,
    While trying to edit the XML tag in a .rtf file (Microsoft Word 2010), coming up with the error - "Run time error '429': ActiveX Component Can't create object.
    Any help in resolving this is greatly appreciated.
    Rgds,
    Kiran Panditi

    Remove and reinstall dotnetfiles by running setup.exe located at the following path:
    32 Bit Win 7
    C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\DotNetInstallFiles
    64 Bit Win 7
    C:\Program Files (x86)\Oracle\BI Publisher\BI Publisher Desktop\DotNetInstallFiles
    FYI, BI Publisher Template Builder 10.1.3.4 does require Administrator rights to run.
    Cheers,
    ND
    Use the "helpful" or "correct" buttons to award points to replies / Mark the thread as answered, if your question is answered.

Maybe you are looking for

  • WYSIWYG editor upload with images

    Hello, friends! I need help solving following problem: I need to create WYSIWYG editor, which just to enter text and image. Other options (like font-size, font-weight...) not need. Then when submit the form with richedit, all data in form with images

  • Problem with the Display Driver

    Hi. I just got this message when I started Adobe Photoshop today, that's the CS4 edition, about that there was a problem with the Display driver: "Photoshop have encountered a problem with the display driver, and has temporarily disabled GPU enhancem

  • How to properly import from Illustrator?

    When I copy geometry to the clipboard and paste it into Muse, there is a black rectangle around the actual geometry that I can not select. Is there a way to make this work?

  • DB13 Full Database Backup - Error

    Hello Everybody, Got this error with DB13 Full Database Backup. 2006-05-28 07:20:13.92 spid91    BackupMedium::ReportIoError: read failure on backup device ' ERB-HQ-BK2\SAPBK\DVE.BAK'. Operating system error 59(An unexpected network error occurred.).

  • Multiple Guest Accounts / Behind-the-scenes Login

    How would we go about logging a visitor in as a specific user behind-the-scenes (without them even seeing the Login Screen)? This question is driven from a requirement where we need to display a replica of the subportal branding at the guest view lev