Field value +1 till max on create new

I have a field called "DayNumber" that needs to be filled automaticly when the button "new" is selected.
It needs to be the previous value +1, till the max value is reached, like in a sequence.
But in this case i cant use a sequence with a trigger.
So i need a computation or a proces, being triggered bij the request of the new button.
I got
set :DayNumber = nvl(:DayNumber,0)+1in a sequence with Conditional Computations on request
What am i missing here?

Mathias axi wrote:
I have a field called "DayNumber" that needs to be filled automaticly when the button "new" is selected.
It needs to be the previous value +1, till the max value is reached, like in a sequence.
But in this case i cant use a sequence with a trigger.
So i need a computation or a proces, being triggered bij the request of the new button.
I got
set :DayNumber = nvl(:DayNumber,0)+1in a sequence with Conditional Computations on request
What am i missing here?For starters, the above code is wrong.
= - Comparison operator
:= - Assignment operator and why do you have the word 'set' there? it is unnecessary.
Computation:
:DayNumber := :DayNumber + 1;With the condition of request = expression 1 , and then what ever the request is. Also, why don't you just give the item a default value of 0?

Similar Messages

  • How to make the fields of the table mandatory while creating new entries..?

    Hi,
    I have created a new Z table which has 6 fields. All the 6 fields are KEY fields and all are of CHAR type. I have generated the table maintenance generator for the same. My requirement is all the fields should be MANDATORY while creating the entries. No field should be BLANK.
    When creating the new entries in the table, even if I don't give any values to some of the fields, it is saving the entry. But, it shouldn't happen like that. If any of the field is kept blank, it should not allow the user to save the entry. Can someone tell me how to approach this. Will there be any settings while creating the table which takes care of this.
    I read somewhere that this can be done using the Table EVENTS. Can someone tell me what is the code that we should write there in the Events which prevents the user from saving the blank fields. While writing the logic in the events, how to check whether the particular field is BLANK or not. Will the values be stored in any internal table kind of thing..?
    My table name is ZCRF_TAB and the fields are FLD!, FLD2, FLD3, FLD4, FLD5 & FLD6. Can someone provide me sample code for my requirement. Thanks in advance.
    Best regards,
    Paddu.

    Hi,I think u have generated Table Maintainance Generator, goto Environment->Modifications->Events
    Select appropriate option by using F4,I think value 05 is appropriate for u r requirement.Enter From routine name.Dbl click on the routine.
    Write the appropriate code like:
    If ZTABLE-FIELD1 is initial.
    Message (E000) with "Fill all the manadatory fields".
    Thats it.Just look at the following docu with screenshots,by this understand how u can use Table Events:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/abap/how%20to%20implement%20events%20in%20table%20maintenance.doc
    Regards,
    Rock.

  • No values in drop down when creating new parameter.

    Hi Everyone,
    I'm new to BOBJ and Crystal Reports and I'm just exploring these tools. I've installed BOBJ and Data Services and I've used those tools to pull the data into my SQL Server 2008 and create a Universe. Now I'm creating a report and I have a question about creating a parameter. When creating a parameter I've selected "New" in the "Choose a Data Source" section but when trying to add an item, there are not values in value drop down box.
    Thanks,
    Anthony

    Hi,
    Try this step, this might help you.
    Add an access restriction in the Universe
        -  In the Universe Designer, open your Universe
        -  Under the menu u201CToolsu201D, select u201CManage securityu2026 - Manage Access Restrictionsu2026u201D
        -  In the u201CManage Access Restrictionsu201D window, add a restriction for the users.
        -  Save the Universe and export the Universe to the repository
    Note: This step is required for the List of Values to update. If you do not need to restrict values per users or group, create a restriction that doesnu2019t do anything and assign to the everyone group, so it will trigger the refresh regardless of who is login.
    Save and export the Universe back to the repository.
    Well in order to create a cascading list of values based of universe, you have to go to universe designer to create it. Crystal doesn't give you the option to create cascaded prompt. Tools->List of values->Create cascading list of values. It will open up a wizard and you can create cascaded list of values from the selected classes and objects.
    Please let me know in case of any queries.
    Regards,
    Kuldeep G

  • Set atribute value from session bea while creating new record using ADF BC

    hi,
    i want to set the value of new record attribute from session bean while
    using ADF BC using creation form. how can i set the value of a perticular arribute of a record to the value stored in session bean.

    Chapter 9 in the ADF Developer's Guide for Forms/4GL Developers (available on the ADF Learning Center at http://www.oracle.com/technology/products/adf/learnadf.html ) describes how to accomplish this along with other typical kinds of programmatic business logic.

  • Audit prev and new field values

    We have a need to on certain transactions e.g. VA02 to capture field level changes for purposes of audit and control.  The Document History for these transactions just displays that a change was made and by whom.  We would like more granular logging that would capture the field value before the change and the new value.  Are there any SAP out-of-the-box options for us?
    Much Thanks,
    Greg

    HI Greg,
    just check if AUT01 is helpful where u can try to configure logging for such fileds and the report in AUT10 can be more useful.. just an input ...as it shd be helpful in ur search ..
    Br,
    Sri
    Award points for helpful answers

  • Creating new records while querying existing record

    Hi,
    I have one master - detail form.
    First i created 1 record. Request ID is the primary key. Now request id generated. For ex.: 10
    Request Id, date, requestor , location, status fields are in header block.
    In lines block, i hv some other fields.. and one field called 'Activity'.
    While creating first record, the activity will be 'New'.
    Then i'll query the record '10'.
    when i'm changing the activity 'New' into 'Upgrade', it should create new record with new request ID.
    How to do this?
    I hv written procedure that, i'm taking field values to local variables. Then assigning the local variable values to field values.
    It is not creating as new record. It overwriting the existing record with new values. Existing record is missing.
    Pl. give steps.
    Thanks
    Kavi

    Hi,
    Okk, you will have to do two things. Create two trigger on block level on which you want to do your changes.
    1. First trigger. (PRE-UPDATE)
    In pre-update trigger u will have to write the complete insert statement into the same table with new req id. like
    DECLARE
    vReqNo DATA_TYPE;
    BEGIN
    SELECT MAX(REQ_ID)
    INTO vReqNo
    FROM your_table;
    INSERT INTO your_table
    (req_no, fields....)
    VALUES
    (vReqNo, :forms_values);
    END;
    2. Create 2nd trigger on block level (ON-UPDATE)
    write in this trigger
    NULL;
    for viewing the inserted record. What u have to do is in ON-UPDATE after null; create one timer NO_REAPEAT.
    and in timer u will have to set the block property to req_id = generated_req_id_from_pre_update_trigger and
    execute_query;
    hope it will work...
    -Ammad

  • CRM 2011: Can you control which form is used based not security roles, but on a field value?

    I see that you can control which form is used based on security roles, but can you control it based on other field values?  I'd like a new record to use a different form until a given status is updated.  I have a status of draft and active. So
    it would be nice if I could use form1 for those in draft, form2 for those that are active.  But I only see where you can control that via the security roles.
    I can code all of this via JavaScript, but having the ability to use two separate forms would be nice.  Is that even possible.
    Best regards,
    Jon Gregory Rothlander

    Hello,
    Recheck following article - http://gonzaloruizcrm.blogspot.com/2014/11/avoiding-form-reload-when-switching-crm.html
    Dynamics CRM MVP/ Technical Evangelist at SlickData LLC
    My blog

  • How to pass custom z table field values to smartform

    hi i need to pass fields values from the table i created to already developed smartform..can anyone give me an example for this scenario

    Hi,
    You need to create an internal table in print program. Then fill the internal table using select statement. Now you need to declare One internal table in 'TABLES' tab of Form Interface in smartfrom.
    e.g.:
    IT_BKPF     LIKE     ZBKPF
    Now call the smartform in print program & pass the internal table(declared & filled in print prog) to the smartform.
    Ashven

  • Create New Field - Package is null and non editable

    7.0 when choosing the Create New Field in the UI, I get a window where the Package is empty and I can not edit it, the Namespace contains a Z and is not editable.
    I select ORDERADM_I but when I select OK I get the message the Package is Required.
    I am guessing I need to do something in EEWB? but not quite sure.  I did find any other forum questions with this issue.

    Hi,
    I assumed you are using Application Enhancement Tool.
    The prerequesite to use Application Enhancement Tool is you have to maintain the system settings in transaction AXTSYS.
    Here you can define a default value, which will be displayed in WebUI.
    Regards,
    Steve

  • Getting error while creating new fields

    hi all,
    i am getting an error when i am adding a new field thru eewb to a txn.
    error message "Definition CRM_BTX_ADD_NEW_FIELDS is of the type 'TSK' and should run on an external system. This is not permissible. Only definitions of type 'SEQ' may be created for external systems."
    plz helep me out
    and i have few doubts
    1 in web ui to display these new fields do we need to write a program
    2. new field values are stored in table do weneed to create any table ?
    3. do we need to write any program so that the values will be stored in tht table?
    thanks
    madhuri
    Edited by: madhuri pasupuleti on Apr 27, 2009 1:33 PM

    Hi Madhuri,
    For error message "Definition CRM_BTX_ADD_NEW_FIELDS is of the type 'TSK' and should run on an external system. This is not permissible. Only definitions of type 'SEQ' may be created for external systems."
    - Check SAP Market Place for any notes on "CRM_BTX_ADD_NEW_FIELDS"
    1 in web ui to display these new fields do we need to write a program
    - No need to write any program to display new fields in WEB UI. Using the EEWB will automatically create code behind the screens. All new fields created will be available in base table (example: for business partner - BUT000). You can explore the fields available functionality in WEB UI to populate them
    2. new field values are stored in table do we need to create any table ?
    - No, EEWB will automatically creates customized structure in code behind the screens
    3. do we need to write any program so that the values will be stored in tht table?
    - No, I don't know how to add values to the particular field(s) but sure that you don't need to write any program to store the values in customized tables
    Cheers,
    Peter J.

  • How to create new form fields in several columns (spreadsheet) and have them named consecutively?

    Hopefully someone can help.  I created a new form from an Excel spreadsheet, but the form field recognition didn't "take" well and very little of the spreadsheet translated into form fields.  I need to create new fields (31) for each column (about 10) and I want the fields in each column to have a keyword from the parent column and the fields numbered consecutively.  I'm really hoping I don't have to do this manually!
    Next, is there a way to total the values in a column of fields (the same as the SUM function in Excel?) or does the form user have to dig out a calculator and add everything?
    Can I create an email (submit) button and direct how (ie email) and by what method the form is sent?
    Once the form is completed, is there a way for the user to lock it before sending it - ie a button they could press to make it no longer fillable?  Or can I set the document to be a regular .pdf once it leaves the host machine?
    I think that's it!  Hopefully someone can help soon - this is a work project that could be potentially very time consuming if I have to create each form field manually.  Thank you for any assistance!
    Cheers,
    LostintheNorth

    LostintheNorth wrote:
    Rats!  Thank you for your link - I may take you up on that... however for the purposes of this form I'm more than halfway done, so I might as well keep plugging away.  A workaround I found was to creat 32 of something I only need 31 of, then delete the parent.  Somehow even playing with spacing on the "create multiple fields" option as the fields are being created only gets the vertical alignment close - no matter what I do I still end up manually aligning (vertically) 31 little boxes for each column so they fit visually.  Grrrr.
    Yes, this can be very tricky. If you don't get the exact right offset between each field, the difference will accumulate and after a while it will be completely off.
    You just have to play around with it, until you get it right. Or almost right, and then adjust it manually.
    Another thing I've noticed, is that when you select one field and right click for properties, you get an expanded version, as opposed to select/shift/enter for a bunch of cells only yields an abbreviated properties box - what's up with that?  Is there a way to change this?  For instance, I had set the properties for a column of 31 cells to be number, 1 decimal place.  Halfway through my project, the lady I am doing the favor for tells me she would like 2 decimal places, requiring me to manually change each box for 62 cells!  Apparently cell formatting is not an option in the abreviated properties dialogue!  Is there a fix for that?
    No, there isn't. Some propeties you have to set manually (or get right the first time, before copying and pasting...). There is a way to do it with a script, but it's a bit complex and requires using an undocumented method.
    This next question is a bit more complicated, and may not be possible.  The form I am creating is for payroll purposes, so at the moment it is generic (31 days) and the user fills in the month manually. Is it possible to get the form to recognize a month value (or create a pulldown menu with a selection of months to choose from) and limit the days accordingly?  Or better yet, run a calendar function so that weekends and stat holidays are highlighted on the affected row?  Kind of like what you can do with an Excel spreadsheet, which is what I designed the form in at the start (then printed to .pdf - the form field recognition did NOT work well on my spreadsheet!  hence me doing every cell manually).  Is this even possible, and if so, is it something I could learn to do?
    Yeah, it's possible, but requires quite a bit of scripting knowledge. If you wish, contact me personally (by PM or email at try6767 at gmail dot com) and I could possibly create this for you.
    If you want to do it yourself, you would have to learn a lot about both the Date object in JS and about the various date printing and scanning methods in Acrobat JS.

  • SharePoint Designer workflow - update list item field without creating new version?

    Hello,
    I have a list that uses versioning.
    I have a workflow, designed in SharePoint Designer, that will track changes in some columns, and if there is a change it will send out an email.
    To track the changes eg in the Status column, I have a hidden "OldStatus" column so I can compare the current value with the previous value.
    If it's different it means it has been changed, and I send out an email, then update the OldStatus with the current value so they're in sync again.
    Problem I have now is that when I update the OldStatus column in my workflow it will create a new version of the listitem. I don't want that. This is a system value change and has no value at all to the end user.
    In C# I can do a systemupdate to avoid this, but how can I do this in SharePoint Designer?
    Please don't tell me I should write the entire workflow in code, only to get access to the systemupdate command....

    I created a Worfklow Activity class, called "UpdateFieldInCurrentItemSilentMode".
    I add the default context properties to work with:
    #region Context properties
    public static DependencyProperty __ContextProperty = DependencyProperty.Register("__Context", typeof(WorkflowContext), typeof(UpdateFieldInCurrentItemSilentMode));
    [Category("My Workflow Actions")]
    [Browsable(true)]
    [DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]
    public WorkflowContext __Context
    get
    return ((WorkflowContext)(base.GetValue(UpdateFieldInCurrentItemSilentMode.__ContextProperty)));
    set
    base.SetValue(UpdateFieldInCurrentItemSilentMode.__ContextProperty, value);
    public static DependencyProperty __ListIdProperty = DependencyProperty.Register("__ListId", typeof(string), typeof(UpdateFieldInCurrentItemSilentMode));
    [ValidationOption(ValidationOption.Required)]
    public string __ListId
    get
    return ((string)(base.GetValue(UpdateFieldInCurrentItemSilentMode.__ListIdProperty)));
    set
    base.SetValue(UpdateFieldInCurrentItemSilentMode.__ListIdProperty, value);
    public static DependencyProperty __ListItemProperty = DependencyProperty.Register("__ListItem", typeof(int), typeof(UpdateFieldInCurrentItemSilentMode));
    [ValidationOption(ValidationOption.Required)]
    public int __ListItem
    get
    return ((int)(base.GetValue(UpdateFieldInCurrentItemSilentMode.__ListItemProperty)));
    set
    base.SetValue(UpdateFieldInCurrentItemSilentMode.__ListItemProperty, value);
    public static DependencyProperty __ActivationPropertiesProperty = DependencyProperty.Register("__ActivationProperties", typeof(SPWorkflowActivationProperties), typeof(UpdateFieldInCurrentItemSilentMode));
    [ValidationOption(ValidationOption.Required)]
    public SPWorkflowActivationProperties __ActivationProperties
    get
    return (SPWorkflowActivationProperties)base.GetValue(UpdateFieldInCurrentItemSilentMode.__ActivationPropertiesProperty);
    set
    base.SetValue(UpdateFieldInCurrentItemSilentMode.__ActivationPropertiesProperty, value);
    #endregion
    Then I add my own input parameters to work with:
    public static DependencyProperty StaticFieldNameProperty = DependencyProperty.Register("StaticFieldName", typeof(string), typeof(UpdateFieldInCurrentItemSilentMode));
    [Category("My Workflow Actions"), Browsable(true)]
    [DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]
    public string StaticFieldName
    get
    return Convert.ToString(base.GetValue(StaticFieldNameProperty));
    set
    base.SetValue(StaticFieldNameProperty, value);
    public static DependencyProperty FieldValueProperty = DependencyProperty.Register("FieldValue", typeof(string), typeof(UpdateFieldInCurrentItemSilentMode));
    [Category("My Workflow Actions"), Browsable(true)]
    [DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]
    public string FieldValue
    get
    return Convert.ToString(base.GetValue(FieldValueProperty));
    set
    base.SetValue(FieldValueProperty, value);
    Then the actual workflow action code:
    protected override ActivityExecutionStatus Execute(ActivityExecutionContext executionContext)
    try
    if (this.__Context == null)
    throw new Exception("__Context is NULL");
    if (this.__Context.Site == null)
    throw new Exception("__Context.Site is NULL");
    //reload the web using the SPSite object to work around any limitations on the objects
    //applied to the user running the workflow
    SPWeb tmpweb = __Context.Web;
    SPSecurity.RunWithElevatedPrivileges(delegate()
    using (SPSite site = new SPSite(tmpweb.Url))
    using (SPWeb web = site.OpenWeb())
    //load list
    SPList lst = web.Lists[new Guid(__ListId)];
    //load listitem
    SPListItem item = lst.GetItemById(__ListItem);
    //update field value
    item[this.StaticFieldName] = this.FieldValue;
    //commit changes
    item.SystemUpdate();
    //return success workflow status
    return ActivityExecutionStatus.Closed;
    catch (Exception exc)
    string sMsg = "Error in 'UpdateFieldInCurrentItemSilentMode':" + Environment.NewLine
    + exc.Message + Environment.NewLine + Environment.NewLine +
    "StaticFieldName: " + this.StaticFieldName + Environment.NewLine +
    "FieldValue: " + this.FieldValue;
    Common.WriteErrorToLog(sMsg);
    //return failed workflow status
    return ActivityExecutionStatus.Faulting;
    Note: the WriteErrorToLog function is a custom function that writes the error to the event log. It's located in another class. You can replace it with your own error handling approach.
    Then we need to specify the workflow action in the .actions file, so SharePoint Designer knows about it and which parameters are required:
    <Action Name="Set field in current item (silent mode)"
    ClassName="My.WorkflowActions.UpdateFieldInCurrentItemSilentMode"
    Assembly="My.WorkflowActions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=0f8d2d9e2dfb2160"
    AppliesTo="all"
    Category="My Workflow Actions">
    <RuleDesigner Sentence="Set field %1 in current item to value %2 (silent mode)">
    <FieldBind Field="StaticFieldName" DesignerType="ParameterNames" Id="1" Text="StaticFieldName" />
    <FieldBind Field="FieldValue" DesignerType="ParameterNames" Id="2" Text="FieldValue" />
    </RuleDesigner>
    <Parameters>
    <Parameter Name="StaticFieldName" Type="System.String, mscorlib" DesignerType="ParameterNames" Direction="In" />
    <Parameter Name="FieldValue" Type="System.String, mscorlib" DesignerType="ParameterNames" Direction="In" />
    <Parameter Name="__Context" Type="Microsoft.SharePoint.WorkflowActions.WorkflowContext" Direction="In" />
    <Parameter Name="__ListId" Type="System.String, mscorlib" Direction="In" />
    <Parameter Name="__ListItem" Type="System.Int32, mscorlib" Direction="In" />
    <Parameter Name="__ActivationProperties" Type="Microsoft.SharePoint.Workflow.SPWorkflowActivationProperties, Microsoft.SharePoint" Direction="Out" />
    </Parameters>
    </Action>
    That is all you need for the specific code, the rest is common code to build custom workflow actions, which you can find on many blogposts or this forum.

  • Problem in creating new field using AET

    Hi ,
    We are facing a problem while creating a new field using AET.
    [http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3414900)ID0190611650DB01471683520393954021End?blog=/pub/wlg/12716]
    Im following this blog while creating the new field using AET.
    After filling all the field details and trying to create a Transport request its going for a runtime error.
    The error is happening in class  CL_CRM_GENIL_AXT_API
    method get_editable_properties.
      data lr_field_ext type ref to cl_genil_field_extension.
      field-symbols <axt_field_extension> type gtype_field_extension.
      data lr_fieldext_ref type ref to if_axt_field_ext_access.
      read table axt_field_extension_tab assigning <axt_field_extension> with key ext_bo       = is_key-ext_bo
                                                                              ext_bo_part  = is_key-ext_bo_part
                                                                              extension_id = is_key-extension_id.
      lr_field_ext = <axt_field_extension>-axt_extension.
      if sy-subrc = 0.
    While Debugging we can see that the table axt_field_extension_tab  is having zero values during the last execution.
    But the Zfield is getting generated and the status is in green.
    Any suggestions will be highly appreciated.
    Regards,
    Sijo.
    Edited by: sijokjohn85 on Sep 9, 2009 1:00 PM
    Edited by: sijokjohn85 on Sep 10, 2009 12:49 PM

    Hi,
    you posted the same question again in a later post.
    Here is my answer:
    Hi,
    the reason that AET does not work is because there is/are missing entries in one of DB table.
    Namely the enhance BO assignment to the UI Object Type.
    Could you please tell me, what is the UI Object Type in you current IC application.
    In order to figure this out, you can put mouse cursor in one of the field in the UI and then press F2.
    Then you can go to SM30 in SAP GUI open the View BSPDLCV_OBJ_TYPE and search for the UI object type.
    Select the UI object type and see whether any enhanced BO is defined.
    In your case it should be empty, otherwise you can use AET in IC.
    And if it is empty we need to figure out which enhanced BO is relevant for the given UI Object Type.
    Regards,
    Steve
    P.S. But still you can raise a CSN message.
    The "Create New Field" should be in active mode.

  • Creating an SQL Query for Project Custom Fields Values

    Hello:
    I'm currently trying to create an SQL Query to show all of the server's Project Custom Fields Values, along with the modification date.
    So far, I've managed to display correctly all of the data for all of the Projects' text value Custom Fields (those not based on a LookUp Table) with this query:
    SELECT
    MSP_PROJECTS.PROJ_NAME,
    MSP_CUSTOM_FIELDS.MD_PROP_NAME,
    MSP_PROJ_CUSTOM_FIELD_VALUES.CODE_VALUE,
    MSP_PROJ_CUSTOM_FIELD_VALUES.TEXT_VALUE,
    MSP_PROJ_CUSTOM_FIELD_VALUES.MOD_DATE
    FROM
    MSP_PROJ_CUSTOM_FIELD_VALUES
    INNER JOIN
    MSP_CUSTOM_FIELDS
    ON MSP_CUSTOM_FIELDS.MD_PROP_UID = MSP_PROJ_CUSTOM_FIELD_VALUES.MD_PROP_UID
    INNER JOIN
    MSP_PROJECTS
    ON MSP_PROJECTS.PROJ_UID = MSP_PROJ_CUSTOM_FIELD_VALUES.PROJ_UID
    WHERE
    MSP_PROJ_CUSTOM_FIELD_VALUES.CODE_VALUE IS NULL
    ORDER BY
    MSP_PROJ_CUSTOM_FIELD_VALUES.PROJ_UID,
    MSP_PROJ_CUSTOM_FIELD_VALUES.MD_PROP_UID
    However, when I try a new Query to obtain the actual values for the Projects Custom Fields that do use a LookUp Table, I can't seem to find what table in the model I'm supposed to link to the MSP_PROJ_CUSTOM_FIELD_VALUES.CODE_VALUE field (the TEXT_VALUE
    field has NULL value when CODE_VALUE field isn't NULL)
    Any suggestions on how to obtain the actual Projects' custom fields values instead of the Code Value, for Metadata that do use a LookUp Table?
    Also, I'm able to run this query only in the Published Database, since the MSP_CUSTOM_FIELDS table is empy in the Draft Database. Why is that?
    Awaiting your kind reply,
    Sebastián Armas PMO Project Manager

    Hi Sebastián, rather than directly accessing the database it would be better to use the PSI to get this data.  Take a look at the ProjTool sample in the SDK whcih gets this data.
    Best regards,
    Brian.
    Blog |
    Facebook | Twitter | Posting is provided "AS IS" with no warranties, and confers no rights.
    Project Server TechCenter |
    Project Developer Center |
    Project Server Help | Project Product Page

  • Creating new text field dynamically

    Hi,
    can anybody let me know how can we create new text fields dynamically in JSF.
    Basically the GUI will have a button/command link ,when clicked should create a new text field and then when the user enters any value in the new text fileld the formbean should be able to capture the value.
    so the user will have the choice of creating any number of text fields depending on the requirement.
    is javascript the only solution for this or can we do this JSF also?
    Thanks in advance.

    You may find this article useful then: [http://balusc.blogspot.com/2006/06/using-datatables.html]. The 'add new row' example is described here: [http://balusc.blogspot.com/2006/06/using-datatables.html#AddNewRowsToDatatable]. If it concerns only one field, just use only one column. You can for instance even use List<String> instead of a List<RowObject>.

Maybe you are looking for

  • My charger will keep my computer charge constant, but won't increase it. What's wrong? My roommate's charger will actually charge my computer.

    My macbook pro charger will only keep my charge constant, and the info. says that my battery is not charging. However, the charge will not decrease as long as it's plugged in and my roommate's charger will actually charge the computer. What's wrong?

  • JSP is executed twice

    hi,           I am running weblogic 6.1 with sp4. I have got two JSP which are using a           datasource to connect to my database (oracle 8).           When I got a java.sql.connection through the datasource, I am creating a           statement a

  • Error: material not subjected to inventory management in a plant

    While creating a STO . I am getting the following error Error: material not subjected to inventory management in a plant What should be done??????????/

  • Back dated period opening

    Dear All, I want to open the back dated period of sep. 2010 for mm posting and currently my dec. 2010 and jan. 2011 is open. we tried to open the back dated period by closing dec. 2010 and jan.2011 but we failed kindly guide me how to open it so that

  • Server Configuration - Limitation

    Environment Details:  XI 3 Build 12.1.8.1176 OS :  Windows 2003 R2 SP 2 Standard Edition Memory: Xenon X5355 -2.66 GHz on VM - 4 GB RAM Number of Web I Process - 2 on 1 machine. Development approch taken is, refresh reports, store as Web I with data,