Entry Form: replacing textfields

Hallo,
how can I replace the value of a textfield by another one?
ex, I have 2 textfield: title, name.
if field 'title' is empty then replace values of 'title' with the value of 'name'.
thanks
Nicole

You could create a custom jsp with code that sets the value of title. Use something like:
(this always sets title to last name)
<script language="JavaScript" type="text/javascript">
function mySubmit() {
self.document.form1.title.value = self.document.form1.LastName.value;
</script>
<input type="submit" class="ss_submit" name="okBtn" value="Submit" onClick="ss_buttonSelect('okBtn');mySubmit();"/>
<input type="submit" class="ss_submit" name="cancelBtn" value="Cancel" onClick="ss_buttonSelect('cancelBtn'); " />

Similar Messages

  • Primary key issue with adf Entry Form.

    Hi All,
    i'm using jdev version 11.1.1.5.0
    use case: i have create simple entry form based on Eo and Vo using database table like student(enrollment no,name address)
    where enrollment no is primary key.
    so when i have create a record i have set enrollment no in entity impl class of this eo create method using some logic based on my need like(20130001)
    for that i have read highest no from database field and assign to enrollment no field when user create record.
    so when user create record second time then enrollment no is 20130002. and other detail like name and address user fill and commit record. and it is fine.
    but problem is that when two user access same form at a time and create record so both have get same primary key like 20130003 because in current time in database maximum value is 20130002.
    so which user  commit record first it record will save on database and second user get error message because of primary key violation.
    so my question is that where we generate primary key value for record so when multiple user access form have get different primary key value. and in my use case i can't use sequence and any autoincrement no
    because i have patter for primary key.
    Thanks in Advance
    Manish

    Hi,
    Dimitar and Frank
    thank for reply.
    How can i apply non-concurrent DB lock can you please explain.(because lock method on entity impl not work when user create new row as per documentation)
    http://docs.oracle.com/cd/B14099_19/web.1012/b14022/oracle/jbo/server/EntityImpl.html#lock__
    i have write following line of code in entity impl class to set primary key value(reqid)-
        @Override
        protected void prepareForDML(int i, TransactionEvent transactionEvent) {
             super.prepareForDML(i, transactionEvent);
            this.setReqid(genReqid());
        public String genReqid() {
            String reqby = this.getReqby();
            String qry =
                "SELECT nvl(MAX(TO_NUMBER(SUBSTR(REQID,7))),0)+1  FROM STM_REQHDR WHERE REQBY=? AND REQTYPE<>'M' and substr(reqid,1,2)<>'MT' AND SUBSTR(REQID,1,3)<>'PAY'";
            PreparedStatement ps = null;
            String no = "";
            try {
                ps = getDBTransaction().createPreparedStatement(qry, 0);
                ps.setString(1, reqby);
                ResultSet rs = ps.executeQuery();
                if (rs.next()) {
                    no = rs.getString(1);
                ps.close();
            } catch (Exception e) {
                System.out.println("Exception in Gen req id ==>" + e);
            String reqno = reqby + String.format("%6s", no).replace(' ', '0');
            return reqno;
    but when i run form in debug mode and two user commit concurrent manner only one time code block is executed who first commit. and second user got error message.
    thanks
    Manish

  • Sorting in Folder block of customer entry form

    In Customer Entry form, the folder block ORG_NS_FIND_FOLDER is being sorted on org_per_number,customer_number.
    We are customising this form and would like to override the default sorting and use our sort columns.
    Can anyone please let me know where is the code that is doing this sorting on org_per_number,customer_number. I want to replace it with mine.
    Thanks in advance
    Murthy

    It would be good if anyone atleast let me know how to provide the column names for sorting my folder block

  • Error while opening the receipt entry form in AR module.

    Error while opening the receipt entry form in AR module. We have created one new responsibility of Receivables for new operating unit . When we open the corresponding
    forms , we are getting the error message as :
    NO_DATA_FOUND
    FRM-40735: PRE-FORM trigger raised unhandled exception ORA-20002.
    Kindly help in resolving.
    We have ERP version of 11.5.10.2

    Please also see the following docs.
    Transactions Workbench Error: Listing of ORA Errors [ID 1336495.1]
    FRM-40735 ERROR OPENING LIFE EVENT REASONS FORM BENLEVRS [ID 1517593.1]
    APP-AR-96996: The Defined Sales Representatives Have Incorrect Id'S [ID 437107.1]
    ARXSUDRC Receipt Classes Errors With APP-AR-96994: Please Define Sales Representatives [ID 357454.1]
    Thanks,
    Hussein

  • Is there a way to create entry form/fields in Numbers.

    Can anyone let me know if there's a way to create an entry form/field in Numbers. The idea would be to have already created a list of contacts, then at an event on an iPad, people can check off if that person is there and also enter new contact info. Thanks in advance.

    Isnt this just a table? A list of people, with a check box field in the second column, followed by a few columns for contact info to be entered in?
    Jason

  • Data entry form problem - form in query-only mode

    Hi there,
    I am trying to create an data entry form to insert recordacross 2 out of 3 tables. The last of the four tables already have details and does not need to have record inserted into.
    This is the scenario, my four tables are Factory, Employee, Works_in. Works_in resolves a many to many relationship between Factory and Employee
    Now for a person to be employed in a factory, he must be assigned to a factory.
    I have a list of factories already in the database. After choosing a factory from the database, I want to insert records to do with his Fname, Lname, Hiredate bla, bla, bla to the Employee table.
    I have a single form with Factory as the master, and 2 tabs each for Employee and Works_in.
    After linking all my tables with the ability to choose a factory first on the master form from a combo box and after inserting records into the other forms, it says form running in query-only mode.
    What do you think?
    Many thanks in advance.
    Cube60

    I think that's too much of the wrong information.
    It sounds like you have multiple forms. Are they Modal or Non-Modal?
    What code do you use to call the form that's not working?
    Does it work initially and then stop working?
    James.

  • Cycle Count Entries Form not showing specific employee name in "Counted By" LOV List

    Cycle Count Entries Form not showing specific employee name in "Counted By" LOV List.But the Employee is active . Is there any setup for this activity?

    Hi,
    This is because the query is excluding the current site you are trying to modify since it is actually in the report.
    You can include in your query:
    or site_id = :Pxx_SITE_ID
    Where Pxx_SITE_ID is the item holding the site_id value and xx is your page number.
    Thank you,
    Erick

  • Error while opening Expenses Credit Card Entry form

    Hello
    I am getting the following error when I try to open in Expenses Credit Card Entry form. Any help will be really appreciated. Thanks.
    "+Function not available to this responsibility. Change responbsibilities or contact your System Administrator.+"
    Form Name = ADSAPCRD
    Function Name = Credit Card Expense Transaction Entry
    Steps To Reproduce
    1. Navigation = Go to 'Payables Vision Operations (USA)' responsibility -> Credit Cards -> Expenses Credit Card Entry
    2. Double click to open it --> Error is thrown
    Investigation Done
    1. Checked if there were any excluding functions attached to the above responsibility, but there were none.
    2. Checked all the required AP / Internet Expenses Profiles but no issues there
    3. I have even recreated a new menu, assigned this function and created a new responsibility. I then retried but still the same issue.
    4. Checked all the above Form Function parameters from front-end but there are none
    5. This form function looks like a 'demo specific' function, for entering dummy Credit Card Transactions
    Environment
    EBS R 12.1.3 with Vision Demo DB
    Regards
    Kabeer

    @Pradeep, The link you have provided lists this Credit Card Transaction Entry Form, but I couldn't find the solution. Though it may not be used post-implementation, but its required to test the Credit Card Expense Reimbursement Process Flow. Without this form, the only alternative is to use the Credit Card API for entering data, which I want to use as the last alternative.
    What wonders me is that its a simple form, which should be working just like any other forms.
    Appreciate if you can provide any further pointers or workarounds. Thanks.
    @Hussain, The solution in note 1329828.1 is not applicable to this issue. But thanks v much for pointing out that.
    Regards
    Kabeer

  • Note messages at the time of availability check in sales order entry form

    Hello Friends,
    Im getting the following note messages at the time of availability check in the sales order entry form.
    ATP Process resulted in no data
    User defined exception in package OE_SCHEDULE_UTIL Procedure Load_Results_from_rec
    User defined exception in package OE_SCHEDULE_UTIL Procedure Load_Results_from_tbl
    After this when we book the order, the order line status becomes 'Booked' and does not change to 'Awaiting Shipping'
    As a result of which im not able to proceed ahead with the rest of the order to cash cycle.
    Can somebody please guide me in resolving this error.
    We don't intend to use ATP as the client's business process is such that they maintain adequate inventory balances.
    Regards
    Anil Wadhwa

    Hi Anil
    Are you using a RAC DB configuration? Please check if this is true, there are special setup steps that are required to be performed in case of RAC DB configuration and this issue usually occurs if such configuration is missing specifically if its happening randomly for some ATP requests.
    You can find actual steps to be performed on metalink.
    Thanks
    Navneet Goel

  • How to populate new record on data entry form based on search results?

    Hello,
    I'm new to jdeveloper im using version 11.1.2.1.0.
    Usually Im using forms 10g.
    I created search panel with table and its working but problem is how to transfer/populate all the field value according to that search result to New data Entry Form
    by clicking the table record or a button.
    Given :
    TABLES,EO
    1. PatientMasterIndex
    2. PatientTransactionMaster <<---- master
    3. PatientTransactionDetail <<-- detail relation
    Here the scenario,
    After Search of any patient, when i clicked one or more patient (which Jdeveloper allow multi select on jtable) on the table record it should automatically transfer or copied to the text field, i want to show on the form of PatientTransactionMaster like PatientNumber,PatientInsuranceNumber etc. to be save on db as new record, also non database field for view only like patient Name,address,age.
    IN forms i can do that by :PatientTransactionMaster.PatientNumber := :blocksearch.PatientSearchNumber ,etc.....
    or an item trigger to populate the said PatientTransactionMaster block. ( select .... into :PatientTransactionMaster.PatientNumber,etc....)
    Any suggestion,links,sample is highly appreciated.
    Sorry for my english.
    Thank you very much

    Hi,
    Do you want to create a detail record that will include some values from your master record??
    Or do you want to create a record with values from your Search criteria, only in the case you do not have any results?
    if it is the second case.
    When do you want to do that? After a press of button? or immediately?
    In general you have to handle the values from search criteria.
    Additionally, if you use ViewCriteria, you have to have bind variables for your search criteria that you will want to use.
    So in general, you have to know the values by using bind variables, understand that the query has no results (This can be done in many ways, depending on your implementation. if you are using a button, you could make a disable condition with iterator.estimatedRowCount property.)
    Perform the insert operation with the values from the bind variables.
    Regards,
    Dimitris.

  • How to Save State on an Entry Form prior to Submitting the Form?

    I want to be able to save the values the user enters to fields on the entry form if they navigate away from the page and come back (without the user clicking the submit button for the form.) For example, one of the input fields has a goLink to go to another page to lookup a field value - when the user returns from the page, all other form field values are cleared. If the user does submit the form by clicking the command button, then all form field values are saved (if the user navigates from the page and comes back, all values are retained.) What I'm trying to do then is somehow save the values (passivate the state) for the field the user has filled in when the user navigates from the page without submitting the form. Any suggestions?
    I am using a read-only View Object with all transient values. The VO is configured to passivate state including all transient values. The initial row is created programmatically; there will only be one row for the VO used as an entry form. I am not using a backing bean for the values and would prefer not to use one, but would rather use the VO's capability to passivate state to save the data values. The question then seems to be how to force the VO to passivate state prior to the form being submitted.
    thanks
    Message was edited by:
    javaX

    "My hunch is that the real problem is that the fields are not being set into the bindings due to the use of immediate="true"."
    Yes. Now I see that is the real problem. Is there anyway to force setting the bindings from the input form field values if the user navigates from the page using a goLink, or commandButton with immediate="true" other than overriding the default FacesPageLifecycle classes?
    I'd prefer not to have to do that unless necessary, and, if I over-ride that method, then how could I get it to work normally when the user presses the commandButton at the end of the form and I do want all validation checks to be performed (immediate=false for the form's submit button; immediate=true only for lookup commandButtons used for certain fields)?
    Here's an overview of how I set the page up:
    1. create transient view object; all attributes marked as always updateable; passivate state=true for VO and all transient values; no key id field selected (will only ever be one row - just using VO to save values that will eventually be used to do an insert to the database);
    2. transient VO added to Application Module
    3. Add data control to .jspx page as an ADF Form (not an ADF Creation Form)
    4. Add code to AM to create the initial row for the input form
    protected void prepareSession(Session session) {
    super.prepareSession(session);
    insertTransientViewObjRows();
    private void insertTransientViewObjRows() {
    ViewObject transientvo = getViewObj1();
    transientvo.clearCache();
    transientvo.insertRow(transientvo.createRow());
    --- Entry Form .jspx pagedef.xml snippet ---
    <executables>
    <iterator id="MyIterator" RangeSize="10" Binds="MyView"
    DataControl="AMDataControl"/>
    </executables>
    <bindings>
    <attributeValues id="sponsorid" IterBinding="MyIterator">
    <AttrNames>
    <Item Value="sponsorid"/>
    </AttrNames>
    </attributeValues>
    --- Entry Form .jspx page snippet ---
    <h:form>
    <af:panelForm>
    <af:panelLabelAndMessage label="#{bindings.sponsorid.label}">
    <af:panelGroup layout="horizontal">
    <af:inputText value="#{bindings.sponsorid.inputValue}"/>
    // state will not be saved for other form field values if use immediate="true" when temporarily navigate away from page and return; don't want to validate other form fields here
    <af:commandButton text="Lookup Details"
    action="lookup-page" immediate="true"/>
    </af:panelGroup>
    </af:panelLabelAndMessage>....
    // state will be saved with immediate="false" when user submit forms at end of entry (need to perform validation of form's required fields here)
    <af:commandButton text="Continue to Next Step" immediate="false"
    action="nextpage"/>
    Message was edited by:
    javaX

  • Can I Create A Data Entry Form with iWeb?

    I want members of my club to be able to make data entry selections each week directly to my web site via a data entry form, and have those entries stored for my retrieval and later posting. Can this configuration be set up in iWeb? Thank you in advance for pointing me in the right direction.

    http://discussions.apple.com/thread.jspa?messageID=7465901
    _Additional Info_

  • How to create exchange grid in web entry form...

    Hi to all,
    I am new to HFM..my query is How to create exchange grid in web entry form...i try it a lot but it didn't get the solution...
    i did this exchange grid in web grid..any one can share the document or ppt or video clip related to this..which will be helpful for me...
    Thanks

    Hi...
    Its better to create the Exchange Rates in a Data Form than in an Data Grid, so that you can easily Import and Export the form and even can feed the values easily....
    Select the POV like in Scenario-Actual,Year-Your particular year,Period-In Period Dimension do not choose any option so that it can be selected in Columns and Rows,View--the same as Period Dimension,Entity-[None],Value-<Entity Currency>,Account-Do Not select ,ICP- [ICP None],Custom 1-[None], Custom 2-[None], Custom 3-[None], Custom 4-[None]...
    In Columns Select Scenario -Actual,Period-{[Fourth Generation]},Currency-#USD(Default Currency)
    In Rows Select-Account-A#AVGRATE,View-w#Periodic,Currency-C2#EUR
    A#AVGRATE.w#Periodic.C2#CFA and so on for rest of the currencies....
    and same in the below rows for the Closing Rates---- A#CLORATE.w#Periodic.C2#EUR
    A#CLORATE.w#Periodic.C2#CFA
    This might help you.....

  • Order Entry Form

    Hi,
    if I need to populate and display a date value output from a customized stored procedure into the Order Entry Form.
    how to do that?  Appreciate someone can advise me.
    Thanks and Regards.

    Luko wrote:
    Hello,
    I do not know what do you mean "into Order Entry form" but you can use default rule or personalization.
    Look at: Re: Defaulting warehouse in shipping tab within Sales Order
    Regards,
    LukoYes as Loko detailed...you can set defaulting rules...
    For example set request date in order header to use always sysdate..
    so whenever you create a order..sysdate defaults..
    You can use other 7 source type also..like pl/sql API..etc..
    HTH
    Mahendra

  • Hi! I have a Creative suite Design Standard 9 Adobe program and I am attempting to make a wizzard form that can be made into an entry form for a competition. So I need to 1. Make the form into a question and answer form that Participants may fill out. 2.

    Hi! I have a Creative suite Design Standard 9 Adobe program and I am attempting to make a wizzard form that can be made into an entry form for a competition. So I need to 1. Make the form into a question and answer form that Participants may fill out. 2. make it possible for them to download it via a link on our website 3. make it possible for them to save the info they have written into the form and mail it to the mail we have supplied in the entry form and 4. make it possible for them to put in a jpg. as part of the entry for and lastly 5. make it possible for us to copy paste the document and use it on other platforms. How do I do this - is it at all possible with adobe?

    Those requirements are go way beyond what PDF forms can do and are meant for, some of them would require involving other programs or are mutually exclusive and contradictory. You are wasting your time even thinking about doing this as an "offline" PDF form. Simply sign up for an online forms/ survey service like FormsCentral or Surveymonkey.
    Mylenium

Maybe you are looking for

  • How to write log information into SM37 batch job log

    Hi, I have a report running in batch mode, and I would like to log the start time and end time for some part of the code (different Function modules). I need to write this log information into the batch job log. Therefore I can check the time frame o

  • URGENT Help - DBMS_SCHEDULER on 10.2.0.2

    Hi All, I seem to be having an issue with jobs actually executing when created using DBMS_SCHEDULER The jobs all seem to be get scheduled and to run immediately but they don't seem to actually run. If I actually activate the job manually, all works f

  • Update table which provide information about NAT feature support in Catalyst switches?

    Hi, I'm searching an update table which provide information about NAT feature support in Catalyst switches. I would like to know if the Nexus 7000 support NAT but my table below is too old -> Updated: Apr 05, 2006. From my research, it's not possible

  • Oracle Installed failed

    I am trying to install Oracle database on Linux and install failed with the following error: genclntsh: genclntsh: Could not locate /oracle/product/10g/network/admin/shrept.lst *** Error exit code 1

  • Every Day A New Program Stops Working Properly...

    Sorry, but don't know whether to post in 10.4.6 forum or the Intel Mac Forum, so I'm doing both. I don't know what I've installed on my Mac that's making programs act buggy, but programs that worked flawlessly in recent memory are now quitting unexpe