Dynamic Form? Is this possible?

Hello
I am trying to create a application to store Biblography references so researchers dont forget who they are citing. It will be similar to an address book, but with different form fields depending on the type of reference.
For the form where users enter the different fields for a reference, rather than making a form for every type of reference I am trying to make a dynamic generic screen which adds fields depending on the type of reference. To do this I have a string array for each type of reference, which contains the names of all the required fields e.g.
private String[] bookCitation = { "Title", "Author", "Edition", "Series or Volume Number" "Publisher", "Year of Publication", "Place of Publication"};
private String[] websiteCitation = { "Title", "Author", "Edition", "Series or Volume Number" "Publisher", "Year of Publication", "Place of Publication"};
private String[] selection;
Then in the form screen, the system looks at what type of source the user chose (which is stored to string array variable 'selection' ), and then measures the length of that array, then initates a 'for' loop that creates textfields for each of the fields.
I have declared 10 textfield variables at the start of the java file with the names field_0, field_1, field_2 ... field_9. (More can be added later if required)
What I want to know if this is a feasible method in java, and also how could i change the number of the textfield variable to field_x, for each instance of the for loop. e.g when x = 0, i want field_0. I could use a catch statement for each field number if necessary, but this method looks more efficient if it works.
Here is the code for the entry screen;
private Screen addEntryScreen()
addEntryScreen = new Form("New Reference");
addEntryScreen.addCommand(cancelCommand);
addEntryScreen.createCommand(addCommand);
addEntryScreen.setCommandListener(this);
for(x = 0, x < selection.length, x++)
field_x = new TextField("selection[ x ]", null, 50, TextField.ANY);
newProjectScreen.append(field_x);
for(x = 0, x < selection.length, x++)
field_x.delete(0, field_x.size());
display.setCurrent(addEntryScreen);
return addEntryScreen;
I hope that all made sense
Many Thanks
Max

I have declared 10 textfield variables at the start of the java file with the names field_0, field_1, field_2 ... field_9. (More can be added later if required)
No! Use an array or Vector of TextFields.
this method looks more efficient if it works.So you couldn't try it to discover that it doesn't?
It looks like you need to spend some time in core java before you continue in Java ME apps. here's a link to the tutorial:
{color:0000ff}http://java.sun.com/docs/books/tutorial/index.html{color}
Learn to use arrays and Vector.
There are a few other points I would like to make about your code:field_x.delete(0, field_x.size());is equivalent to but less easy to read thanfield_x.setText("");Your method addEntryScreen () returns a Form object addEntryScreen, which is confusing. It would be better to call the method getEntryScreen () and have it return entryScreen, which would be setCurrent by the calling routine.
addEntryScreen.createCommand(addCommand);Form does not have a method createCommand.
In this linefield_x = new TextField("selection[ x ]", null, 50, TextField.ANY);you are setting the String "selection[ x ]" and not the contents of selection [x] as the label for the TextField.
Try to get a good grounding in the basics, it'll serve you well later.
luck, db
To post code, use the code tags -- [code]Your Code[/code]will display asYour CodeOr use the code button above the editing area and paste your code between the tags it generates.

