How to discard the location of forms that are invalid

Hi I am facing a problem with the form location for different user profiles.The defect may be that if an out of bounds location is what is stored in a users profile it will use that profile location even if it is invalid. A check needs to be made to insure that the location in the user profile is valid for the position and to ignore it if it is not.Here are 2 files give 1. that sets User profile and 2. that saves user profile.
probably should check the validity when the profile is read from the server and discard bad entries there.
*1.Here is the code that sets the users profile.*
public class SetUserProfile extends UIJFrame
private JComboBox _profileNameCmb = new JComboBox();
private UserProfile _userProfile;
final String OK_BTN_NAME = "Ok";
final String CANCEL_BTN_NAME = "Cancel";
* Constructor for the SetUserProfile object
*@param args The command line arguments
public SetUserProfile(String[] args)
// Invoke base class constructor to create frame, menu and toolbar
super(args,
"Set User Profile",
UIJFrame.FORM_SET_USER_PROFILE,
true,
false,
UIJFrame.MENU_BASIC,
UIJFrame.TOOL_BASIC);
try
// Get the user profile instance
_userProfile = UserProfile.instance();
// Initialize the displayable components on the form.
initialize();
* This method sets the profileNames attribute of the SetUserProfile object
*@param profileNames The new profileNames value
private void setProfileNames(final String[] profileNames)
_profileNameCmb.setModel( new DefaultComboBoxModel( profileNames ) );
// setting the model has the side effect of resetting the
// picklist model to null on the model property change
_profileNameCmb.setSelectedItem(
( profileNames == null ||profileNames.length == 0 )
? null : _userProfile.getActiveProfileName());
* This method sets the new profile name with the user profile instance.
*@param e Description of the Parameter
public void onOk()
// Clear the feedback message, if any.
getFeedbackBar().setInformationMessage( "" );
String userId = null;
try
// Get the user of record.
userId = getClientManager().getUserOfRecord();
// Set the new profile with the UserProfile instance.
UserProfile.instance().setActiveProfileName(
(String)_profileNameCmb.getSelectedItem(),
userId,
null );
// Close the form.
onCancel();
*2.There is an other file that saves the user profile.The related code is:*
void onOk(ActionEvent e)
try
if(_userProfile.saveCurrentWorkspaceAs(
(String) _profileNameCmb.getSelectedItem(),
this)) {
onClose();
Edited by: sail on Jan 3, 2008 10:04 PM
Edited by: sail on Jan 3, 2008 10:08 PM

Hi I am facing a problem with the form location for different user profiles.The defect may be that if an out of bounds location is what is stored in a users profile it will use that profile location even if it is invalid. A check needs to be made to insure that the location in the user profile is valid for the position and to ignore it if it is not.Here are 2 files give 1. that sets User profile and 2. that saves user profile.
probably should check the validity when the profile is read from the server and discard bad entries there.
1.Here is the code that sets the users profile.
public class SetUserProfile extends UIJFrame
private JComboBox _profileNameCmb = new JComboBox();
private UserProfile _userProfile;
final String OK_BTN_NAME = "Ok";
final String CANCEL_BTN_NAME = "Cancel";
* Constructor for the SetUserProfile object
*@param args The command line arguments
public SetUserProfile(String[] args)
// Invoke base class constructor to create frame, menu and toolbar
super(args,
"Set User Profile",
UIJFrame.FORM_SET_USER_PROFILE,
true,
false,
UIJFrame.MENU_BASIC,
UIJFrame.TOOL_BASIC);
try
// Get the user profile instance
_userProfile = UserProfile.instance();
// Initialize the displayable components on the form.
initialize();
* This method sets the profileNames attribute of the SetUserProfile object
*@param profileNames The new profileNames value
private void setProfileNames(final String[] profileNames)
_profileNameCmb.setModel( new DefaultComboBoxModel( profileNames ) );
// setting the model has the side effect of resetting the
// picklist model to null on the model property change
_profileNameCmb.setSelectedItem(
( profileNames == null ||profileNames.length == 0 )
? null : _userProfile.getActiveProfileName());
* This method sets the new profile name with the user profile instance.
*@param e Description of the Parameter
public void onOk()
// Clear the feedback message, if any.
getFeedbackBar().setInformationMessage( "" );
String userId = null;
try
// Get the user of record.
userId = getClientManager().getUserOfRecord();
// Set the new profile with the UserProfile instance.
UserProfile.instance().setActiveProfileName(
(String)_profileNameCmb.getSelectedItem(),
userId,
null );
// Close the form.
onCancel();
/}2.There is an other file that saves the user profile.The related code is:
void onOk(ActionEvent e)
try
if(_userProfile.saveCurrentWorkspaceAs(
(String) _profileNameCmb.getSelectedItem(),
this)) {
onClose();
}

