How to set an tabbed page value in a field on another page?

Hi,
I am creating an Application in jdev10.3.4 ADF.i have created a tabbed page having 4 tabs
Leeson Learned
Best Practice
Value Addition
Other
on each tabbed page i have a create button which will open a create page on that create page i need to set the value of field named category whose value
will same as tabbed page name
like when we press Lesson Learned tabbed page and then click create button on craete page in category field it should be set to "Leeson Learned" automatically.
can anybody help me out how to do it ?

Please try this - it works fine and I hope you understand it:
You have to take a look for the binding of your radiobuttonlist here - You can change the binding value with a doubleclick, for example
1 to ValueA
2 to Value B
Then you have to change your script and ask for:
if(RadioButtonList.rawValue == ValueA)
    if (NumericField1.rawValue >= 1000 && NumericField1.rawValue <= 4999)
        NumericField1.rawValue *5/1000;
}else
    if (NumericField1.rawValue >= 1000 && NumericField1.rawValue <= 4999)
        NumericField1.rawValue *20/1000;
I would prefer to show the user a message:
if(this.rawValue >=1000 && this.rawValue <=4999)
}else
    app.alert("Please insert a value between 1000-4999. Thx.");
    this.rawValue = null;
You have to coy this in the exit-event of the NumericField1.
Hope it will helps you,
Kind regards Mandy