Similar Messages

  • Oracle forms is this possible?!?

    hi, all.
    I am a java developer and i am not familiar with oracle forms 10g.
    Recently i had a project about digital signing of web forms(on java). So the idea was: We have applet that runs in the client browser, it uses the JSObject to collect all input fields and it's values from CUSTOM web form and create xml document, that must be signed. This applet is like a lib.
    I must do the same thing with a oracle form.
    Is this possible: collect the oracle form's items on the client??? The form is custom i.e. unspecified items and count items.
    If this is possible the next step is to verify the signed xml on the server. So how does oracle forms work. Is there a server side. What is the architecture? Could the xml be passed to the server and how the oracle form's items must be accessed on the server(i need them to verify the xml).
    I will be glad if you could help me soon.
    Excuse me for my bad english :(.
    Best regards.

    What do you mean? :( As i said i am not very familiar with oracle forms.
    Here is simple scenario of usage:
    Oracle developer creates a oracle form. In some way i have to deliver for example jar. He adds it to to his project and in some way specifies that that jar signes his form.
    The form is in module so i guess i have access to it.
    What i learned for now is that there are VBeans that could help to do this(item collection). I found that this beans are graphical components too i.e. we can place awt Componets in them, but may be i don't need to use them. I read that the VBean is on the middle trier, but when i wirte JOptionPane.showMessage(..) it is displayed on the client i can't understand why. I need to collect the items in the form not in the bean.
    The question is can i collect in some way the form's items on the client. Oracle form runs in some applet could this help me? Totally confused. The documentation for oracle forms is very unclear for me.
    I forgot to say that there are some classes in the oracle forms lib like "RadioButtonItem", TextFieldItem and so on. Are theze coresponding to form items? May do some connection between them?!?
    Edited by: user9536806 on Oct 1, 2008 3:06 AM
    Edited by: user9536806 on Oct 1, 2008 3:11 AM

  • Issue tabbing across page breaks in dynamic form

    Hi all,
    I have a strange problem that I'm having trouble getting to the bottom of, relating to my dynamic form.
    This form grows and shrinks depending on how the user fills it out.  I have a questionnaire section where certain questions are hidden or shown depending on previous input.
    Things get interesting when I look at the tab order.  Sometimes when tabbing forward or backward across page breaks, the focus lands on a spot that I cannot identify.  There will be no cursor and I can not type.  However if I continue to tab in the same direction, I can see that it is still going in the correct sequence.  It just looks like for some reason, in those places, focus is put in the wrong component.  But if I type different input into the prior fields (ones that affect the length of the pages) that causes the field to move to different place where it's not adjacent to a page break, and then tabbing to the field in either direction works fine.  It seems that only when it's beside a page break, it becomes problematic.
    Also, it only seems to be a problem if the field gets moved to be adjacent to a page break AFTER the form is initially rendered.  If the field was originally beside a page break by default, then it seems to work fine.
    Just to rule out a possible problem with the tab order configuration, I set my from to Automatic tabs, and even went as far as removing all the <traversal> elements from the form.
    After doing either of those things, the problem still persists.
    Has anyone seen this before?

    Hi Eric,
    I have seen funny behaviour when tabbing within Preview in LC Designer. It may be picking up a read-only item in the Master Page.
    Good luck,
    Niall

  • Dynamic Form Print Dialog Presets

    For a Dynamic form, is it possible to define the Print Dialog Preset for Page Scaling?
    In Acrobat, the option (File > Properties > Advanced ) is disabled for Dynamic forms, and there doesn't seem to be a way of setting it in Designer.
    Is there some way to trick it (i.e. by setting it in some xml in the xdp that is not documented)?
    It's a real pain having dynamic forms that get shrunk when printed.....

    Hi,
    Yes, it is not a pretty (or complete) solution!!
    I don't think you can disable the File/Print or Control+P (nor would you want to). In Acroforms you can set the print parameters, but as far as I know you cannot do this in LC Designer XFA forms.
    This probably is not going to help you but in any one session after the user prints using the button and then subsequently goes File/Print or Control+P, then Acrobat will "remember" the "no scaling".
    Some of our multi page forms are split into sections, so to encourage users to use the print button we have buttons in each section, which are set to print that section only (this is useful to the user 'cause they do not need to work this out). If the user wants all of the document, they can click the radio button in the print dialogue.We also colour the print buttons green (with white captions) as a positive / go colour.
    Someone else may have a more elegant / efficient solution that sets the print parameters on opening the form or prePrint.
    I don't know what Adobe are planning, but you could add it to the wish list: http://forums.adobe.com/community/livecycle/livecycle_next/feature_requests
    Sorry I could not be of more help!
    Good luck,
    Niall

  • Creating dynamic datasources. Is this possible?

    Can I create a 'subset datasource' from an existing datasource
    and then pass this subset datasource to the <jbo:RowsetIterate>
    Let's assume I have a datasource containing 100 records.
    How is is possible to create a new datasource from the exiting datasource
    which will contain 10 records and then this new data source will be passed
    to <jbo:RowsetIterate>?
    I'd like to write a JSP Tag which reads the datasource and creates a subset datasource
    dynamically
    public class SubsetDS extends TagSupport
         public int doStartTag() throws JspException
            ApplicationModule am  = dataSource.getApplicationModule();
            ViewObject vo = am.findViewObject("V0");  
             while(vo.hasNext()){
            Row r = vo.next();
                   // Iterate based on a certain condition and put the new records
            // in a dynamically created DataSource
    Is this possible?

    I don't know about the custom JSP tag part, there is a <jbo:CreateViewObject> tag and ApplicationModule.createViewObject() methods for defining ViewObjects at runtime. We were not able to locate a mechanism for actually running a query against one VO to select rows for a second VO (whether defined at compile-time or runtime). We created a VO at runtime so we could base it's result set on another VO.
    See "Ways to Add a View Object Instance to the Data Model at Runtime" topic in JDev help (we're using 10.1.2, but there's a <jbo:CreateViewObject> tag going back to at least 9.0.3.3); I located using JDev's Help's text search for createviewobject.
    In our case, because the two queries were related (subset), we obtained the where clause from the VO that we defined at compile-time and whose where clause is being set at run time by values passed in from an HTML query form. We then applied that where clause to the dynamically created VO to get the desired subset.
    Hope that gives you a starting place and helps.

  • Is it possible to update multiple tables with a dynamic form?

    I have columns from two tables populating a dynamic form. I am trying to have the form update both tables on submit. I have tried both a linked transaction and a custom transaction but I am not making progress. Only the master table is being updated. Is it possible with ADDT to update two tables with a dynamic form?

    I meant
    SXMSMSTAT
    SXMSSYERR
    Thanks.

  • Dynamic Forms in FormsCentral? Is it possible ?

    Hy,  I'm a complete newby. I've downloaded the Adobe Acrobat XI Pro and this installed FormsCentral as well.
    I did this download as I wanted to created a PDF document which I could sent to some partners of us. They could then fill out this pdf and send it back to us.
    What I would like to have in the document are drop down field that are dependent on one another. So if you select something in the first drop down field, the second one should only show only fields related to the first selection. (and so on)
    A = 1  2  3
    B = A B
    So if you select A in the first dropdown, the second should show 1, 2 and 3.
    If you select B in the first one, the second should show A and B
    Is this possible ?  Am I using the right product ?
    Furthermore, it would be great if these drop down fields could be populated from an external source. (xls, mysql, ...)
    Again, is this possible ? Am I using the right product ?
    Many thanks

    Forms created in Acrobat can do that, but it requires some JavaScript programming. Fortunately, it's not too complicated and there are resources available to help you inderstand how to implement it.
    You posted this in the FormsCentral forum, which is for questions about forms that are used with the FormsCentral service. Although PDF forms can be used with FormsCentral, it is just the form data that gets submitted, not the entire filled-in PDF.
    If you want users to send you the filled-in PDF, you need to Reader-enable the document in Acrobat (unless all of your users will have Reader 11 or Acrobat). This allows Reader-users to save the form and they can then email it. You can set up a button on the form that initiates an email with the PDF attached, but if this doesn't work (and it won't for some users), the user can manually attach to an email.
    As for populating the form from a data file or database, that's possible, but it's easiest if data is converted to a form that Acrobat can easily import, such as FDF, XFDF, or tab-delimited format.
    If you have  more questions, I would recommend using the Acrobat Forms forum here: http://forums.adobe.com/community/acrobat/forms?view=discussions

  • How to call a form from WEB.SHOW_DOCUMENT 10g  Is this possible?????

    how to call a form from WEB.SHOW_DOCUMENT
    I would like to call a form using the WEB.SHOW_DOCUMENT the idea is from the menu that is attached to the form instead of use call_form use WEB.SHOW_DOCUMENT(...my_newform.fmx)
    Is this possible?????

    Hi ,
    I think yes...but under some circumstances....
    In your formsweb.cfg file you should define a named configuration alias... such as:
    [TEST]
    workingDirectory=C:\TEST_DIR
    form=C:\TEST_DIR\MY_NEWFORM.FMX
    Then , after stopping , starting your OC4J instance..... you call that as (in a button , for example):
    web.show_document('http:<your_server>:<port>/forms/frmservlet?config=[TEST]',_blank);
    I have not tested it.....
    Regards,
    Simon

  • Hi, I have got three ipad minis which I would like to use in a business environment whereby the users can see and update a single calender.  Is this possible? Would they have to be run form one account?

    Hi, I have got three ipad minis which I would like to use in a business environment whereby the users can see and update a single calender.  Is this possible? Would they have to be run form one account?

    Drrhythm2 wrote:
    What's the best solution for this? I
    Copy the entire /Music/iTunes/ folder from her old compouter to /Music/ in her account on this new computer.

  • Feature Request: I want Firefox 4 to remember search history, but not form data, without having to use a third-party plug-in. Is this possible now and I am just not seeing it?

    I don't like having Firefox (or any browser for that matter) remembering any form history, as I do not see this as secure data storage (IT security/network engineer). Currently the only way to disable this is to also disable search history, which is a useful tool to have, and I am not worried about the security of that data (I don't search for sensitive data). I would like to see these two options under the Privacy->Custom Settings Preference to be separated so that people can more finely control what of their data is stored.
    Is this possible without the use of third-party plugins?

    Wow. Okay...
    I'll let the real veterans in this forum tackle your issues one after the other. But, I can tell you, all will be well.
    My only comment would be re: your computer specs:
    BJReis wrote:
    .  This may be due to somewhat older equipment:
    GHz Intel Core Duo MacBook Pro with a 4GB memory computer with Ddr3 running OSX 10.8.4
    To be completely honest, FCPX is a RAM hog. It just is. But, RAM is relatively cheap, and the pay-off is good.
    4GB is right on the edge, IMHO. 16G is ideal.
    I wish you luck, hang in there, and standby for more help.

  • Calling Forms 6i from Reports 6i. Is this possible. Run Product in Reports

    Re: Calling Forms 6i from Reports 6i. Is this possible?
    Hello,
    I have need programming in Oracle 9.x and using Forms and Reports for about 1.5 years. My ERP application calls a report from a form. I DO NOT have source code for the FORM. But, I DO have source code for the Report. So, from the Report 6i, I would like to call an Oracle Form 6i. Note: Not WEB based. My question is, IS THIS POSSIBLE. I can not find a command like Run Product in Report for calling a Form Application. Can someone please help me. I am under the gun to have this ready in a couple of days. Can I call an Active X Application from Reports..if Oracle Forms DOES NOT WORK. This needs to be a Form Application because of the nature of this request.
    Thank you
    Dennis

    Thank you
    ...the ERP vendor based on a form icon button will call a report. They will pass a TAG_NUMBER from a database record (that they just inserted) to the report. This tag_number will link to other tables and will display the report. The problem is ??..there is additional information that the user needs to scan into the database BEFORE the report runs. This is part of the business work flow.
    I have options.
    1) Get the ERP Vendor to call a FORM based on the name I provide to them.(Not really an option since they are unwilling to make custom mod changes.)
    2) Have the user key into the REPORTS PARM FORM. And I will update the tables...
    3) Call an Active OCX popup FORM from Reports and then update tables. Is this possible from Reports???..I am not sure if I like to introduce ms vb into an oracle application. It just does not seem to be a correct solution/procedure.
    4) Pay the ERP Vendor as a custom mod to make the changes for us. (unlikely because they do not like making custom mod changes)
    5) ....any more ideas/comments please let me know..
    Thank you Again
    Dennis Aubrey

  • I would like to create a simple vote form that members can hit the reply button and record their preference in a check box. Is this possible on iPad?

    I would like to create a simple vote form that members can hit the reply button and record their preference in a check box. Is this possible on iPad?

    Go to the App Store and search on "Forms Management".
    There are a lot of candidates.

  • I am trying to make a fraction in a form field and I would like it to have an over/under appearance. Is this possible?

    I am trying to make a fraction in a form field and I would like it to have an over/under appearance. Is this possible?

    What system and iPhoto version are you running?  What theme are you using.
    All of my calendars do have the month starting on Sunday,  Don't know of any way to change it.  Where are you located?
    How do you have your Calendar application's preferences set to, Sunday or Monday start of week? 

  • Need help creating an "insert file" to add an attachment to a form?  Is this possible?

    I am trying to add an "insert file/attachment" field to a form that I'm creating but am having trouble finding information.   Is this possible?   Please advise.
    Thank you!

    Hi,
    The form with add attachment feature on link http://eslifeline.files.wordpress.com/2009/04/addattachments.pdf
    works fine but when I copy paste objects to use 2-3 times on page 2 and 3 then after attaching different files at all 3 sections, I see only same type of files when using view attachments. I understand it is same like when making 2 fields name same act same together.
    Please help me make the javascript run differently (as new) for each add attachment function.
    Thanks

  • Is this Possible? I want to embed a form...

    Is this possible? I want to embed a client form on our staff website. I want each staff member to complete a client form each day. The form will stay the same, but staff will insert the current date and current activities for the day. The daily form contents would then be sent to me.  Thanks for your help

    Hi
    Jalil Cracker,
    >>when user pres n then it must go to a form but error arises and not working good and threading is not respondin
    Could you post the error information? And which line caused this error?
    If you want to show Form1, you can use form.show() method
    Form1 frm = new Form1();
    frm.Show();
    In addition, Cosmos is an acronym for C# Open Source Managed Operating System. This is not Microsoft product.If the issue is related to Cosmos, it would be out of our support. Thanks for your understanding. And you need raise an issue at Cosmos site.
    Best regards,
    kristin
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • I am creating a request for proposal form and I need to add a commission structure field.  I created a table using the ranking field and now I need to delete the "dots/buttons" and turn them into text fields, is this possible?

      I created a table using the ranking field and now I need to delete the "dots/buttons" and turn them into text fields, is this possible?

    It sounds like what you are trying to do is edit the choices in a likert field to something other than the default radio button. This is not something that you can do in Formscentral at this time.
    Andrew