Similar Messages

  • How to know the list of reports that are in usage

    Hello,
    How to know the list of reports that are in use from the last 3 months by the users on Bw server.How basis team will help me in this regard?
    Regards,
    Anand.

    Hi,
    Pl look at following tables if you need any further detailed information
    Table Name  Use of the table 
    RSZELTDIR
    Directory of the reporting component elements
    RSZELTTXT  Texts of reporting component elements 
    RSZELTXREF  Directory of query element references .
    To get a list of query elements built on that cube.filter by: OBJVERS = 'A', INFOCUBE= [stage:cubename] 
    RSRREPDIR
    Directory of all reports (Query GENUNIID) .
    To get all queries of a cube.filter by: OBJVERS = 'A', INFOCUBE= [stage:cubename] 
    RSZCOMPDIR  Directory of reporting components.
    To get query change status (version, last changed by, owner) of a cube. 
    RSZRANGE  Selection specification for an element 
    RSZSELECT
    Selection properties of an element
    RSZCOMPIC
    Assignment reuseable component <-> InfoCube 
    RSZELTPRIO  Priorities with element collisions
    RSZELTPROP  Element properties (settings)
    RSZELTATTR  Attribute selection per dimension element 
    RSZCALC  Definition of a formula element 
    RSZCEL   Query Designer: Directory of Cells 
    RSZGLOBV
    Global Variables in Reporting 
    RSZCHANGES  Change history of reporting components
    Thanks and regards

  • How to know the List of Tables that are updated through a ABAP Program

    Hi,
    Is there a program or something that will help me to identify the List of Tables that are used in a ABAP program(ABAP Report, Transaction .... program) without debugging it or looking at the dictionary structure.
    I really need this urgently. Try to give me many methods as possible.
    Thkx
    Kishan

    Hi,
    I created a Z-transaction for my SE49 and debugged a little bit - it's not so fantastic any longer - just like the proposal of SE80 - DDIC list.
    SE49 (and I guess similiar functions, too) just scan the source code for a list of key words: tables, select, update, insert, modify, export, import.
    But very (very!) often updates are encapsulated into function modules - and here this technical cross reference (just like SE80 DDIC list) is of no help.
    So a SQL trace (or runtime analysis) is still the best option to get a complete list. Still these tools just analysis one process - if in other circumstances more tables are involved, can't be judged.
    E.g.:
    - creating one new entry: 1 table
    - changing existing entry: 2 accesses to 1 table + log table
    Regards,
    Christian

  • How do you compile "type body" objects that are invalid?

    We just completed a few application upgrades and now the objects catindexmethods and textindexmethods are invalid. These are part of our intermedia install but haven't started using it yet. How to I recompile these objects to be valid again?

    Did a little deeper and you shall find it:
    alter type xxx compile body;

  • How to get the list of object that are going to modify during the upgrade?

    We are upgrading sap 4.OB to ECC 6, is there any place we will get the list of standard object which are going to modify in service market place? Please let me know the link to get those details.
    Thanks

    Usually you get this list when upgrading first system (sandbox type) via SPDD and SPAU. (useful for objects modified in your system - SNOTE or mofications) - The whole list of modified objects will be huge,  many (most) objects were modified (created, even deleted) those last 13 years.
    There are also tools that may help you like [panaya|http://www.panayainc.com/] (but i'm not sure for a 4.0B, it worked fine for a 46c) - look for tools/vendor at [Partner Information Center: Search|http://www.sap.com/partners/directories/SearchSolution.epx]
    Regards,
    Raymond

  • How to check the files ...that are present in an oracle directory

    hi all
    is there any data dictionary view or table that will list all the files that exist a oracle directory?
    regards
    raj
    we can see all the directories using dba_directories i would like to see what all files it contains
    regards
    raj

    hi justin
    this is me who posted here ..but here i was asking about... the directory that we create in oracle.....
    about dba_directories.....
    in the other post in pl/sql forum i was asking about the directory that exist on the ftp server....... and using unix from with in plsql to loop through the list of all the files
    regards
    raj

  • How to limit the number of emails that are shown for each account

    Hi, I'm going from iOS 6.1 to my new 5s iOS 7 and I wanted to know if there was a way to limit the number of emails shown for each of my accounts? In iOS 6 there is a setting "show" where you can choose how many you would like to be loaded at a time from 50-1,000 , is there a setting similar to this and I am just not seeing it? Please help me asap. I have only logged in 3 of my 12 email accounts and already have over 13k emails loaded...

    You can't limit it to the last 50 messages, but you can limit it to the last 1000 messages in each "folder" (label).
    Go to the Gmail website and click on the gear icon to the top-right side.
    Click on Settings.
    Click on the "Forwarding and IMAP/POP" tab across the top of the Settings area.
    Towards the bottom of the IMAP section, change the "Folder Size Limit" setting to "Limit IMAP folders to contain no more than this many messages". By default 1000 is selected, though you can also choose 2000, 5000, or 10000.
    Click Save Changes at the bottom.

  • I am trying to use the locate my macbook that was stolen. How do I know if it is set up on the service. It shows on the list but just says it is offline and doesn't say when or where it last was. I am trying to either locate it or erase it. HELP

    I am trying to use the locate my macbook that was stolen. How do I know if it is set up on the service. It shows on the list but just says it is offline and doesn't say when or where it last was. I am trying to either locate it or erase it. HELP

    Since you can see it in your device list it must have Find My Mac activated, but you're going to have to wait for them to take it online in order to either locate, lock or wipe it. Until it goes online you can't do anything. http://www.apple.com/support/icloud/find-my-device/
    iCloud: Locate your device

  • How to make the location of an iPhone that was stolen?

    how to make the location of an iPhone that was stolen?

    If you installed the app Allan is referring to, go to www.me.com on your computer.
    Reporting a lost or stolen Apple product

  • How to go to the location of file that I received ...

    How to go to the location of file that I received on skype? I was able to do it easily in old version. 
    Now, I recieved the zip file. If I click on the file, it shows the Zip File View. I don't know where that file is downloaded. (of cuz, need to dip where I set the download path.) In old version of Skype, there is a link where we can open the file in windows explorere.
    I would suggest that the Skype UX or development team needs to read "Don't make me think" short book. 
    Update: There are other people who reported the issues in 2013 http://community.skype.com/t5/Modern-Windows-from-​Windows/Where-are-the-files-saved-that-someone-sen​... Please don't copy all metro skype UI to skype desktop without thinking about usability and royal user expereince. Thanks! 
    Note: Another thing: THis forum seems like it let me post without me logging in. But when I submit the context, it redirects to login page. So, I chose to login with my account and it redirect back me to this forum and the post that I wrote a few min ago was totally gone.. Seriously? 
    Solved!
    Go to Solution.
    Attachments:
    Fuck New UI.png ‏9 KB

    What about this?
    Attachments:
    ShowInFolder.jpg ‏28 KB

  • How do you fill in a form that was saved as a template? When I try, the "template" shifts, which is not how a template should work!

    How do you fill in a form that was saved as a template? When I try, the "template" shifts, which is not how a template should work!
    Templates, as I understand them, are fixed; you can "fill them in" without shifting them. Yet, I've saved doc as a template AND it shifts. Argh!

    Thanks for your response.
    I've managed to fix it but I wouldn't recommend the following as I'm sure its unsupported and I'll probably have problems down the line
    On the host
    * mv /etc/zones /etc/zones.bak
    * reboot single user
    * apply kernel patch (the one that ultimately I had to get on and which was giving pre-req dependency errors when running zones)
    * create a new zone now that host system is all up to date
    * Copy the operating system directories of the new zone (the one that's all patched) over the troublesome zone (the one that can't take the patch). Take backups first
    * cd /zones/new-zone/root
    * find sbin -print | cpio -pudm /zones/bad-zone/root
    * find usr -print | cpio -pudm /zones/bad-zone/root
    * find lib -print | cpio -pudm /zones/bad-zone/root
    * cd /zones/new-zone/root/var
    * find sadm -print | cpio -pudm /zones/bad-zone/root/sadm (this copies patches and pkgs directories and I'm sure a lot of other stuff that I didn't want)
    * mv /etc/zones.bak /etc/zones
    * reboot host
    * boot the old zone up. It should now have up to date patches
    I'm sure there are real no-no's in taking this approach but it seems to have worked for me. I'll update if I find there are some horrors down the line
    Edited by: paul_xedos on Mar 25, 2010 4:07 AM

  • MY IPHONE HAS BEEN STOLEN, LAST MARCH 10 AND NOW A TELESERVICE TEXTED ME THAT IT HAS BEEN LOCATED AND THEY GAVE ME A LINK TO APPLE SUPPORT SERVICE BUT I CAN'T ENTER THE SITE. PLEASE HELP ME KNOW HOW TO FIND THE LOCATION OF MY LOST PHONE

    HOW TO KNOW THE LOCATION OF MY LOST PHONE IT HAS BEEN FOUND ALREADY BUT I DON'T KNOW WHERE TO GO

    Please stop typing in caps. It is difficult to read and rude, Caps are considered shouting on the web.
    Odds are that is a scam.
    Post more details, such as phone number and we'll confirm if it is a scam or not.

  • How to stop the spinning ball/pizza that is stalling repairs to project on imovie 09? on macosx10.5.8 using iomega and superspeed ext h.d. as storage for the events and projects archive of a wedding video that has had audio sync problems on all share form

    How to stop the spinning ball/pizza that is stalling repairs to project on imovie 09? on macosx10.5.8 using iomega and superspeed ext h.d. as storage for the events and projects archive of a wedding video that has had audio sync problems on all share formats (iDVD, mp4, and last of all iTunes). The project label now carries signal with yellow triangled exclamation “i tunes out of date”.
    To solve the sync problem I’m following advice and detaching sound from all of the 100 or so short clips.  This operation has been stalled by the spinning ball. Shut down restart has not helped.
    The Project is mounted from Iomega and superspeed ext hd connected to imovie09 on macosx 10.5.8.
    What to do to resume repairs to the audio sync problem and so successfully share for youtube upload?

    How to stop the spinning ball/pizza that is stalling repairs to project on imovie 09? on macosx10.5.8 using iomega and superspeed ext h.d. as storage for the events and projects archive of a wedding video that has had audio sync problems on all share formats (iDVD, mp4, and last of all iTunes). The project label now carries signal with yellow triangled exclamation “i tunes out of date”.
    To solve the sync problem I’m following advice and detaching sound from all of the 100 or so short clips.  This operation has been stalled by the spinning ball. Shut down restart has not helped.
    The Project is mounted from Iomega and superspeed ext hd connected to imovie09 on macosx 10.5.8.
    What to do to resume repairs to the audio sync problem and so successfully share for youtube upload?

  • How to clear the location history in reminder?

    heyy guys. serious talk here. please please and please help me to figure this out. how to clear the location that had i been used in reminder? i've search from day to day. but there aren't answer yet. grr

    delete single message or delete entire thread?
    Single message: open messages, then open the thread, then press and hold on the message that you want to delete.
    Entire thread: Open messages, then press and hold on the thread you want to delete.
    When you go through text message and you click on button to bring up Roller Top Chain contacts, there is couple choices (groups, contacts, favorites & logs) you can choose. Under logs, how to you delete the information in logs section????? It appears to only go back a few days, but can't find option to erase logs. If you check box it just adds that person to your send to Sushi Chains. I also tried deleting history for phone calls, but its still there. Any help would be great!!!

  • How to use the location reminder

    When I first accessed the new reminders app I clicked 'do not use my location'. However, I want to use the location reminder, but I can not find it in my settings to change my preferences. Anyone know how to turn the location on? Does it even work on 3GS?

    This worked for me as well.  Thanks!
    shafir,
    I had the same problem. By trial and error I turned off the reminders coming from my work-place microsoft exchange server account in "Mail, Contacts, Calendars". Left mail, and calendar, contacts etc on but turned off reminders. The only reminders in "Mail, Contacts, Calendars" that I left on is in iCloud.
    The reminder app then appeared in the "location services" list and can be turned on.

Maybe you are looking for

  • How do I sync "On My iPod touch" notes with and IMAP account?

    I wrote a number of notes in the Notes app before I configured it to sync with an IMAP account. I have added an IMAP acct. to the device and configured that acct. to sync notes. Notes now has an accounts section, and that section lists "On My iPod to

  • Import Declaration after goods receipt - Inward Processing Help

    Looking for some advice on setting up Inward Processing as I am running into issues.  Our system makeup is this: ECC - 617 GTS - 10.1 One of our facilities is setup so that they have duty deferment for imported components that are used in manufacturi

  • I am in sql plus how do I find out what database I am in?

    I am in sql plus how do I find out what database I am in? is there a sql command for that...

  • Sample XML/XCBL for marketsite

    Hello! Can anyone copy and paste a sample Orders XML/XCBL that is sent from XI (Marketplace) adapter and successfully processed in the destination? Currently, the output sent by XI does not seem to want to get successfully processed in the marketsite

  • Problem loading instruments

    I installed Logic Pro 8 and everything seems to be working ok except for that I cannot seem to load certain software instruments, particularly most of the organs. I have 10 GB of RAM so I don't think the problem is insufficient memory. Any ideas what