After using popScreen() than pushScreen(), how to remove the fields present in this first screen.

I have two screens, first_one contains 17 fields & by a button_presnt in the first screen, I'm reaching to the second screen, on the second screen after pop_screen (first) & push_screen (first) I get my first screen, now I want to remove 15 fields, but I face the error, this illegal argument exception, or "Try to delete a field that is not the Manager"... & Note this point I got the get_field_count from the first screen.
Try

{

UiApplication.getUiApplication () .popScreen (object_to_supprot);
UiApplication.getUiApplication () .pushScreen (object_to_supprot);
}
catch (Exception err)
{
Dialog.Inform ("page load error:" + err);
}

Try
{
Dialog.Inform ("field homepage County:"+ object_to_supprot.getFieldCount () ');

int k = object_to_supprot.getFieldCount () - 1;

While (k > 1)
{
Delete (object_to_supprot.getField (k));
k-- ;
}
}
catch (Exception err)

{

Dialog.Inform ("error in the setting of the key work:" + err);

}

I disagree with Simon here.  I think that the deletion of fields of a screen is a valid thing to do.  I can see the case when you are using the same screen, but have two different sets of data that require slightly different fields on the screen.  This is what seems to be the case here.

I just realized what is the problem.

your code:

Delete (object_to_supprot.getField (k));

must be:

object_to_supprot. Delete (object_to_supprot.getField (k));

Your current code is actually:

This.Delete (object_to_supprot.getField (k));

and 'this' is probably your second screen.  You want to remove fields from your first screen.

Can I ask you to review my first post and Simon post, once again.  If please review how to use the battery in the display and make sure that you use it properly.

Tags: BlackBerry Developers

Similar Questions

  • How to remove the cache presentation Services (Web UI)

    Hello

    How to remove the cached presentation Services (Web UI) and SPR also.

    Hi user,

    Parameters---> Administration---> problem SQL

    Call SAPurgeAllCache();

    above the purge cache level user interface command and the RPD.

    Thank you
    Saichand.v

  • Using Bootstrap navbar base, how to remove the border on the collapse?

    I use Bootstrap navbar based on my Web page. When I do the Web page lean and menus drop down to collapse, she leaves a border around menus when I open the Menu. Does anyone know what CSS do I edit to remove this border? Much appreciate it any help you can offer. Thank you!

    bootborder.png

    The out-of-the-box of the Bootstrap version doesn't have a border, so it's something that you have modified. Please give us a link to the (temporary) site so that we can see what you've done.

  • I have just re installed Windows XP. Windows installed after three attempts. When I turn on the computer there are three choices of Windows XP. Only the first works how to remove the other two?

    I have just re installed Windows XP. Windows installed after three attempts. When I turn on the computer there are three choices of Windows XP. Only the first works how to remove the other two?

    I have a hard drive. At least two partitions. C: 74.7 GB with 63.3 freespace
    D: 74.2 GB with 70.6 freespace
    These are my original specifications of the hard drive: 160 GB (7200 RPM) SERIAL ATA HARD DRIVE WI
    So I suspect there are at least one or more partitions hidden leaving 11.1 GB for hidden partitions!
    Windows is present on both drives C: & D:. In the directory windows on C:, the oldest entry is 19.12.12, 21.43 last 21.12.12, 22.50
    The first entry in the directory windows on D: is 19.12.12, 18.42 the last 21.12.12, 22.40
    I hope that makes sense to someone, any help gratefully received!

    As long as you have verified you dΘmarrez done on the c: / partition, Yes, you can reformat the drive D: / partition using Windows 'disk management '.

    J W Stuart: http://www.pagestart.com

  • How to remove the variable created when using definedNamedWhereClauseParam()

    Hello

    My Jdev version 11.1.1.7.0.

    I'm Executive where clause programatically where I need to bind two bind parameters under certain conditions. Example, I have two bind variables X, Y.

    Here's the problem:

    Assume that the first time I'm setting one variable X, so I define X bind variable and execute the query.

    What second time I send only Y but not X. In this implementation of the scenario of VO throw an exception, given that the variable X is already created in the VO object and where clause does not have this setting.

    So how to remove variables created in the original Version all in definedNamedWhereClauseParam(). I need to erase what ever the previously created variable every time I execute method.

    I can make the similar functionlity using setWhereClauseParam (using literals). But I have a few technical restrictions for use.

    Could you please help me how to remove the variable before vo using definedNamedWhereClauseParam.

    Caused by: java.sql.SQLException: try to set a parameter name that does not intervene in the SQL: itemNumber
    at oracle.jdbc.driver.OraclePreparedStatement.setObjectAtName(OraclePreparedStatement.java:15969)
    at oracle.jdbc.driver.OraclePreparedStatementWrapper.setObjectAtName(OraclePreparedStatementWrapper.java:911)
    at weblogic.jdbc.wrapper.PreparedStatement_oracle_jdbc_driver_OraclePreparedStatementWrapper.setObjectAtName (unknown Source)
    at oracle.jbo.server.OracleSQLBuilderImpl.bindParamValue(OracleSQLBuilderImpl.java:4669)
    at oracle.jbo.server.BaseSQLBuilderImpl.bindParametersForStmt(BaseSQLBuilderImpl.java:3687)
    at oracle.jbo.server.ViewObjectImpl.bindParametersForCollection(ViewObjectImpl.java:22742)
    at oracle.jbo.server.QueryCollection.buildResultSet(QueryCollection.java:1298)
    ... more than 96



    Thank you.

    -Diette.

    Published by: Vidya Diette on February 28, 2013 08:43

    Hello

    You need access to the variable Manager. Order of reading in the JavaDocs:

    http://docs.Oracle.com/CD/E28389_01/apirefs.1111/e10653/Oracle/JBO/ViewObject.html--> http://docs.oracle.com/cd/E28389_01/apirefs.1111/e10653/oracle/jbo/VariableManagerOwnerBase.html#getVariableManager%28%29--> http://docs.oracle.com/cd/E28389_01/apirefs.1111/e10653/oracle/jbo/VariableValueManager.html--> http://docs.oracle.com/cd/E28389_01/apirefs.1111/e10653/oracle/jbo/VariableManager.html#removeVariable%28java.lang.String%29

    Frank

  • How to remove the message "not using current Version" boring?

    For months, my Firefox home page included a note that I do not have the latest version and provides a link to update. When I use the link I said "Congratulations, you are using the latest version." Adding insult to injury, there are not 20 minutes, I downloaded 27, and the message is still there. Almost the end of the world, but at this point, it is very annoying. How to remove the message?

    The old page of Google-Firefox has not changed since Firefox 4 is released, please disregard the information updated on this page.

  • How to remove the support contact at screenshot using the "home" button

    guys, please help, how to remove the support contact at screenshot using the "home" button? I use 6 s ios 9.2, but when I take screenshot with the menu help key, the help key disappear on my photo, but the problem is, I want to take screenshot with my home button, please help... Thank you

    What turned the problem into a screen with the home button? Quickly, you press the power off button and home together and release - if the sounds are enabled - you should hear the camera shutter sound and have the capture in your app screen shots. The help key is not displayed

  • BlackBerry Smartphones used BB Curve, how to remove the previous E-mail addys

    Hello! I bought a used BB curve and I cannot for the life of me figure out how to remove the e-mail address of owners at the previous address. When I compose a message he asks me what email I want to send from and he has my address and 2 of the former owners of e-mail addresses. When I look in different folders there only my email address listed to delete or change. Any ideas?

    To remove the previous owners email ID

    1. go to Options
    2. Advanced options
    3. Service books
    4. Highlight the E-mail ID that you want to remove
    5. Click on the Menu
    6. Select Remove
  • How to remove the trial version of Acrobat DC 30 days that I have somehow on my MacBook Pro?  I don't want the dang thing, and it prevents me from using my Acrobat Pro 11 software.  Trying to access using the tree without end of support for Adobe is reall

    How to remove the trial version of Acrobat DC 30 days that I have somehow on my MacBook Pro?  I don't want the dang thing, and it prevents me from using my Acrobat Pro 11 software.  Trying to access using the tree without end of support for Adobe of really making me cranky.

    Hi thomh65004143,

    You simply drag the Acrobat DC application from the applications folder to the trash to uninstall.

    Then restart your system & install Acrobat XI Download Adobe Acrobat products. Standard, Pro | DC, XI, X.

    Let me know if you are still having a problem.

    Kind regards

    Nicos

  • How to remove the meeting via API to use Adobe Connect 8 Web Services

    Support using Adobe Connect 8 Web Services API 'Meetings to create' to create an Acrobat Connect Pro meeting.

    But I don't find not "Delete meeting" API similar to delete the meeting, could you tell me how to remove the meeting via API.

    Thank you!

    You must have used sco - create to create the meeting. To remove a meeting, use sco - remove API call.

    Find its documentation here.

  • How to remove the black bars after image rotation

    I am very new to the use of first pro. I took a video with my smartphone like the contents of a project.  The original size is 1280 wide and 720high.  I imported the video and needed to rotate 90 degrees.   Instead of the scale I need tall. I imported and then under effects control - motion - rotation to rotate how I wanted.

    But now on the screen has black bars on the sides from the turn, and when I export the video basic settings is grayed out so I can't change it. It is game/set at 1280 x 720 with black bars.

    How can I remove the black side bars in first pro to fit the dimensions of the video shot recently?

    Great! I'm glad to hear it. Thank you for the presentation of reports. If you don't mind, please mark my answer as "Correct".

    The reason for which the clips were 56% was so that they would hold the frame of landscape size. Once they were they belonged, they were happy to 100%.

  • password on HP pavilion home pc used I'll start PC how to remove the password of owner he ask to log

    I bought a pc at a yard sale and the guy gave me a password, but it does not work what can make the password on HP pavilion windows xp home edition and it won't let me boot pc how to remove the owner password it asks to connect to windows? is there a jumper to remove the old?

    Hello

    Welcome to the Microsoft Community and thanks for posting the question. I understand that you want to remove the password on computer xp. Let me help you with the issue.

    1. were you able to get to the desktop screen earlier?

    2. what security software is installed?

    3. have you made changes on the computer recently?

    4. have you SP 3 installed update?

    To resolve this issue, let us try these methods:

    Method 1.

    Start the computer in safe mode and try to connect to the admin user account.

    To start the computer in safe mode: http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/boot_failsafe.mspx?mfr=true

    Method 2.

    You can create a new admin user account and check the status.

    You can create a new user account and check. Once the new user account works fine, then copy the data from the old user account for the user account.

    How to copy data from a user profile damaged to a new profile in Windows XP: http://support.microsoft.com/kb/811151

    I hope this helps. If you need further assistance on this particular issue or any other related issue Windows let us know and we will be happy to help you.

    Thank you.

  • How to remove the original RAW files after deletion of the intelligent insights?

    Hello comrades!

    I have change my series of photos with smart thumbnails, disconnected my external HARD disk (where the original RAW files). I deleted some pictures from the catalog, and I now have only the best photos of "keeper".

    Could you help me please, how to remove the original rejection RAW from my hard drive external? If I connect my external hard drive and try to sync photos, LR offer me an import dialog box photos refused from the external hard drive, instead delete photos denied the original RAWs.

    Thank you very much!

    John

    Stop disconnect the external drive before you delete the catalog releases and select Remove from the disk.

    Otherwise, you will need to manually, delete them externally or reimport then them select all, make sure previous import is selected, Photos and then delete and remove disk.

  • How to remove the search box in the Windows 7 Start Menu?

    I'm a guy from keyboard. Encoder, mudder. Therefore, I prefer my Start menu for user-friendly keyboard, which includes the removal of the search box as the focus of pigs. I can't find this option in the control panel to the taskbar and Start Menu. I lack, or it is impossible to get the classic Windows, looking for the start menu?

    I forgot on the thing... If you want to remove the search box, try this: start > Control Panel > programs > Turn Windows features or disable > uncheck Windows Search

    ...

    I said that you can press Tab... wrong... you must press SHIFT + Tab.

    ...

    About to express my opinion - there is a simple reason why I do this. Some time ago, someone asked how to remove the search box, and it received no response for a few days. After that, I found this option, how to remove... When I said on this subject after a few days, I heard that this person used to this new feature of Windows and now it will keep it. I'm not saying that your opinion is wrong... this system differ only from XP... so we have to try to learn something new and check after a few days we don't like this solution more than the previous.

    ...

    I wonder why write you in commentary edition which has pasted the link almost not worth it. You will get exactly the same behavior of Menu start as in Windows XP. I thought that you, like this old solution... "Pinning just something that mimics the classic style"... No... you have clicked on the first link... you should read more prudent. There was also another. But even if you have selected the first solution with menu PIN... I guess you don't know that you can run all the pinned programs by pressing the Windows key + number... for example, WinKey + 1, so that each action is made without a mouse.

  • Satellite A30 - 504 - how to remove the old HDD and new mount?

    Hello

    I have problem with my laptop satellite. After the turn on I've got Announces s.m.a.r.t. disk is damaged.

    I do not have it is why I do not know how to remove the old HDD and replace the new statement.
    I will be grateful for the help.

    Hello

    Looking first for similar discussions in this forum? I guess that you didn t ;)
    The advanced search option is very useful and you can search for single yarn that could help you.

    I found this:
    http://forums.computers.Toshiba-Europe.com/forums/thread.jspa?threadID=12526&MessageID=45688

    and this

    http://forums.computers.Toshiba-Europe.com/forums/thread.jspa?threadID=12547&MessageID=45752

    It seems that the hard drive on your A30 is in the optical drive, and you must remove all first the STRANGE before you get access to the HARD drive.

    Best regards