Maybe you are looking for

  • Display Icon not shown during a Flash is running

    Hi, I have a Display Icon with text, which is shown all the time. Only during the Flash movies are running, I want it not shown, because the Flashs have the same dimensions as the presentation window. So I tried it with a variable. I gave the Display

  • Sequence of Activities & Divestiture

    Our 4.0 implementation uses the default COI sequence of activities below: Seq #     Act.     Activity text                   Stop here 1     01     First Consolidation      2     16     Horizontal Merger      3     04     Amortization of Fair Value A

  • Dragging PSD from Bridge imports as a menu?

    Why does Encore create a new menu if I drag in a .psd file that I want to put into a slideshow? Shouldn't it ask a question if it's going to be that pompous? Thanks, Laz

  • Error When Installing InDesign CS3 - Trial

    Hello, I am on a Compaq PC with vista. Yesterday I downloaded the trial version of InDesign and tried to install it. It only installed the "shared components" and I got a failure message for everything else. I called tech support - which didn't go ve

  • Hi All  i have a ipod shuffle and it won't charge have tried everything  any help PLEASE  thank you

    Have plugged ipod shuffle in computer  but it says that no ipod is reconized   why i don't know when i plug it in itune should come up but doesn't any help please ps i'm a women  as easy as poss lo thank you