Clear the Status field

Hello - I was wondering if anyone could tell me the proper way to clear the status field on a screen once been defined? The setStatus() method requires a field, but I would like to be able to return to its original state somehow.

Thank you

Travis

This seems to work:

setStatus (new NullField());

Tags: BlackBerry Developers

Similar Questions

  • How to reset the Status field and delete ToDo list outside the user interface?

    All, morning

    HR 802 generating WebHelp.

    I made use of the status field and ToDo List in the past. For my next release aid, I would like to reset these fields for all the subjects, so I can still have accurate reports as subjects of creation/revision of the final course.

    Is it possible to do without opening each topic in the user interface and compensation/change manual fields? (I thought to delete all fields of ToDo and recreate them, but thought that there is an easier way.) This information appears in each section or in a separate file?

    Thank you

    Patrick

    Hi Patrick

    1. Close all topics that can be opened in the editor.
    2. Open the pod of the list of topics.
    3. Select all subjects.
    4. Right-click and choose Properties from the subject.
    5. Click the status tab.
    6. Modify if needed.

    All subjects should change to reflect the new status and the task list settings.

    See you soon... Rick

    Useful and practical links

    Wish to RoboHelp form/Bug report form

    Begin to learn RoboHelp HTML 7 or 8 days - $24.95!

    Adobe Certified RoboHelp HTML Training

    SorcerStone blog

    RoboHelp EBooks

  • How to clear the inputText field that contains control data to the Web Service data?

    Hello

    I use JDeveloper 12.1.3 and 2.2 of the MAF.

    I created a Web Service data control that offers the feature of the View object on the server side.

    To use this, I created a taskflow with two pages of amx. The first page of the amx contains a button to call the other.

    The second page of the amx contains fields inputText with the values of the parameters of creation out of the data control functions.

    If I call the second page of the amx inputText fields are empty. On the page, I have a button to call the function of creation itself. By pressing the key the inputText field values will be sent to the server. Everything works great! Pressing on the button also calls for action to return to the first page of amx in the taskflow.

    Now, if a next time I call the second page the inputText fields contain the values from the last call.

    I want the inputText empty fields each time. How can I achieve this?

    Thanks in advance.

    Martin

    You can ask this question in the forum of the MAF

    Oracle Mobile Application Framework

  • Simple question: status field in the workspace

    Hello
    How can you write something in the area of the State of the workspace as the description field you write in code or in the BeginIn description = 'here, you write something.

    Thanks again

    Hello

    The State field is not editable using logic. It is automatically replaced by the engine. The status field is automatically set by the engine to one of 8 different enumerations (for example 'ABORTED', 'DONE', 'RUNNING', etc.) by the engine.

    As you pointed out, while some of the pre-defined as 'description' variables can be defined within the logic - the predefined variable "status" can be changed inside your logic or mapping a Begin activity.

    Hope this helps,
    Dan

  • Cannot remove Task Scheduler batch with the status of 'market '.

    Hello

    I have a set of jobs during a given period (from Dec. 27 to Jan. 2) that appear in the 11.1.2.1 Scheduler batch of workspace as "Running".

    If I right click and choose 'Remove' it removes it from the list of Batch Scheduler, but if you click Refresh the work.

    I tried both the administrator and the owner of the lot without result. I stopped and restarted the entire system without result

    I think it's something on the SQL table to be blown out, I looked at our database of REPORTS and specifically the FR_SCHEDULER_DATA table but there just the JOB_ID and XML argument and nothing that I can clearly define

    Thank you

    JTS

    Celvin,

    I got this and I was on the right track, the STATUS field was 4 and had to switch to 3 (error), then remove

    Check and update the records with STATE = 4 FR_SCHEDULER_DATA

    Connect to the database BIPlus using a database client (SQL-Plus, developer, SQL, SQL Server Enterprise Manager, etc.)
    Run the following query to determine if there are records with a STATUS value of "4".

    SELECT * from FR_SCHEDULER_DATA where STATE = 4;

    If this query returns all rows, run the following UPDATE statement to set the value '3' (Note: '3' state corresponds to 'Error'.)

    UPDATE FR_SCHEDULER_DATA set STATE = 3 where STATE = 4;

    Retest opening Batch Scheduler interface.

  • The user interface related problem: cannot add the status buttons

    Hello

    I'm developing a screen where I need the header and status with controls like buttons and the EditFields. Please take a look at this code

    editField = new EditField();
    
          updateButton = new ButtonField("Update");
    
           cancelButton = new ButtonField("Cancel");
    
          /**        * set up Status manager       */       VerticalFieldManager statusVerManager = new VerticalFieldManager();       HorizontalFieldManager statusManager = new HorizontalFieldManager();
    
            /**        * Add fields in status manager        */       statusManager.add(editField);     statusManager.add(updateButton);      statusManager.add(cancelButton);
    
            statusVerManager.add(new SeparatorField());       statusVerManager.add(statusManager);      /**        * Set status as status manager        */       setStatus(statusVerManager);
    

    Here I can see my edit of the status field but may not see a Cancle and update buttons.

    Previously, I have tried with subLayout() for both the Manager but could not display buttons.

    Waiting for your comments on my code. Atleast help me understand what it is wrong.

    Thanks in advance people.

    Hello

    Solved the problem myself.

    Here's the summary I've done.

    1 removedStatusVerManager. In fact, it has been used only to a separator above the horizontal management of State.

    2 called sublayout inside the statusManager and delimited the height and width.

    3. called setLayOutChild() to do my fiedl edit fixed width and height.

    (I had followed procedure until 3 before I had done new is in step 4)

    4. calls the setPositionChild() method. In fact when I throw a child I have defined his position and the position of all the children who will be added in the same manager. So also set the position of other controls of BROTHER with her.

    5. Add the controls in the Manager.

    He spent setStatus. And I am able to make the desired screen.

    Thank you @ekansh for your answers.

  • Reset values to af: inputText and clear the cache

    Hello world!

    I use JDev Version 11.1.2.3.0

    I have three components af:inputText, pointin' all persistent attributes of a VO. Gets one of these fields it has value calculated (in a managed bean) two other values. This is done on the evolution of the value of these two areas. The problem is when I reset these other two fields (that is, when I delete the content inside them). The value on the third field only to change first. The controls that I've done, it seems that it retains a value in a cache. So when I clear the first field, the value of the third field remains the same, and when I clear the value in the second field too, then the third field gets the bird in the second field.

    I know that this could be a bit confusing, so here's the Basic code snippet, I tried:

    {} public void getTotalContractInfo (ValueChangeEvent valueChangeEvent)

    System.out.println ("value change!");

    If (tvshContractInfo.getValue ()! = null & & it14.getValue ()! = null) {}

    BigDecimal x = new BigDecimal (tvshContractInfo.getValue () m:System.NET.SocketAddress.ToString ());

    BigDecimal = new BigDecimal (it14.getValue () m:System.NET.SocketAddress.ToString ());

    BigDecimal I = new BigDecimal (100);

    BigDecimal m = (y.multiply ((x)) .divide (i);

    totalContractInfo.setValue (y.add (m));

    }

    ElseIf (tvshContractInfo.getValue () == null & & it14.getValue ()! = null) {}

    totalContractInfo.setValue (Integer.parseInt (it14.getValue (m:System.NET.SocketAddress.ToString (())));

    }

    ElseIf (it14.getValue () == null) {}

    it14.ResetValue ();

    totalContractInfo.resetValue ();

    }

    Any ideas what is happening? I have tried several techniques to refresh the components or empty the cache link, but none of them seem to work.

    Thank you in advance!

    After reset value, try to make some (.processUpdates) valueChangeEvent.getComponent (FacesContext.getCurrentInstance ());

    or

    ((UIXEditableValue) valueChangeEvent.getComponent ()) .resetValue ();

    Thank you

  • Restrict the metadata field during an update to a specific group of users

    Hi all

    I have some difficulty to find the best way to restrict permissions to change some fields of metadata for 2 different groups of users.

    I have two user groups, A and b. Group A will check in the documents that group B will then review for accuracy and quality. Group B will then update an optionlist field called "State" with "recommended" or "not recommended".
    This is not a situation of workflow as the scope requires that all documents are immediately available for research. I currently have a profile CheckIn and search for content to read write access for both groups A and B. The 'Status' field is hidden on the page of CheckIn. Can someone please suggest a good way to limit the 'Status' field on a page to update users to simply "B"? Groups A and B must be able to update all the fields except for the limited B field "Status".

    Thank you!

    Published by: user6750815 on June 2, 2010 16:11

    Hey rMac,.
    I understand in this way you have a profile for A and B groups of users. On this profile status field is hidden.

    If this is your problem, you can the two-step approach, while making the rule in order to hide the status field, use the activation of rule condition. Make active only for users with A role. This way even with the only profile some of the user with the role B will be able to see the status field.

    Alternatively, you can put a similar code to restrict the link of personalization where you make this hidden field editable and mandatory for users in B.

    see you soon,
    Sicard

  • Update the status of several records after saving the form

    Hi all

    I have a tabular presentation
    It has a status of a column (new, good, very good, excellent is the options in the list)
    The user accesses and modifies a number of documents on the block of retail and saves the records

    what I want to do, is that when the user clicks Save button after the update of any number of records
    the status field should be updated with the value (new)

    the field status of these documents must be updated with the new value that the user has changed not all records

    Please let me know how to go on this subject

    Thank you

    Published by: mulga bindok may 11, 2009 15:48

    Published by: mulga bindok 11 May 2009 15:50

    Trigger for update on this block of retail pre will work as I replied to your earlier query.
    Try it and let us know if it works?

  • The date fields are clearing after selection LOV

    Hello

    On the page of my creation, I have four fields, only two LOV and two Datetime fields. After you have entered the fields date, when I select the LOV fields the two datetime fields are going to cleared. Please do the needful.

    Kind regards

    Jean sebastien

    problem solved.

    Thank you.

  • reset the hidden fields on the 'clear form '.

    I have a form that changes the values of some fields to display (or can define read-only) when different options are selected. I have provided a 'Clear form' button that executes a javascript script that resets the fields to their original state, but users have always been able to select clear 'form' in the menu, which bypasses the script and can leave the ├a respect State form.

    Is it possible to prevent that the 'Clear form' menu being selected, or override its function or run one of my functions when it does? I've never had a chance to find a solution, and this form should be reset properly in all conditions that a user can meet.

    Mark,

    How about something like this. Set up a hidden field that when allowed runs your Reset routine. I think that the last field that has been added is the last field to reset. You can initialize its value and call your Reset routine in its Validate event if its value is blank, and then reject the change, so it is not actually get deleted.

  • clear the error messages for form fields

    Hello

    I use jdeveloper 11.1.1.4.i having the form with the user name and password.

    I need to clear the error messages when the password meets the model.

    I followed this
    http://blogs.Oracle.com/jdevotnharvest/entry/using_javascript_to_clear_validation_error_messages

    but this leads to a few other issues.it is clear all page error messages,

    but I need to clear the error messages for a component not the adf page.

    The very purpose of ADFPage has a method

    clearMessages
    
    public Object clearMessages(String componentId)
    
        Clears a messages for a particular component id. If component Id is null then the Global messages are cleared.
    
        Parameters:
            componentId       -       a componentId or null for global messages
    

    Find out here http://download.oracle.com/docs/cd/E12839_01/apirefs.1111/e12046/oracle/adf/view/js/base/AdfPage.html#clearMessages_String _
    This should allow you to erase the message of an element.

    Timo

  • Filled text field, clear the default checkbox

    I've seen a lot of question and scripts on when a box is checked, then the text field copies the value of the checkbox.

    What I'm trying to do is the opposite, i.e. If a text field is empty, the check box by default is checked; But if the text field is filled with what, check the check box disappears. Could someone help with scripts?

    Let's say that the checkbox is named "Check Box1". Enter this code in the custom text box validation event:

    this.getField("Check_Box1").checkThisBox (event.value == 0, "");

  • How can set the background color of the status bar?

    Quote from the old forum:

    Comments: comments
    How can set the background color of the status bar?
    Posted the: July 17, 2008 02:56
     
    How can set the background color of the status bar?
    Using this code for the status bar:
    LabelField statusField = new LabelField ("Good Morning", LabelField.USE_ALL_WIDTH |) LabelField.NON_FOCUSABLE | LabelField.HCENTER)
    {
    int _backgroundColour = Color.LIGHTGREEN;
    public void paint (Graphics g)
    {
    g.setBackgroundColor (Color.RED);
    g.Clear ();
    Super.Paint (g);
    }
    };

    Font defaultfont = Font.getDefault ();
    Police smallfont = defaultfont.derive (Font.PLAIN, 12);

    statusField.setFont (smallfont);
    setStatus (statusField);

    When I ran the code you have above, my status background color was red.  Is not what you see?  If so, please provide the BlackBerry model and software version that you are testing.  You can find this under Options.

    Or if you try to do something else, please provide details.

    I tested this in the BlackBerry Simulator included with version 4.5.0 BlackBerry JDE (4.5.0.44).

    To do this in version 4.1, first call getColor and save the current color.  Then call setColor, setting the color to the color you want to use for the background.  After this call call fillRect, starting with 0, 0 and go to the size of the field (use this.getWidth () and this.getHeight () to get this).  This must fill in the field with your specified color.

    To allow the drawing of the default content of the field call setColor once again, passing in the original color, then call super.paint.

  • Two sliders in the custom field definition

    Hi guys,.

    First of all, I want to thank all those who helped me to this day. This forum has been essential for blackberry dev work I do, and I would be screwed without you guys. That being said, I'm having a problem. I install a custom like this text entry field.

    (1) creates a vertical field Manager, assigned a background and resized image with setExtent(). (works fine)

    (2) created a new type of field and inserted in the vertical field Manager to make native look (almost works)

    The problem I have is that two sliders are appearing. Cursor #2 is dynamically updated as it should be, but the #1 cursor seems to be a "flawed slider. Please see the image below for details.

    The custom field is defined using the following code. If I remove the custom field, or cursors comes, so I am positive that it is the source of the problem.

        public class JustifiedEditField extends HorizontalFieldManager implements FieldChangeListener {
            BasicEditField ef;
    
            public JustifiedEditField(long style) {
                super(USE_ALL_WIDTH);
                ef = new BasicEditField(style) {
    
                    protected void onDisplay() {
                        setPosition(10, 17);
                        update(0);
                        //invalidate();
                    }
    
                    protected void update(int d) {
                        super.update(d);
                        setPosition(10, 17);
                        //invalidate();
                    }
    
                    protected void paint(Graphics graphics) {
                        graphics.setColor(Color.WHITE);
                        getFocusRect(new XYRect());
                        drawFocus(graphics, true);
                        super.paint(graphics);
                    }
    
                    protected void onUnfocus() {
                        invalidate();
                    }
    
                    protected void onFocus(int direction) {
                        invalidate();
                    }
    
                    /**
                     * Intercepts ESCAPE key.
                     * @see net.rim.device.api.ui.component.TextField#keyChar(char,int,int)
                     */
                    protected boolean keyChar(char ch, int status, int time) {
                        switch(ch) {
                            case Characters.ESCAPE:
                                // Clear keyword.
                                if(super.getTextLength() > 0)
                                {
                                    setText("");
                                    return true;
                                }
                        }
                        return super.keyChar(ch, status, time);
                    }
                };
                add(ef);
            }
    
            protected void sublayout(int width, int height) {
                super.sublayout(width, height);
                setExtent(width, 57);
            }
    
            public BasicEditField getEditField() {
                return ef;
            }
    
            public String getText() {
                return ef.getText();
            }
    
            public void setText(String value) {
                ef.setText(value);
                invalidate();
            }
    
            public void setChangeListener(FieldChangeListener changer ){
                ef.setChangeListener(changer);
            }
    
            public void fieldChanged(Field field, int context) {
                invalidate();
            }
        }
    

    I am totally stuck on this issue, any help would be really appreciated. TIA!

    I came up with an alternative solution. It turns out that I can use a transparent border to set the offsets to where the edit field must be located within the input Manager; thus eliminating the need to use setPosition.

Maybe you are looking for