Maybe you are looking for

  • The Web sites I visit regularly now display correctly.

    All the websites I visit are now displayed on a white background with the text of the site aligned vertically on the left. There is no pictures and many site options are no longer displayed.

  • How can I check customers get updates from the caching Service?

    I've just set up a server 10.11 with Server.app version 5.0.15 to act as a provisioning server caching to provide updates to the clients Mac (no iOS device). I see that he has downloaded updates the Stats section when I chose bytes served in the drop

  • NW9440: Quadro FX1500M Windows 10 x 64 NW9440

    OK, I know this laptop (NW9440) is the best part of ten years now, and I may be on a hiding to nothing. But HP did release the drivers for the Quadro FX1500M for both Windows 7 and drivers at the level (AFAIK) 8 and 8.1 in the form of the 259.47 whic

  • M40 PCI - device missing...

    Hello I have a Toshiba Satellite M40-135 (France version), I installed all the drivers CD of drivers, but there are still some PCI device missing :( Where to find the driver for the device in PCI (opus system Win XP). Thanks for informative and soon

  • File currupt inside my e250

    My e250 player has had a few bad and currupted files. Although my e250 has of a memory of 2 GB only but these files showing the space of 4 GB. Due to these files my e250 shows only 1300 MB of memory. I try to remove them, but it did not work, they wo