Control Array or Dynamic Controls in adf

Hi All,
Is that possible to create control arrays or we can create dynamic controls in adf like .net. Please advice or share some sample code.
Thanks,

Thanks for your reply. Actually i want to create some buttons in runtime. means if i have 10 records in table i need 10 buttons on my page but they should share the same code by passing the index of control.
Thanks

Similar Messages

  • How to create Dynamic Tab in ADF, to achive multiple transaction at a time

    Hi,
    I want to create Dynamic tab in ADF, to achieve Multiple transaction at a time by opening new tab for a transaction.
    For Example: User can order multiple product at the same time by opening the order form in multiple TAB.
    Scenario:
    i) When user will click on addNewTab, new tab will be added.
    ii) If user Click on close btn on Tab, Tab will be closed (Transaction will be removed).
    iii) user can save all transaction( can save multiple product Order in different tab.)
    iv) when user select any product in form, Rename the Tab name as well.
    Need Help on this :(
    Thanks & Regards
    Pratap Rudra

    Hi Rudra,
    You can implement all your problem using Tab API .
    When you are closing the tab you can roll back transaction which you want.
    Tab API will give control over closing and opening tab.
    And also you can give tab name while opening the tab.
    Thanks
    Prateek

  • Search 1 d array of dynamic data

    Hi,
    Is there a reason why the 'Search 1 D Array' function doesn't give the expected results when working on Dynamic data?
    I am trying to use one where it's input array comes from a Comparison VI inside a For loop, and so is an array of 0's & 1's.
    The element that I have set it to look for is 0, a Numeric Constant converted to Dynamic Data Type using the Convert to Dynamic Data function.
    It appears to me that regardless of whether the array contains a 0, the output is always -1, which indicates that a 0 was not present.
    Any assistance much appreciated
    Thanks
    Lama

    Stradis,
    Thanks for your reply.
    I am also using LabVIEW 8.2.1
    The reason that I am using Dynamic Data types is because this is what the Comparison VI require as input, and produce as output.
    I am using one Comparison VI to compare some DMM readings against a spreadsheet of expected values, with it set to equal within tolerance and outputting one result per datapoint. This will put a 0 against any DMM reading that falls outside of range.
    I am using a second Comparison VI in a similar way, but set to output one result for all channels to produce an overall pass or fail result (1 or 0) for each sweep of the DMM.
    The DMM is set to measure resistance, 2 wire mode and the two wires are routed through two switching matrixes. I am connecting one of the DMM inputs to the first wire and measuring between it and the remainig wires in turn, via the second switching matrix. This is what I am calling one sweep. I am then moving the first DMM input to the second wire and repeating the sweep, etc.
    Consequently I get a 1 D Array of dynamic data out of my For loop, and I want to search it to see if it contains any 0's, which would indicate an overall fail. I had hoped to use the 'Search 1 D Array' function to do this, and if it returned a -1, to use this as an indication that the equipment under test passed all sweeps of the DMM, but as I said earlier I also get -1 for what should be fail conditions.
    I hope you will forgive the spralling mess that is my code, I know that I need to reduce it to a number of sub VI's etc, but I just wanted to see it work first. Hopefully it is attached,
    Thanks
    Lama
    Attachments:
    DMM & 2 Switch Synchronous Scanning 18.vi ‏646 KB

  • Convert "1D array of dynamic data" to "Dynamic data" after auto-indexing with loop

    Hi -
    I have a question about how exaclty auto-indexing works with the Dynamic Data type when exiting a while loop. I'd like to use the DAQ assistant to record data through an analog input (on the MyDAQ) and then replay that data through an analog output. This works fine if I use the DAQ Assistant to record data for a set amount of time:
    However, I run into trouble when I try to use a While loop with a stop button to record data for an arbitrary amount of time. I set the dynamic data tunnel out of the While loop to "Indexing", but then when it exits the loop, it becomes "1-D Array of Dynamic Data" instead of just "Dynamic Data", and get a broken wire when I try to connect it to the input of the DAQ Assistant. I've also tried converting the dynamic data to Array and Waveform data types inside the loop, but have the same issue (they become 2D Array and 2D Array of Waveform respectively when leaving the loop). Try as I might using blocks like Convert to/from Dynamic Data Type, or Array Subset, I'm unable to get them back down to just Dynamic Data or Waveform, which will be accepted by the DAQ Assistant:
    One other small note - I'm not sure if using the "Build Array" function with a shift register accomplishes exactly the same thing as just auto-indexing an array out of the loop - so I've tried both, but still have the broken wire issue.
    I'm assuming this is just a simple issue of using the right block to convert "1D Array of [Something]" to just plain [Something]. Any help appreciated.
    Attachments:
    PWM_FlatSequence.vi ‏101 KB
    PWM_FlatSequence_While.vi ‏129 KB

    I have been facing problem for all temperature values placing the Write to Measurement File outside the Loop. 
    In Error message it says" Source: 1D array of dynamic data and Sink: Dynamic data".
    Is there any means of convering 1D array of dynamic data to dynamic data?
    I would highly appreciate any help.
    Attachments:
    Temperature Logger.vi ‏110 KB

  • Select array elements dynamically

    Hello ... 
    I am trying to write a program where one can select the array elements dynamically from the front panel when the VI is in run mode.
    So far, IC_OpenDevice.vi gives me the various Video formats [It is a 1D array], right now I assume the last but one among this array as an example. But, I would like to design the program in such a way that the user can select any Video Format from the front panel. How do I achieve that ??
    Block Diagram :
    Front Panel:
    Abhilash S Nair
    Research Assistant @ Photonic Devices and Systems lab
    [ LabView professional Development System - Version 11.0 - 32-bit ]
    LabView Gear:
    1. NI PXI-7951R & NI 5761
    2. The Imaging Source USB 3.0 monochrome camera with trigger : DMK 23UM021
    OPERATING SYSTEM - [ MS windows 7 Home Premium 64-bit SP-1 ]
    CPU - [Intel Core i7-2600 CPU @ 3.40Ghz ]
    MEMORY - [ 16.0 GB RAM ]
    GPU - [ NVIDIA GeForce GT 530 ]
    Solved!
    Go to Solution.

    I tried following the same method on my program. 
    However, I get the Error -2147352567 ... Below is the changes I made to my program ... 
    Abhilash S Nair
    Research Assistant @ Photonic Devices and Systems lab
    [ LabView professional Development System - Version 11.0 - 32-bit ]
    LabView Gear:
    1. NI PXI-7951R & NI 5761
    2. The Imaging Source USB 3.0 monochrome camera with trigger : DMK 23UM021
    OPERATING SYSTEM - [ MS windows 7 Home Premium 64-bit SP-1 ]
    CPU - [Intel Core i7-2600 CPU @ 3.40Ghz ]
    MEMORY - [ 16.0 GB RAM ]
    GPU - [ NVIDIA GeForce GT 530 ]
    Attachments:
    Image_Capture_Dev5.vi ‏25 KB

  • Giving arrays a dynamic name

    how would you give an array a dynamic name?
    for(f=0;f<6;f++){
    for(g=0;g<hexArray.length;g++){
    if(f==0){
    var kleurenIndexArray:Array = [] <---- this has to be a
    dynamic name like [kleurenIndexArray+f]
    kleurenIndexArray.push("0x"+g+"00000")
    All the things i've tried haven't worked

    I'm not sure exactly what you're trying to do but to give any
    variable name based on a variable by doing something like:
    x=3;
    this["test"+x]="hello";
    this is the equivalent of writing:
    test3="hello";
    you would do the same for arrays such as:
    x=3;
    this["test"+x]=new Array();
    this is the equivalent of writing:
    test3=new Array();
    however, why not create an array rather than a variable with
    a dynamic name? my example above could be the following instead:
    eg
    test=new Array();
    test[3]=new Array();
    this would give you a multidimensional array.
    Does this answer your question?

  • Image Control in ADF

    Hi,
    I am using the Jdev 11g.
    is there any component which will take array of images path and rotate it.
    my problem is -- I have n number of images and i want to show it in rotating fashion.
    please tell how will i do it using the ADF component.
    Thnaks
    Kiran

    Hi shay,
    Thanks for the reply.
    I have tried out the carousel component but it dose not meet some my application requirement.
    Can you please tell some different way to implement the requirement using only image control?
    Thanks,
    Kiran.

  • Not able to access SOAP web service data control from adf mobile

    Hi,
    I am trying to call web services from adf mobile..
    I have created data control from external web service and it is perfectlly working on web browser..
    But why it is showing an error on emulator??
    Is there any .jar file missing in adf mobile so that it is not supporting a web service?
    Or is there any other problem? Emulator is connected to network and I am able to run WSDL in emulator's browser..
    Please help me to solve this issue..
    Thanks,
    Laxmi

    Emulator is connected to network and I am able to run WSDL in emulator's browser..
    Connecting to WSDL in the browser is not the same as connecting to WSDL in an application.
    To access a web service from an Android device enable a permission in AndroidManifest.xml that allows applications to open network sockets. Add the following uses-permission element.
    <uses-permission android:name="android.permission.INTERNET"></uses-permission>

  • EJB 3.0 / Data control binding / ADF Faces

    We have a great and very useful tool to generate rich client web application. Generate web component from a data structure is easy but manage the full life cycle is a little bit more complex. This complexity is dramatically increased when tool/platform are offering many models to solve the problem.
    In JDev we have three major choices:
    1) adf business components
    2) top link pojo
    3) ejb3.0
    From the client side and in my point of view (at my current understanding) the first and second choice are the easiest way to manage the persistence because they are what i say "bidirectional", that mean i will use the same data structure to persist and synchronize the database. I may only calll a method from the object to put my changes from the midle-tier into the database.
    EJB 3.0 seem to be more cormplex due essentially to the presence of the session bean that acts like conversational api. I like this architecture because it is the most flexible but from my client i have to manage these api's instead of one data structure. This mean for me to catch/detect every updates, new insert or deletes in my business object and to write the corresponding code to apply to correct entity bean methods from my session bean.
    Why not manage this logic in the data control framework by declaring which methods are to use as finder to get the data and which methods are to used to manage the persistence (persist, merge, remove) at object level.

    Exactly what i mean
    Actually Data Control architecture seem to be business object oriented with native method called from the same object to retrieve (the most part done)/synchronize the data with the database.
    This is fine than your architectue don't provide a service layer like session facade.
    With session facade you will access different business method to retrieve data and synchronize you data with the database not different method from the same object like application module do in adf bc.
    I see two solution, the best is that you extend the data control framework to offer standard crud operation and a tools to map these with one or many methods in the same (has to be the same?this is a question of architecture, i think it has to be the same but the framework may have to permit to use an another one for flexibility) session bean. This may be the same from adf bc or top link but the method may be selected automatically by the tool (wizard).
    The second solution is to build specialized sesssion bean with mandatory standardized methods and map this directly in the framework. The advantage i see is that the updates may be collected only once by the session bean by passing a specialized object manipulated by a specialized method.
    In fact the best solution is something that combines mapping in the data control and a specialized set of methods in the session bean to execute a transaction in a whole at the server level.
    What is to be decided if the framework (data control part) has to maintain a status for attribute (or set of attribute that correspond to a data control node) that are new inserted, updated or deleted and to synchronize only the changes.
    I'm very surprising that something like that it is not already in the framework ?
    How do I have to take care of changes made in a data control node object when i have used it to generate an adf faces by example in master / detail pages with an edit form like in otn examples. I see that the detail list in the detail table is updated so the data control is updated correctly by the edit form when i submit the changes but how to finally get this changes and synchronize with the database ?
    ps i reply previously by mistake by email sorry ... not that the email is not exactly the same as the post here
    Michel

  • Could not find "ADF Data Controls" in ADF tutorial 10.1.3.1.0 chapter 2

    Hi
    I am currently learning Oracle ADF followed by 10.1.3.1.0 tutorial. ( September 2006 Revision ), I installed Oracle Jdeveloper 10.1.3.2.0 on my pc with remote 10.2.0.2 database connection.
    In the manual page 2-17, the final step of that chapter, it requests to create ADF data controls associated with SRPublicFacadeBean.java . It says, right-click the SRPublicFacadeBean.java node and choose "Create Data Control" from the context menu. However, I could not find such option in the context menu. Does anyone know why that happened.
    Thanks ahead
    Sean
    Edited by: ma_sean on Oct 8, 2008 4:14 PM

    Did you install the J2EE edition of JDeveloper or the Studio edition?
    You need the studio edition to be able to create data controls.

  • The control of adf media does not display even the Control attribute is set

    Hi
    I am trying to play a clip in a jspx page. I use an ADF media to embed the file and play the file by quicktime. I set the control display attribute to "all" or "typical" but the control does not display when the browser(FF) display the clip.
    Can anyone help me?
    Thanks

    try adding mime-mapping in web.xml. Just a suggestion and I haven't tried this control.

  • Using UCM data controls in ADF application

    Using *.6 Jdeveloper/UCM/Protal Application/UCM
    Calling all the experts in Webcenter/Spaces/UCM/ADF.
    We have a requirement to design search inteface for Documents stored in UCM for Webcenter Portal and Spaces application.
    Our approach is
    Design simple ADF application (no security/templates)
    Bounded task flows using fragments.
    Framents to use UCM data controls (provided by oracle)
    UCM data control definition is extended to use custom metadata.
    package the application.
    Added as ADF library jar to portal application
    Added as Shared Library to Spaces application.
    Question.
    Is this approach sound?
    Does UCM data controls provide all the functionality, for example if we want to read a option list for custom metadata or need custom metadata in return table?
    Can we add other methods to UCM data control provided by Oracle or should we create different one?
    Is there good documentation for such requirements. We have acces Webcenter developers guide which throws some light on UCM data controls.
    Let me know if more clarity is needed...
    Regards

    Hi.
    One of my last components was a custom "Document Explorer" and I used for first time JCR Data Control (Custom UCM Data Control provided by Oracle).
    Sharing my experience I did something similar to you:
    1) Create a ADF Bounded Task Flow and test it individually.
    2) Add generated ADF JAR Library to WebCenter Spaces shared-lib.
    3) Add your Task Flow to Resource Catalog.
    Challenges that I found using custom Data Control:
    1) When items retrieved are content/files all custom metadata can be retrieved OOTB.
    2) When retrieving folders don't provide custom metadata like files. I used RIDC with JCR Data Control to provide all the information relative to folders. If you don't need more information about folders than the name, URI and icons then is OK :).
    3) Using JCR Data Control registers in DataControls.dcx UCM Connection name used when generate JCR Data Control. After deploy your ADF JAR Library in WebCenter Spaces you'll have problems if you don't have a WebCenter Content Connection created with the same name. (Not talking about export UCM Connection with ADF JAR Library, Data Control uses a Connection name by itself :)).
    I added extra functionallity with RIDC (not extending JCR Data Control).
    I hope this help you.
    Regards.

  • How to change control in adf table

    Hi
    I am using jdev 11.1.2.1.0
    I have a view object which have one boolean type transient field and set the control type in UIHints tab to CheckBox.
    I create a jsf page and drop the iterator from data control (Created by that view object).
    On jsf page the control for transient field is check box and I want to convert it to radio button.
    Whenever I am converting this from property window radio button is not displaying on output window.
    Please solve the problem and help me out.
    Thanks

    Hi Sudipto Desmukh
    I am not using LOV for that transient field.
    I just add a transient field in view object.
    Let me explain more about my application that what I want to do.
    Actually I am creating a finance approval application
    I have 2 tables(header and detail)
    On jsf page I take paneltabbed layout which have two tabs one for header and other for detail.
    On first tab I drop header table to create adf table.
    There is on concept which I want to implement that is row locking.
    Means whenever user select any row of header in first tab and press on claim button the associated detail should be display in second tab.
    and that particular record should not be display to any other.
    To select a particular row in header I am using a transient attribute(Named select type boolean) in header view object.
    now I want to display this attribute on jsf as radio button so that user can select only one row to claim.
    i.e. if the value of radio button become true ,that particular row is ready to approve by that user.
    How should I do the same ?
    Please provide the help
    Thank you
    Edited by: Chandan Srivastava on ११ जून, २०१२ ५:३७ अपराह्न

  • Transaction Control in ADF

    Hi All,
    I have multiple APP Modules whcih points to different databases. I have one operation whcih writes data in two databases and commit should occur only if both transactions succeed. I think I should do this by using the commit and rollback operation available for the two app modules data control. So in the backing bean I have a custom method with try catch against transactions. In case of any exception both the transactions will rollback. If there is no exceptions both the commits
    will trigger.
    Is this OK or there is any other recommended way or place to achieve this rather than backing bean?
    Regards,
    Sam

    Hi,
    I do not think ADF supports two phase commit, so you can only do this manually.
    Root application modules will not fix it if you have different database connections either.
    So yes, backing bean is the only good option.
    -Anton

  • Getting Extra classes while creating Data Control in ADF

    I am using Jdeveloper 11.1.1.6.0.
    I was trying to create a Data Control from a Java class (containing event handling code) right click on the java class -> Create data Control.
    I can see many data controls were created in my work space when the operation was completed
    Example: java.io.InputStream.xml, java.net.URI.xml and many more.
    Anybody please suggest is it a problem in Jdeveloper tool or I need to perform any additional step to remove all these files.
    Regards,
    Rajesh

    Hello TimoHahn,
    I can see only the Data controls are getting generated (not the class files).
    Please find the code snippet for my class for which I generated data controls:
    public class ContexEvent {
        public ContexEvent() {
            super();
        public void handleEvent(ActionEvent payload){
            UIComponent component = payload.getComponent();
            Map<String, Object> attrMap = component.getAttributes();
            FacesContext context = FacesContext.getCurrentInstance();
            ELContext elContext = context.getELContext();
            Application application = context.getApplication();
            ExpressionFactory factory = application.getExpressionFactory();
            ValueExpression valueExpr = factory.createValueExpression(elContext, "#{backingBeanScope.NameBean}", Object.class);
            NameBean nb=(NameBean)valueExpr.getValue(elContext);
            //String newVal = (String)payload.getNewValue();
            nb.setFirstName("Rajesh");
            AdfFacesContext adfContext= AdfFacesContext.getCurrentInstance();
            adfContext.addPartialTarget(nb.getNameLabel());

Maybe you are looking for