Conditional field focus

Hello,
I have a page with two fields. If the value of field 1 is null, I want the focus to be on field 1. If the value of field 1 is not null, I want the focus to be on field 2. I tried this:
<script language="JavaScript">
if $v('P1_FIELD1') != ''  then
  document.getElementById("P1_FIELD2").focus();
end if;
</script>and various iterations of that using $v, $x, etc...but I can't get it to work and I get an error:
Expected '('
The page Cursor Focus is set to do not focus cursor.

Hi,
Try
<script language="JavaScript">
if(!($v('P1_FIELD1') == '')){
  $x("P1_FIELD2").focus();
</script>Br ,Jari

Similar Messages

  • Chart report Condition fields and Data fields

    Hi all,
    i have tried chart report by adding two condion fields and one data field, the report is more meaning full in this scenario. the first condition field is taken as x-axis, the 2nd condition fields is taken as legend.
    while adding more condition fields and data fields, i feel its not showing meaningfull data.
    can anyone explain how the condition fields and data fileds are manipulated by crystal report.
    i am using CR XI R2 Server.
    Thanks
    Padmanaban V

    i am using Crystal Report XI R2 RAS Embedded in my server.
    as we can add any number condition fields programatically using the method
    ConditionField.Add(FieldObj), i would like to know how these fields are manipulated internally by the RAS server.
    that means, what is the significance of condition fieldobject 1, condition fieldobject 2,condition fieldobject 3 etc...
    if i add more than two condition fields , RAS Chart Report always returns 0 as legend value for all legends.
    Thanks in advance
    Regards,
    Padmanaban V
    Edited by: Padmanaban Viswanathan on Dec 22, 2008 9:53 AM

  • How to: Make Shipping Condition field required in Tx. VT01N

    Hi everyone. I need to make the Shipping Condition field required in the transsaction VT01N Create Shipment.
    I don't know how to do this, can somebody help me with this issue???
    Thanks for your help!

    Hi Chemo,
    As far i undestand, you want to calculate freigth cost using transportation.
    To do this, you need to do some settings at that point to achieve that, please follow the link to configuration guide:
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/LETRA/SDTRA.pdf
    On functional side (after configuration), you´ll need to create the shippment cost document on VI01 transaction, there you can see all the cost associated to Shipping.
    After that transfer it to MM using T-code VI02, its needed.
    I Hope this help you,
    Regards,
    RP

  • CRM Pricing - BADI to Populate pricing conditions fields

    Hello All,
    We have CRM 5.0 installed in our customer.
    We are facing problems when we tried to replicate the pricing  from R/3.
    Basically, all Brazilian formulas we have in R/3 are Z. We tried to replicate them in JAVA (IPC) with no success. At this time, it is imposible for us to move to the standard because of the decision of the business.
    We are trying to find one BADI where we can populate all the pricing conditions retrieved via RFC from R/3. Unfortunatelly we don't have good luck with this.
    Our idea is to use this BADI to call R/3 and retrieve the conditions needed, and then populate the CRM pricing fields..
    Could you please help us? Do you have any other idea to solve this issue?
    This is very critical for us.
    Thanks in advance.
    Martin

    Hi Ntk,
    Thanks for your reply.
    I tried to search in se18. I found one BADI that runs when users enter new materials or changes the quantity of the sales order.
    This one  does not help us too much, because when you go to conditions tab (into CRMD_ORDER or via ICWEB) all conditions are redetermined with the pricing determined in IPC.
    We want to fill the conditions of the sales orders or the sales quotations at running time. In the BADI we would use the function module RFC SD_SALESDOCUMENT_CREATE (in simulation mode) in R/3 and retrieve all conditions fields and then populate the pricing conditions in CRM.
    Do you know any BADI with this behaviour? Or another similar?
    THANKS!

  • Storage Condition field in Material Master Grayed Out.

    Hi folks,
    We are trying to use the Storage Condition field in a Material Master Plant Data/ Storage Location View. However I noticed the filed is grayed Out.
    Then I looked at the Configuration in "Field Selection for Data Screen**" and the selection group 87 which is already selected as Optional which means it should let me pick the Storage Condition field.
    **(SPRO->Log Gen->Mat Master->Filed Selection->Maintain Field Selection for Data Screen.)
    Please note,  I have already created Storage Conditions in SPRO. I am not trying to create new conditions now. I am just not able to pick one and enter it while creating or updating a Material Master.
    your input is appreciated. Thanks in advance.

    where exactly you are looking at that you are so certain that is is optional?
    In OMSR find your field selection group, then click the button on the right to the field selection group to see in which field reference it is used..
    You can probably see many many field references.
    There is e.g. a field reference for the transaction, at least for transaction MM03 your field selection should be display only.
    there is a field reference for your material type,
    there is a field reference for your industry (M, C etc ... the indicator you have to enter in MM01 initial screen)
    there is a field reference for your material type,
    Are all references (except MM03) are set to optional, or do you see references with display only among them?

  • How to set a form field focus

    Is there a simple way to set a form field focus... so basically on load the field focus is set to a specific field?  I know how to write it in javascript but was wondering if there is a simple way to basically select the field and click a button or two and get the same result?  thanks.

    The script for that is extremely small and very simple.
    In all hosety, it would probably take longer to edit it through the DW interface than by hand.
    Add this after your form and change the bold areas to the name of the form and the name of the input you want to have focus on...
    <script type="text/javascript" language="JavaScript">
    document.forms['myform'].elements['mytextfield'].focus();
    </script>
    Those two things are the only items that will ever change.

  • Condition field in XL Reporter Get Other Data function

    I want to use the XL Reporter "Get Other Data" function to get data from a file not in the current Business Partner dimension  BPA.  Using the SalesPerson code SlpCode, I want to get the SalesPerson Name, SlpName. What is the value for the condition field to restrict the retrieval to just the one record that matches the SlpCode in the BPA dimension?  I've tried ocrd.SlpCode=oslp.SlpCode.  I've tried SlpCode=oslp.SlpCode. But I either get all the names in the Salesperson file or I get some type of syntax error.

    Jim,
    When you say I should be able to pass a parameter, do you mean while using the XLR "Get other data" function?  I thought that's what I was doing when I filled out the Get other data screen with the userid, password, then I specified the OSLP table, requesting SlpName in the Fields section, and then in Condition, I specified OCRD.SlpCode = OSLP.SlpCode.   When the report ran, I got a "#ixGetData error: The multi-part identifier "OCRD.SlpCode" could not be bound".   I tried substituting the BPA dimension qualifier, ie: BPA.SlpCode, but got the same error.
    If I removed the initial qualifier in the Condition field, ie: SlpCode = OCRD.SlpCode, when I ran the report I got ALL Salespersons names, not just the one that matched the SlpCode field on the current Business Partner line.

  • Transportation Group and Shipping condition fields in Route determination

    Hello Guys,
    Please, I heard that if I leave Transportation Group and Shipping conditions field empty Route determination would consider whatever value I put in Material/Custumer Master.
    But the determination just happen if I put the exact value in either the determination and the Material Master for Transportation Group field for example.
    Have you ever determined Routes leaving the fields empty?
    Thank you,
    Regards,

    Hi,
    Those fields Transportation Group and Shipping conditions available in Route Determination are essential to trigger the correct route in Sales Order level.
    If blank the available routes need to be picked manually at Sales Order level.
    Kindly check .
    Regards,
    SRK

  • Using SUMIFS on iPad Numbers has anyone had trouble using the keypad relational symbols in the "conditions" field?

    The iPad Numbers has a very nice data entry keyboard for expressing conditions.  They have the usual =, <, > but also have the single symbol version of >=, <= and <> (as an equals with a slash through it), however, if you try to use these keypad keys in the conditions field of the SUMIFS, it returns a syntax error.  After seeing some examples of Numbers '09 I discovered I had to express a relation inside double quotes, " ", which means the text keyboard is displayed and the very nice data entry keyboard is gone along with the nice symbols.  Has anyone seen this and am I doing something wrong or is this another bug?  Thanks.

    The xxxIF functions have (for as long as I have used them) required a text string as the argument unless it was equal to a value of a cell, with no logical operators. so it is not something new, its been that way for decades and I personally think Apple might have done it differently if they didnt have to maintain compatiability with older spreadsheet programs.
    i.e. not a bug, ensures backward compatability.
    Jason

  • Basic Conditional Fields?

    I need to find a basic tutorial on how to do conditional fields in an interactive form. Specifically, I need to make an HR form where I can have a number of different job categories, with a different set of questions and criteria for each category that appears only when a category is selected. I have ES3 but I can't find anything online that starts at the beginning of the process. Can anyone help?

    Depending on your needs, you might be able to use action builders
    http://blogs.adobe.com/livecyclelane/2009/10/building_actions_in_livecycle_designer.html
    Mark

  • Set Field Focus After Data Entry Error

    In a form created in Acrobat XI Pro (and distrubuted via Forms Central), I have various form fields (text, date, etc.). When the user performs a data entry error (e.g. incorrect date format based on date mask, etc.), the field focus is lost. The user must mouse-click into the field to set the field focus and re-enter their data. Is there any code that allows the app to return an error and set the focus back on the field returnign the error? Thanks / Todd

    If you converted the PDF to a FormsCentral form then it's a FC issue, not a PDF issue...

  • Conditional fields / formatting an equipment checklist

    I am trying to create an equipment checklist form for our video production company.  I would like to begin with a drop-list of Equipment A, B or C.  If someone selects Equipment A, then a new form would appear with a checklist and additional optional equipment that needs to be taken along with Equipment A.  The rest of the form would function this same way with other categories of equipment (cameras, lighting, sound, etc.).  Ideally, one of our producers would go online and select the necessary equipment for a particular shoot/project, print it out, and hand it to an associate to pull together for the shoot.   With the conditional fields, the form would only print the equipment that was selected from the form.  I'm trying to avoid having to print a giant list of ALL of our equipment when a shoot may only require a few items.  Is this doable?

    Sorry, this is currently not possible. You can vote for the idea here : http://forums.adobe.com/ideas/1045
    Gen

  • Conditional Field and Autocomplete

    Hi guys,
    first of all, I'm a system analyst and I work with .NET framework, I'm not a DBA. So I need a help that I guess is simple. I'm creating a table in Oracle express 10g where one of the fields will have its value from a combination of values of two others fields, in the other words, this will be a conditional field.
    Any body know where I can found an example of this implementation?
    Beforehand, my thank you very much

    user10437322 wrote:
    but as I'm not a DBA and I really don't know how to start to work with PL/SQL, do you have some link with samples about that?I know DBAs that know very little about PL/SQL. PL/SQL is a proper procedural language.. not much different than Pascal or Visual Basic or C.
    The big difference is that it is a server side language. And that PL/SQL is in fact 2 separate languages.. PL is the Programming Logic language. It allows you to write native SQL (different language) inside the PL source code, using PL variables... in other words, a seamless and tight integration of the SQL language inside the PL language.
    Thus no need to step out of PL source code and use a database interface/class/whatever to communicate via SQL with the database. You mix your native SQL code directly with PL source code and the PL/SQL compiler figures out the rest (creating cursors, binding variables, etc). Very powerful... and as it is so close to the SQL engine, it is the fastest way to crunch database data.
    So it has very little to do with DBA'ing and everything to do with writing applications. We write full blown (and pretty complex) applications only in PL/SQL, complete with a web interface. Not a single line of code in another language needed. So do not throw PL/SQL into the DBA pigeon hole as it fits rather badly.
    The [Oracle® Database PL/SQL User Guide and Reference|http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14261/toc.htm] (10g Release 2) is a good place to start. If you're on 11g (or even 9i), you can find the relevant guide via http://tahiti.oracle.com
    PL/SQL is a fairly simplistic language. It does not deal with client interaction (reading keyboard and mouse input). It runs inside a VM that is isolated from the o/s - so PL/SQL code written on a mainframe database will execute happily in a Windows Oracle database. Thus no need to deal with different kernels, issues like big endian vs. little endian and so on.
    There are numerous beginner guides to PL/SQL available. Some of them probably good and some not so good...
    Bottom line is that if you are a good programmer, then you will find PL/SQL easy to use and write equally good code in PL/SQL as you would in any other language. It is not the language that is important and dictate the quality of the code, but the programmer.

  • Apex conditional field in "SQL Query (updateable report)" region

    I have a multi-row region that displays values and allows entries in a number of fields. I should like the fields to be conditional in that they do not permit entry, but still display, if certain conditions apply (e.g. older rows greyed out). Can this be done?
    I have searched Google and this forum but all the threads I have found relate to field formatting or display/non-display.
    Many thanks in advance Dave Barber
    [Apex=4.1.1.00.23; Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production]
    Edited by: user13515136 on 03-Sep-2012 00:05

    >
    Welcome to the forum: please read the FAQ and forum sticky threads (if you haven't done so already), and update your profile with a real handle instead of "user13515136".
    When you have a problem you'll get a faster, more effective response by including as much relevant information as possible upfront. This should include:
    <li>Full APEX version
    <li>Full DB/version/edition/host OS
    <li>Web server architecture (EPG, OHS or APEX listener/host OS)
    <li>Browser(s) and version(s) used
    <li>Theme
    <li>Template(s)
    <li>Region/item type(s) (making particular distinction as to whether a "report" is a standard report, an interactive report, or in fact an "updateable report" (i.e. a tabular form)
    With APEX we're also fortunate to have a great resource in apex.oracle.com where we can reproduce and share problems. Reproducing things there is the best way to troubleshoot most issues, especially those relating to layout and visual formatting. If you expect a detailed answer then it's appropriate for you to take on a significant part of the effort by getting as far as possible with an example of the problem on apex.oracle.com before asking for assistance with specific issues, which we can then see at first hand.
    I have a multi-row region that displays values and allows entries in a number of fields.Provide exact details of how this has been implemented. (An example on apex.oracle.com is always a good way to do this.)
    I should like the fields to be conditional in that they do not permit entry, but still display, if certain conditions apply (e.g. older rows greyed out). Can this be done? Almost anything can be done, often in multiple ways. Which are appropriate may be dependent on a particular implementation, the skills available to implement it, and the effort you're willing to expend on it. Hence it's necessary to provide full details of what you've done so far...

  • How can I use the enter key instead of tab to change field focus?

    I am using Acrobat 9 Pro.
    We have a fillable PDF where the users enter numbers into fields.  They want to be able to use the <enter> key on the 10-key pad instead of the <tab> key on the keyboard to move the focus to the next data entry field.
    How can I set my PDF so that it recognizes the <enter> key instead of the <tab> key for changing focus?
    Thanks!

    You can use a custom Keystroke script, something like:
    // Custom Keystroke script for text field
    if (event.willCommit && event.commitKey === 2) {
        getField("Text2").setFocus();
    Where "Text2" is the name of the next field. This doesn't disable the Tab key though. For more information, see: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.608.html

Maybe you are looking for

  • Video but no sound on YouTube

    Running the newest version of FF, Windows XP. Everything was working beautifully until I downloaded the ActiveX plugin when prompted a few days ago. Then the sound on YouTube got borked--I can see the videos just fine, but no sound at all. I've tried

  • When saving my illustrator file to a pdf it doesnt show all the artwork ie boxes are hidden in the pdf or only showing part of them. How can I fix this?

    when saving my illustrator file to a pdf it doesnt show all the artwork ie boxes are hidden in the pdf or only showing part of them. Even some text is hidden. I have flattened the artwork so everything is in one layer. How can I fix this?

  • Embed webquery in PDF using Adobe LiveCycle Designer

    Dear BI Gurus,..Pls. help !!!! We have  NW2004s with Portal and ADS installed Is it currently possible to embed BW objects like query results and Documents into PDF, may  be using Adobe LiveCycle Designer to design a pixel-perfect layout? So for e.g.

  • Have to keep restarting phone

    The past few days my iPhone 4S has been giving me problems. It freezes causing me to do hard reset. It keeps shutting off my wifi and when I **** off phone and turn it back on wifi will be back on. I open texts and it gives me blank screen but works

  • Help with password

    hey i have had to pin protect my mobile to keep my brother from going through it but now he has typed in the password so many times that it is on its last attempt. but the problem is that i only remember putting in a 4 digit pin protection not a pass