Replacing one control field by another

Hello Everybody,
Is it possible to replace existing control by any other control in the same view? I am using removeFromSuperview method to hide some lable and fields when I click on another tab but I am not able to create any other on that location. Is there something wrong in my approach? or is there any other way?
Any suggestions are highly appreciated...
Thanks,
Pandit Pakhurde

First of all, I had taken one TabviewController. In one of the tab of that TabViewController , I placed one tableView. After clicking on a one row of tableView , One view will be open. This view created by me like below code.
<code>
self.window = [[[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]] autorelease];
_frontView = [[UIView alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
[_frontView setBackgroundColor:[UIColor lightGrayColor]];
</code>
and in this _frontView I have one button and text field. then I am adding this _frontView into self.Window.
Next again I had created one another view and added it into self.Window. Now I am seeing the second view in my window.
Now in the second view ,I have added segmentedcontrol with two objects i.e. UserInfo and Friends.
When I will click on UserInfo then I should get userInformation that I am getting already and when I will click on Friends then I should get friends list but at the same time Userinformation should get hided. I am getting friends list but userInformation is not hided properly.
First I had user "removeFromSuperView" api to remove that fields and it works fine when I click on Friends but when I again click on the UserInfo then friends information is not hided eventhough I am hided them using "removeFromSuperView" method.
Can you please help how to get out of it?
I am working on this but not getting any solution.
Thanks,
Pandit Pakhurde

Similar Messages

  • Replace one itunes account with another

    I have the itunes application downloaded on my laptop but i recently made another itunes account and i want the new one to be on the Itunes application. So i uninstalled the application thinking that if i downloaded it again it would ask me for an account. Except all it did was restore the old account. I am wondering if anyone knows how to replace one itunes account with another. If you know anything that can be useful comment.

    Store > Sign Out
    Store > Sign In
    All purchases remain tied to the account used to buy them, but you can authorize iTunes to multiple accounts and put protected content from up to five on your devices. Generally best to stick to one account if possible. More so once you get to iOS devices as managing app updates over multiple devices is a chore.
    tt2

  • Copy a group of cost centers from one controlling area to another

    Hello,
    is it possible to copy a group of cost centers from one controlling area to another?
    Or a group of internal orders?
    Thanks
    Jasmina

    No. If you used any upload tools like LSMW, perhaps you may use that for uploading the second controlling area.

  • Can Acrobat be made to verify one form field against another?

    Here is an interesting problem, and I'm wondering if Acrobat has the functionality to solve it.
    The sales department is holding up application processing time.  They either forget to fill in blocks of information, or they misspell the buyer's name (Billy on page 1 and William on page 4). 
    Can Acrobat be programmed to verify one form field against another in order to eliminate these errors?
    Thank you.

    I had considered this as well.
    That solution would work in an ideal situation.  In this situation, however, it would probably not be a final workable solution.  Consider the case above.  This organization needs the full legal name on the application.  However, in the first field our friendly sales department enters Billy (instead of William).  If the "duplicate field" solution was embraced, Billy would automatically be embedded and a denial instantly triggered.
    If one form field can be verified against another, then can I assume various formulas could be generated from that?
    If field A then (B and C and D)
    If not field E (then no B and no C)
    Is this also correct?

  • Replace one preset effect with another

    Is it possible to replace one preset effect with another withouth having to undo a prior preset effect? 
    When I used Aperture, holding down the Option key would allow me to replace one preset with another.

    Store > Sign Out
    Store > Sign In
    All purchases remain tied to the account used to buy them, but you can authorize iTunes to multiple accounts and put protected content from up to five on your devices. Generally best to stick to one account if possible. More so once you get to iOS devices as managing app updates over multiple devices is a chore.
    tt2

  • Using Like to compara one db field to another

    I'm having trouble with the syntax for comparing one database
    field to another using the like statement. I've found plenty of
    examples using db field to variable or string, but can't find any
    with db field to db field.
    For example
    Where dbField1 Like %dbField2%
    What would be the proper syntax for this?
    Thanks,

    I successfully tried the following:
    ORACLE: WHERE column1 LIKE '%'||column2||'%'
    SQL Server: WHERE column1 LIKE '%'+column2+'%'
    Don't forget, the % characters go on the column with the
    "short" string. For example, if column1 contains the string 'this
    is a test' and column2 contains 'is', this row would be returned
    when the %'s are on column 2 as in the examples.
    Phil

  • Replacing one NIDAQPad-6016 by another

    When replacing one NIDAQPad-6016 by another one it is not possible to take over the once installed DAQmx-Tasks. Why?

    That's expected and normal behavior. As long as you don't remove the first DAQPad from MAX another DAQPad will be recognized as a different device and the driver assigns a new device ID (Dev2). You need to go to MAX and change the name if needed or you need to make your software try various device IDs until no error occurrs anymore.
    Best regards,
    Jochen Klier
    National Instruments Germany

  • I had two files named graphics and I replaced one graphics file with another which was the wrong one.  Can I undo my replacement?  I move the wrong one, which was on my desktop into another one and that is when it as me if I wanted to replace the file.

    I accidently replaced a file with another.  Can I undo my action? 
    I had two files named graphics.  One was on my desktop and another was within another file called solitarie.  I move the one on my desktop (wrong file) into the solitarie file and was asked if I wanted to replace the graphics file in the solitarie folder (the correct one).  I said yes accidently and then remembered that I had made a mistake.  If I use undo, it only move the wrong file back to the desktop.  Is there an undo of replace?

    Sorry, but's that's why you get the warning. "Replace" means just that - the new file over-writes the old one. There is no undo.

  • Reposting cost from one value field to another value field in CO-PA

    Good day,
    Some of our FI postings to CO-PA were assigned to the wrong value field (in the PA transfer structure, the cost elements were in the wrong group and thus were recorded at the wrong value field).
    The number of documents invilved is huge - so we cannot reverse, change the configuration and post again.
    Is there a way to repost the costs from one VF to another like we can do with other cost objects?
    Thanks,
    Yoel.

    Hi,
    Please to the below thread on this aspect:
    Value Field adjustment program
    Regards,
    Kiron Kumar T.

  • Replace one swf movie with another

    I have a flash movie on my web page and I have made some of
    the text inside the movie into buttons. The movie only takes up a
    portion of the page. I would like to replace the movie with another
    movie when somebody clicks the button.
    I'm sorry if this is a really basic question but I have spent
    ages trying to find out how to do it and I keep getting an error
    when I try to search this forum.
    Thanks for your help.

    Thanks for your help so far. I seem to be having more and
    more trouble though!
    I have a swf file (sunnyserv.swf) that contains a pre-loader
    and then opens another swf file (downturn.swf). The downturn.swf
    contains the buttons that I want to listen to, and swap out the
    movies.
    If I open sunnyserv.fla in flash and test the movie, it loads
    downturn.swf, listens to the mouse click and runs the
    communication.swf movie (although it doesn't clear all of the
    children from downturn.swf).
    However, if I export all three movies and open my web page
    nothing happens! If I change the xhtml to load downturn.swf that
    works ok. Any idea why it would work in test movie but not when
    loaded into an xhtml page?
    Also, can you see a reason why all of the children are not
    being removed in the commClickHandler function?
    Code below:
    sunnyserv.swf (container)
    var l:Loader = new Loader();
    l.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS,
    loop);
    l.contentLoaderInfo.addEventListener(Event.COMPLETE, done);
    l.load(new URLRequest("downturn.swf"));
    function loop(e:ProgressEvent):void
    var perc:Number = e.bytesLoaded / e.bytesTotal;
    percent.text = Math.ceil(perc*100).toString();
    function done(e:Event):void
    addChild(l);
    removeChildAt(0);
    percent = null;
    downturn.swf
    import flash.events.MouseEvent;
    import flash.events.EventDispatcher;
    import flash.display.MovieClip;
    var l:Loader = new Loader();
    // add listeners for each button
    btn_communication.addEventListener(MouseEvent.CLICK,
    commClickHandler);
    function commClickHandler(event:MouseEvent):void {
    for(var i:int = 0; i < numChildren; i++){
    removeChildAt(i);
    l.load(new URLRequest("communication.swf"));
    addChild(l);
    stop();
    Hope somebody can help!

  • Data from one text field to another text field on the next page

    Hi all,
    Hi I have a form, which has data coming in from the data binding, the thing is the data is mapped to a certain text field and if that text field is filled up it should be continued on to the other text field which is on the immediate page following it. the reason for using text field instead of  Subform and make it expandable is  the client does not want to change the position and structure of other fields following that field, they are o.k with the amount overflowed in to the next text field .
    is there any script for the same condition in Java script or form calc.
    Thanks in advance.
    de1209

    This is not as simple as it sounds. You will not be able to split the field up during the time of binding. The entire string must go into the field and only after it has completed the biinding can we change it around. A colleage of mine did this for an interactive field and it involved some pretty complicated code. Here is a link to her blog entry that describes what she did:
    http://blogs.adobe.com/lcdesigner/2008/07/an_example_of_splitting_text_a.html
    But that is only part of the problem.....once you split the information across two fields you will need to recombine it back into a single field so that the data that is submitted can represent it correctly again. So you will have to reverse the process in a presubmission step.
    Make sense?
    paul

  • How to replace one BC template with another

    I am using an existing BC template and want to change to a new template (same domain) - any thoughts on how to achieve this?
    Thanks.

    Change a BC template to another? You can not at this stage on that same site, you would have to create a new site yourself or update everything manually

  • How do I replace one video file with another

    Hey all
    I'm new to Imovie, so please bare over with me.
    I made a long movie using a MOD format file from my JVC home camera
    When I where to convert or burn the movie in Imovie it made an error.
    After much trouble I found out that it was the MOD format that was the problem
    So I bought an expensive piece of software that converted the MOD file to MOV:
    And with a new test project it now works flawless...
    Anyways back to the original project and the problem:
    - I have now converted the original MOD file to MOV
    - I have the original Imovie project with the MOD file.
    How do I replace the mod file in the imovie project with the new mov file, while keeping, that is transfering all my work on the mod file over to the new mov file?
    Thnx
    Kris

    • In the Layers Panel draw the Layer’s Vector Mask icon onto the trashcan-icon
    • move that Layer above the new Text Layer
    • invoke Create Clipping Mask (command-alt-G) from Layers Panel’s fly-out menu or alt-click on the line separating the two Layers’ icons

  • How do I replace one vector mask with another?

    I have a template for a web site that I'm trying to figure out as I learn CS5.  The template has a vector mask created out of some writing that was converted into an object/vector mask.  I would like to replace with a layer I created that has different writing in it.  How would I replace the vector mask in the template with the new object I created?
    Thanks for any help you can give.
    Best -- Catherine

    • In the Layers Panel draw the Layer’s Vector Mask icon onto the trashcan-icon
    • move that Layer above the new Text Layer
    • invoke Create Clipping Mask (command-alt-G) from Layers Panel’s fly-out menu or alt-click on the line separating the two Layers’ icons

  • Transferring data from one custom field to another

    Dear SAP gurus,
    I have requirement that we create custom field in Shopping Cart and PO, and when creating PO referring to the Shopping Cart the content of the custom field in SC need to be defaulted automatically in PO. For example I create SC 'A' and inputting 'X' in custom field in SC. When creating PO from SC, in the screen, the custom field in PO should be automatically populated by 'X'.
    Is there any way to accomodate this in SRM?
    Best regards,
    John

    Hello John,
    Did you give different field name for the custom field in SC and PO structure.
    If the field names are same then only it will automatically populate the value.
    Sc custom value is getting saved in Data base table check once.
    Regards,
    Neelima

Maybe you are looking for

  • DATE functions - Weekly report

    Please take a look at this loop that sort of plays with dates. The values returned are as follows lv_wreport_end_date = 04-APR-04 lv_wreport_start_date = 03-APR-04 I was expecting to get the first week of April ie, 01APR04 to 04Apr04. IF (To_Char(lv_

  • OEM Plug-In UI component

    Hi all, I have a question on the front-end of a Plug-In (12c). As I understand it, after developing a plug-in with some metrics and deploying it (i.e. the 'backend' built), and it will become visible in the OEM in a 'default' UI format. If we then wo

  • Sql forms in oracle 9i

    Hi All, How to install and invoke forms in oracle 9i. we are using oracle 9.0.1 on sun solaris 8. thanks a lot, Best Regards, ShravanaKumar.

  • ( Additional ) Bad Quality : Photos Imported from iPhoto6 to iMovie 6

    Although imovie 6 is caught up with a sum of disadvantages of imovie 5, I observe a new disadvantage which did not exist before. With knowknowing: In the "multi-media" mitre + "photographs", when I import a photograph from iphoto, I observe that the

  • Validation failed when logging in to iTunes U lecture

    A student is having problems logging in to iTunes U lectures. He said he gets a validation failed message. Any suggestions? Thank you.