Similar Messages

  • How to set browser.tabs.closeWindowWithLastTab value=true programmatically

    my application must be closed through close button on my webapplication which is not opened in any popup window.

    Check this out, you can manipulate tabs with this SDK for add ons [https://developer.mozilla.org/en-US/Add-ons/SDK/High-Level_APIs/tabs]
    Or toolkit api FUEL [https://developer.mozilla.org/en-US/docs/Mozilla/Tech/Toolkit_API/FUEL/fuelIBrowserTab]
    I think you can also accomplish this with javascript, but the best guide for this would be the developers on stackoverflow.com

  • How to pass a value of the radiogroup to another page item

    Hi, I have a report with one column as a radiogroup. I have a process that execute the next code when I press a button:
    begin
    for i in 1..htmldb_application.g_f01.count
    loop
    update mesa_entrada set retomada = sysdate where id = htmldb_application.g_f01(i);
    end loop;
    end;
    I want to set the value of the item in another page with the value of the selected radiogroup, How i have to do?
    any suggestion will be welcome!
    Thanks!

    I have the same problem.
    On the new page the global variable HTMLDB_ITEM.G_F01 has 0 values.
    I created a process like this in the new page:
    :P300_FILENAME := HTMLDB_APPLICATION.G_F01.count;
    FOR I IN 1..HTMLDB_APPLICATION.G_F01.COUNT
    LOOP
    :P300_TEST := HTMLDB_APPLICATION.G_F01(I);
    END LOOP;
    and P300_FILENAME gets 0 and P300_TEST is empty. Any sugestions?

  • How does APEX check for null values in Text Fields on the forms?

    Hello all,
    How does APEX check for null values in Text Fields on the forms? This might sound trivial but I have a problem with a PL/SQL Validation that I have written.
    I have one select list (P108_CLUSTER_ID) and one Text field (P108_PRIVATE_IP). I made P108_CLUSTER_ID to return null value when nothing is selected and assumed P108_PRIVATE_IP to return null value too when nothign is entered in the text field.
    All that I need is to validate if P108_PRIVATE_IP is entered when a P108_CLUSTER_ID is selected. i.e it is mandatory to enter Private IP when a cluster is seelcted and following is my Pl/SQL code
    Declare
    v_valid boolean;
    Begin
    IF :P108_CLUSTER_ID is NULL and :P108_PRIVATE_IP is NULL THEN
    v_valid := TRUE;
    ELSIF :P108_CLUSTER_ID is NOT NULL and :P108_PRIVATE_IP is NOT NULL THEN
    v_valid := TRUE;
    ELSIF :P108_CLUSTER_ID is NOT NULL and :P108_PRIVATE_IP is NULL THEN
    v_valid := FALSE;
    ELSIF :P108_CLUSTER_ID is NULL and :P108_PRIVATE_IP is NOT NULL THEN
    v_valid := FALSE;
    END IF;
    return v_valid;
    END;
    My problem is it is returning FALSE for all the cases.It works fine in SQL Command though..When I tried to Debug and use Firebug, I found that Text fields are not stored a null by default but as empty strings "" . Now I tried modifying my PL/SQL to check Private_IP against an empty string. But doesn't help. Can someone please tell me how I need to proceed.
    Thanks

    See SQL report for LIKE SEARCH I have just explained how Select list return value works..
    Cheers,
    Hari

  • HTML-DB 1.6 (Apex) in a JavaScript - affect a value to a field in my page

    Hi everybody,
    Is it possible to affect a value to a field in my page ?
    <script language="JavaScript1.1" type="text/javascript">
    function message()
    &P32_MESSAGE1. = 'It's a new message';
    </script>
    Thanks. Bye.

    Yes, that's what javascript is all about, making the page more interactive before the page is submitted back to the server. In addition to changing values you can change the appearance of the page, showing and hiding pieces and parts in response to user actions.
    One thing you have to do to start using javascript with ApEx is to switch mindset from the ApEx item naming standards to the javascript methods for referring to those items. For instance, instead of &32_MESSAGE_1. as in your example, you might do something like:
    function setMessage() {
    var e = html_GetElement('P32_MESSAGE_1');
    var e_value = e.value;
    if (e_value == '') {
    e.value = 'My new value';
    Many things are possible with javascript. There are lots of good examples on some of the frequent poster's sites, like Carl Backstrom and Vikas. Have fun.
    Earl

  • How to set the default context value for flexfield in OAFramework pages

    Hi,
    I have a page which contains a contexxt value field i.e Flexfields
    To select the context value we have to select the value from drop down
    So Here we want to display the context value immediately when the page is called
    How to set the default valu in this case
    Regards,
    Krishna

    You can set the Attribute category view attribute to the Flexfield context value and call prepareforRendering in the flex bean. Check the dev guide for details.
    Regards
    Sumit

  • How can I set the tab order of text box controls on each page of a tab control?

    I need to be able to select the tabbing order of individual controls on a single page of a tabbed control. How??

    In LV 6.1 an up you should be ablel to right click on the edge of the tab control when the tab-page in question is selected.
    The bttom selcetion in the pop-up is "Reoder controls in page..."
    selecting this option will switch editing modes to allow you to specify the ored, just like in a cluster.
    I seem to remeber in older versions you had to drag the tabable controls off the tab control, specify the tabbing oder and then drag them back on. The oldest version I have on this machine is 6.1 so that all I can speak for at the moment.
    I hope this helps,
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Setting the value of a textbox from another page

    Hi Everyone,
    I have a multi paged application (multiple xib, multiple controllers)
    In my selection view, the view that holds the UIViewPicker control, I need to populate the page that called the selector page...
    I have the code to identify what page called the selector, and when the page is dismissed, I need to fill in the field from the calling page.
    I have included the header of the calling view in my selector view, and now I need to be able to fill in a readonly textbox in the calling view....
    Do I need to setup a property for each of the textboxes in the calling view, or can I populate them directly??
    thanks
    tony

    alt-088 wrote:
    I am sorry, but I am lost in this implementation....
    How exactly do I tell the self.parentViewController what control will receive the new text value??
    Ooooops!! I'm the one who needs to be sorry, Tony:
    // from previous post
    - (void)setTextInParent:(NSString* textValue) {
    // assume that every possible parent controller has a "textbox" object
    // which is a member of some class that has a writable 'text' property
    [previousViewController setValue:textValue forKey:@"text"]; // <-- * Idiot alert *
    Looks like another one of my senior moments. As you pointed out, we need the value of the 'textBox' property before we can set the value of the 'text' property.
    To your question on how I am displaying the second view, it is called via
    [self presentModelViewController:screen animated:YES]
    from a button click event
    Cool. That means we already have the address of vc1 in the 'parentViewController' ivar of vc2, so we don't need to add the 'previousViewController' ivar shown in my example.
    So here's a corrected and maybe more relevant example--this one has been tested (Duh!), btw:
    - (IBAction)done {
    // get the currently selected string
    NSInteger row = [pickerView selectedRowInComponent:0];
    NSString *selection = [dataArray objectAtIndex:row];
    NSLog(@"%s: selection=%@", _func_, selection);
    // set text in textBox property of parent controller
    [self.parentViewController setValue:selection forKeyPath:@"textBox.text"];
    [self dismissModalViewControllerAnimated:YES];
    I have tried to implement this code
    [self.parentViewController setValue:21 forKey:@"test"];
    but it is generating an error stating
    passing argument 1 of 'setValue:forKey:' makes pointer from integer without a cast
    Yeah, referring to the doc, [setValue:forKey:|http://developer.apple.com/iphone/library/documentation/Cocoa /Reference/Foundation/Protocols/NSKeyValueCodingProtocol/Reference/Reference.html#//appleref/occ/instm/NSObject/setValue:forKey:] wants an id type (pointer to an object of any Obj-C class) for the first arg. Since 21 is an int, i.e. a scalar value, the compiler doesn't like it (and the runtime system would like it even less).
    However when you want to use KVC to set a scalar property, the methods are actually smart enough to extract an int if you provide a NSNumber object (see "Setting Attribute Values Using Key-Value Coding" under [Key-Value Coding Fundamentals|http://developer.apple.com/iphone/library/documentation/Cocoa/Conc eptual/KeyValueCoding/Concepts/BasicPrinciples.html#//apple_ref/doc/uid/20002170 ] in the Key-Value Coding Programming Guide). So if 'test' is an int ivar of the parent controller, something like this should work:
    [self.parentViewController setValue:[NSNumber numberWithInt:21] forKey:@"test"];
    Does that cover your questions? Sorry again for the bad code. Most of the examples I post are pasted directly from working, tested code, and I usually add a disclaimer if it's just something I keyed into the forum. But when I"m having a senior moment all bets are off.
    - Ray

  • How to set a default integer value in a form

    I have a form defined as follows:
    =================================================
    public static class ProjectForm extends FormData
    private int idx;
    private String name;
    private String projectNumber;
    private String description;
    public void setIdx(int index)
    this.idx = idx;
    public int getIdx(){
    return this.idx;
    public void setName(String name)
    this.name = name;
    public String getName()
    return this.name;
    public void setDescription(String description)
    this.description = description;
    public String getDescription()
    return this.description;
    public void setProjectNumber(String projectNumber)
    this.projectNumber = projectNumber;
    public String getProjectNumber()
    return this.projectNumber;
    ======================================================
    When I add a new entry into the database, I have no issues. However, when I want to modify an entry I run into some issues with the idx entry. For some reason, I cannot set a default value into the netui:label tag. My jsp code is as follows:
    ===================================================
    <tr valign="top">
    <td>
    Index:
    </td>
    <td>
    <netui:label value="{actionForm.idx}"
    defaultValue="{pageFlow.project.idx}"/>
    </td>
    </tr>
    <tr valign="top">
    <td>
    Name:
    </td>
    <td>
    <netui:textBox dataSource="{actionForm.name}"
    defaultValue="{pageFlow.project.name}"/>
    </td>
    </tr>
    <tr valign="top">
    <td>
    ProjectNumber:
    </td>
    <td>
    <netui:textBox dataSource="{actionForm.projectNumber}"
    defaultValue="{pageFlow.project.projNum}"/>
    </td>
    <tr valign="top">
    <td>
    Description:
    </td>
    <td>
    <netui:textBox dataSource="{actionForm.description}"
    defaultValue="{pageFlow.project.description}"/>
    </td>
    </tr>
    ======================================================
    The the project class is passes into the page and has the appropriate values. The name, project number and description fields work as I would expect. However, the idx value is alway '0'. If I print out pageFlow.project.idx it has the correct value.
    How do I fix this? My feeling is that it is related to the form field being an int and not a string. The default parameter indicates that is only works with null values, and ints default to zero. Do I need to use an Integer value instead in the form, or just stay away from non-string form fields.
    Thank for the help!!
    --John                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    In the action which displays the edit page just set the form idx value before displaying the jsp.

  • How to set a form element value using javascript?

    Hello,
    I have been using the following two functions in AS 9.0.2 to set form values in javascript and it works correctly. However, the same code does not work in AS 10.1.2.0.2. Would appreciate if someone could let me know how to set form elements using Javascript(onchange of a field).
    function set_item_value(p_field_name, p_value)
    var v_index, v_full_name;
    for(v_index=0; v_index<document.forms[0].length; v_index++)
    v_full_name = document.forms[0].elements[v_index].name.split
    if (v_full_name[2] == p_field_name)
    document.forms[0].elements[v_index].value = p_value;
    function get_item_value(p_field_name)
    var v_index, v_full_name, v_return="";
    for(v_index=0; v_index<document.forms[0].length; v_index++)
    v_full_name = document.forms[0].elements[v_index].name.split
    if(v_full_name[2] == p_field_name)
    if(document.forms[0].elements[v_index].type != "radio")
    v_return = document.forms[0].elements[v_index].value;
    else
    if(document.forms[0].elements[v_index].checked)
    v_return = document.forms[0].elements[v_index].value;
    if(v_return == " ")
    v_return = "";
    return v_return;
    Thanks
    Dev

    This is not the best way to write JavaScript in Portal environment!
    You can't be sure that a form is the first in the html source!
    In Portal you change the order of your portlets, and also you can have several instances of the same portlet on the same page!!!
    You should use qualified form and field names!
    Please check the following JPDK methods:
    UrlUtils.htmlFormName
    HttpPortletRendererUtil.portletParameter

  • How to prevent flushing out the value in Select one choice on page refresh

    Hi All,
    I am using Jdeveloper 11.1.1.4.0. In my page fragment I am using select one choice ADF component. I have a requirement that unless one fills all details on 1st fragment he/she cant move to next fragment.
    So validations are there to check that mandatory fields filled or not. If not than I am showing message to fill the mandatory fields when user press on "Review " Button.
    But the value in select one choice is getting cleared while other input values like date fields or input text are not(The input information stored in static variables)
    How can I prevent flushing out of select one choice value .
    Thanx
    kanika

    Kanika,
    You don't have value property set due to which the selected value doesn't get stored and looses its value on refresh.
    When you drop attribute as select one choice on page, the value property get bounded to some value, did you remove it intentionally?
    If so, can you try keeping the property and see if you see the intended behavior?
    Sireesha

  • ADF Faces: af:menuTabs - How to set selected tab

    I cannot find any documentation on how to set the selected tab of an af:menuTabs instance.
    Please help.

    Hi,
    the method above works if you manually inserts the menu items into a menu component, but not if you declaratively bind each component to a menu model.
    Following the ADF developer's guide, I created a dynamic menu using menuTabs (Section 11.2 Using dynamic menus for navigation). But somehow I don't get a difference in appearance between the selected and unselected tabs.
    I am also confused with the explanation in the tutorial. It says "The menu model in conjuction with nodeStamp controls whether a menu item is rendered as selected. As described earlier, a menu model is created from a tree model, which contains viewId information for each node. ViewIdPropertyMenuModel, which is an instance of MenuModel, uses the viewId of a node to determine the focus rowKey. Each item in the menu model is stamped based on the current rowKey. As the user navigates and the current viewId changes, the focus path of the model also changes and a new set of items is accessed. MenuModel has a method getFocusRowKey(), which determines which page has focus, and automatically renders a node as selected if the node is on the focus path."
    Any suggestions where I should add code to change the appearance of the selected tab? I am using the default Oracle skin.
    Greetings,
    Birgit

  • How to set the parameter ID value for a range

    I am trying to call transaction KSB1 (Display actual line items for cost center) by supplying all the default values for the selection options/parameters and skipping the selection screen from the calling program. However, for the cost center range, both HIGH and LOW field have the same PID (i.e. KOS). Same thing for the cost element range. When I set the value for PID "KOS", only the low value got populated.
    I tried to pass a BDC table to the
    CALL TRANSACTION 'KSB1' USING  bdc_tab
    , but the PID used before takes higher priority so the bdc_tab values got overwritten by the PID values for those fields.
    Does anybody know how to find or set the PID for a selection range? I need PID for Cost center range, cost element range and the period (PID="VPE").
    Any advice is appreicated. Thank you
    Minami

    otherwise try to make use of SUBMIT command.
    <b>Hi Preetahm ,
    KSB1 is a Report , not a Tcode to maintain master data or any thing like that ?, u can also cross check?</b>
    by using SUBMIT command u have to <b>RKAEP000</b> this program along with the selection screen.
    regards
    Prabhu
    Message was edited by: Prabhu Peram

  • How to set 0 for "Nan" Value in the Column

    Hi All,
      I have 3 imp columns with name Build %,Deploy%,Validation % and I would like to set the value as "0" or "1" using formula and below is the formula . But I am getting the values as "Nan" due to that it's reflecting the
    Pivot Table & Report  which show in below 2nd image.
    And I had written formula  as "=SWITCH(EDSCIMonthlyReport[Build %] , "Nan", 0)"  to copy all the values of the Build % Field to another calculated Column and set the value "0" if found "Nan" ,But I am getting
    error as"Function 'SWITCH' attempted to compare values of incompatible types. Ensure that both values are Numeric, String, or Boolean(True/False). Consider using the VALUE or FORMAT function to convert one of the values".Can any one help me how can
    I solve this issue
    Thanks,
    Sid

    Hello Sid,
    Again TFS? The data type of the column is "text" and now you want to convert it to a numeric to use it as a measure, right?
    - First you have to change "NaN" to "0" (<= 0 as type "Text"!, see your error msg); you can do it with an IF expression
    - Then you have to remove the % sign; it's a text as well. For this you can use the SUBSTITUE function
    - Then you can convert it to a numeric using the VALUE function
    As one complete expression it will look like this:
    = VALUE(SUBSTITUTE(If(Tabelle3[Build] = "NaN"; "0"; Tabelle3[Build]); "%"; ""))
    As you can see in below screenshot PowerPivot automatically detects the data type as "Decimal"; now you can use it as a measure value.
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • I need to know how to set new tabs to open on my Google homepage instead of opening a blank tab.

    I had this feature set before when I was using Firefox 3.6. Now I have FF4 and I can't find an option anywhere to set my tabs so that a new tab opens on Google instead of opening a blank page. I may just be overlooking it, but I can't fin an answer to this through search feature in help on Mozilla. Anyone got an answer for me?

    You can do that by using an add-on such as:
    * NewTabURL - https://addons.mozilla.org/firefox/addon/newtaburl
    * New Tab Homepage - https://addons.mozilla.org/firefox/addon/new-tab-homepage
    Another way of opening the home page in a new tab is to middle click on the home button in the navigation toolbar.

Maybe you are looking for

  • How do I fill by chunks a clob inside a table while XML is generated?

    Hello everybody: Needed to generate a single XML file from around 50 million rows, where the XML ouput matches not only row data but another default values for another elements and attributes (not from database but using strings and types with defaul

  • Unit of measure - rounding off during creation of planned order

    Dear All, We have defined one material OIL in MM41 and its UoM is EA also we have put alternative UoM is L(liter). now we create BOM of semifinished material we use this oil as a component and enter its value in decimal points. e.g 0.375 EA During pl

  • Ipad does not appear on itunes 11

    My first gen ipad and my iphone 5 do not appear in itunes 11 (even though the computer recognizes the devices when they are plugged in to import photos.  Wifi sync does not work either.  Any help?

  • Problem with Z70-80 BIOS ABCN80WW

      Salve ho appena aggiornato il mio Lenovo Z70-80 passando dalla versione firmware ABCN32WW a ABCN80WW. Aggiornamento riuscito correttamente. Al riavvio non funzionano piu le due porte usb2.0 nello specifico non sono piu alimentate da quando si è car

  • Insert problem oracle 10.1.0.3.0 Linux

    I have a weird problem. I insert row 1 then row 2, it's ok. now delete everything. I insert row 1 then row 2, it's ok. no delete everything. I insert row 2 then row 1, segment violation on insert statement. If I do it on a different machine it works