Hi Nick,

Try below and see whether it works

public function set iFormID ( value : String ) : void
{
    if ( _iFormID == value )
        return;

    _iFormID = value;


    if(value.length > 0)
    {
        this.title = "Create Vendor";
    }
    else
    {
        this.title = "Create Vendor by iForm";
    }

}

Thanks
Srinivas

On Tue, Apr 20, 2010 at 3:07 PM, Nick Middleweek <[email protected]>wrote:

>
>
> Hi,
>
> I've got a small MXML Component based on TitleWindow which I'm opening with
> PopupManager that has a setter and getter called iFormID.
>
> In the setter I have this code...
>
> public function set iFormID ( value : String ) : void
> {
>     if ( _iFormID == value )
>         return;
>
>     _iFormID = value;
>
>
>     if(iFormID.length > 0)
>     {
>         this.title = "Create Vendor";
>     }
>     else
>     {
>         this.title = "Create Vendor by iForm";
>     }
>
> }
>
>
> I am find that the title remains blank, but then if I close the PopUp and
> open it again, the last value the .title should have been is now visible...
>
> Is there some a refresh issue with TitleWindow.title?
>
> If I set the .title outside of the component, after I've used PopupManager,
> then it's set as expected but I want to control the .title from the setter
> function.
>
>
> Does anyone have an idea what I should be doing?
>
> I've also tried setting a dirty_flag, calling invalidateProperties() and
> setting the .title from within commitProperties() but no joy there either...
>
>
> Thanks for any help...
> Nick
>
>  
>

Reply via email to