Controlling Visibility of Components
Hi,
I am newcomer in Adobe Flex UI technology.
Here is what I want to implement in my Flash Island (to be used in SAP Web Dynpro).
1. There will be a public boolean type of attribute 'isVisible'. This attribute will get true/false value from SAP Web Dynpro.
2. Now if this value is true, I have to show a VBox
3. And if its false, I have to show a text 'You are not authorized to view this page' at the place of that VBox.
Can you please help me in understanding how to achieve this?
Thanks and regards,
Amey
Hi Nuwan,
Thank you for valuable replies.
Yes you are correct. I tried using visible property of VBox and Label to control visibility.
But its not showing message in same area as that of VBox. Its occupying additional space which is hampering layout.
Can you please help?
In below code, I want to hide two VBoxes and show a text message in case 'isPilotUser' property is false.
<mx:HDividedBox label="PROFILE" width="100%" height="100%" liveDragging="true" horizontalGap="4" horizontalScrollPolicy="off" >
<mx:VBox width="130" height="100%" styleName="LabelsVBox" id="boxAOLabels">
<mx:Label text="Status" id="lblStatus" height="{txtMyStatus.height}"/>
<mx:Label text="About me" id="lblAboutMe" height="{txtAboutMe.height}"/>
<mx:Label text="Interests" id="lblInterests" height="{txtInterests.height}"/>
<mx:Label text="Ask me about" id="lblAskMeAbout" height="{txtAskMeAbout.height}"/>
<mx:Label text="Current Projects" id="lblCurrentProjects" height="{txtCurrentProjects.height}"/>
<mx:Label text="External Profile URLs" id="lblExtProf" height="{txtExtProf.height}"/>
<mx:Label text="My Skills" id="lblMySkills" height="{txtMySkills.height}"/>
</mx:VBox>
<mx:VBox width="108" height="100%" styleName="ValuesVBox" id="boxAOValues">
<mx:Text text="{MyStatus}" id="txtMyStatus" />
<mx:TextArea text="{AboutMe}" id="txtAboutMe" width="90%" editable="false"/>
<mx:Text text="{MyInterests}" id="txtInterests" />
<mx:Text text="{AskMeAbout}" id="txtAskMeAbout" />
<mx:Text text="{CurrentProjects}" id="txtCurrentProjects" />
<mx:Text text="{ExternalProfileURLs}" id="txtExtProf" />
<mx:Text text="{MySkills}" id="txtMySkills" />
</mx:VBox>
</mx:HDividedBox>
Similar Messages
-
I am trying to control visibility in Repeater but it always shown
Hi,
I am trying to control visibility in Repeater but it always
shown
<mx:Repeater id="r" dataProvider="{myXC}">
<mx:RadioButton id="Radio"
label="{r.currentItem.dayofweek}"
visible="{r.currentItem.notsure}"
width="150"/>
</mx:Repeater>
<day>
<dayofweek>Sunday</dayofweek>
<notsure>false</notsure>
</day>"mordsm" <[email protected]> wrote in
message
news:gkc5le$2b2$[email protected]..
> Hi,
>
> I am trying to control visibility in Repeater but it
always shown
>
> <mx:Repeater id="r" dataProvider="{myXC}">
> <mx:RadioButton id="Radio"
label="{r.currentItem.dayofweek}"
> visible="{r.currentItem.notsure}"
> width="150"/>
> </mx:Repeater>
The value of notsure in your example is a string. Try
visible = "{r.currentItem.notsure='true'?true:false}"
includeInLayout =
"{r.currentItem.notsure='true'?true:false}" -
Hmm... can't make control visible
Okay, here's a fun one for you all...
How do you make invisible controls visible again? Seems easy, but
1) I deleted the attribute node, and
2) The control is in a cluster, so there is no control to click on in
the Diagram Screen.
3) Undo's buffer has been overrun by other things I've done.
It's easy to create the situation if anyone wants to know how:
Create a cluster on the front panel and stick an element into it (say, a
boolean). Create an attribute node on the element, and wire a False to
it (Visible). Run. Delete the Attribute node.
Now, how do you get that element visible again?
Rick
[email protected]
Chesapeake Sciences Corp.
1127B Benfield Blvd Millersville, MD 21108
Tel: (410) 923-1300 x3
430 Fax: (410) 923-2669Sorry, you are outta luck! NI has warned against those type of mistakes,
in much of their literature and in the info groups. There is nothing you
can do to bring it back. Delete the cluster and start over.
Good luck.
Attachments:
dobis.vcf 1 KB -
I am trying to click on a Hyperlink in div tag , but I keep getting this error message:
Another control is blocking the control. Please make the blocked control visible and retry the action.
What could it be? Nothing is blocking it at all.Check your html to see whether any controls are inadvertantly floating over the top of your hyperlink.
I would also use firebug (F12 in ie or chrome) to highlight the boundaries of each control on your page so you can track it down easily.
If using chrome you can right click on the page and select Inspect element.
This should help you find the cause of the issue:) -
How to deploy user controls containing licensed components?
I have a custom control incorporating licensed components from NationalInstruments.UI.WindowsForms.
I want to take the custom control to a computer that does not have Measurement Studio installed, add it to the toolbox, and drop the control onto a form.
I am using Measurement Studio 2013, Visual Studio 2010, and targeting the x86 CPU, and using the .NET 3.5 framework.
The ability seems to work only when Measurement Studio is also installed and licensed on the other machine.
The following descries what happens.
Reproduction
On a computer with Measurement Studio 2013 Standard installed:
Start Visual Studio 2010
Create a new Class Library
Create a new User Control
Add a waveFormGraph and Legend in the designer
Compile the project
Deploy the library according to the help topic "Measurement Studio .NET XCOPY Deployment Files"
On another computer without Measurement Studio:
Get the deployed library
Start Visual Studio 2010
Create a new Windows Forms Application
Open the Form in design mode
Add the deployed User Control to the toolbox items
Drag a new User Control into the form
I see the following message popping up:
The control is not actually added as a consequence.
Am I missing some licensing detail or making a mistake during deployment/redistribution?
I have seen a previous post on this here in this forum , however, it is over a year old now and there was no solution posted.
Some guidance or clarification would be greatly appreciated.
Thank you
-SteveHello GGS-AKR
I have been able to reproduce the issue in my end by only de-activating the license in the License Manager. What happens is that if you are going to use a Measurement Studio in a "design time" context, it will ask you for a license. According to NATIONAL INSTRUMENTS SOFTWARE LICENSE AGREEMENT, it states:
E. "Authorized Applications." Means ( i) those applications that you create with development versions of the
SOFTWARE that you have validly licensed (including such applications that you create with third party
software using real-time operating system components of the LabVIEW Real-Time Module and the
LabWindows/CVI Real-Time Module in accordance with the licenses for such modules), and (ii) those
applications that you create with third party software development environments and that utilize Driver
Interface Software, if such software development environment is supported by such Driver Interface
Software as indicated in the applicable Documentation for such Driver Interface Software. Notwithstanding
the foregoing, (a) any application created with the Measurement Studio SOFTWARE is not an Authorized
Application if it uses any Measurement Studio controls in a "design time" context, and (b) any application
created with any SOFTWARE acquired under an evaluation license is not an Authorized Application.
I hope this information helps you.
Regards,
Carmen Chan | Applications Engineering | National Instruments| -
Controlling visibility of Web Dynpro Java iView in portal WDJ page
I should be able to use the WDPortalUtils interface in my Web Dynpro Java DC application to get the name of the iView in my Portal WDJ page using IWDPageService method getVisibleIViews(). My intent is to add another iView to this page and programmatically control the visibility of each iView from my WDJ application.
-> Instructions I have found through my online research indicate I should not have to specify a sharing reference because I am using the WDJ framework, but I tried it anyway. It didn't work.
-> I have added DC epbc.prtapi._api public part to my used DC's, and specified dependency at both Build time and Run time.
-> My portal page template is of type Web Dynpro Proxy Page.
-> My iView template is of type Web Dynpro Proxy iView.
-> The Page Content view of my page shows the 'visible' checkbox set for my iView.
The following statements in the wdDoInit() method of my DC's view controller should return the portal name of my iView:
IWDPageService pageService = (IWDPageService) WDPortalUtils.getService(WDPortalServiceType.PAGE_SERVICE);
String[] iViews = pageService.getVisibleIViews();
I get no compile time errors or runtime errors when I execute these statements.
BUT...
Instead of a String array, I get back a memory space pointer.
Example: [Ljava.lang.String;@664e664e
What am I missing?Hi Jennifer,
That's what this forum is all about; finding solutions to hard-to-solve issues, which might also help someone who may face the same issue in the future. So I hope my input is valuable
The last thing I can think of is the method is been called before the portal page has been rendered completely, which may lead to the faulty results.
Is it possible to move the getVisibleIviews() to a method which is called later in the phase (for instance, at the bottom of wdDoModify or wdDoPostProcessing) or, even better, in an onAction event handler when a button is clicked?
If this doesn't work I'm afraid I'm running out of options and i would file an OSS message with SAP
Hope this helps!
Robin -
Controlling visibility of links in a promoted links list
I have a few links in a Promoted List app that appear as live tiles on the page. Is there a way to control the visibility of these links/tiles based on the username of the logged in user?
Any instructions/directions on how to go about this will be appreciated.
ThanksAre you referring to the promoted sites that are set up in the user profile service? If so, there are no permissions involved. You need to create audiences in the user profile service, and target each promoted site to a specific audience of
people.
Laura Rogers
Rackspace: SharePoint Consulting
Blog: http://www.wonderlaura.com
Twitter: WonderLaura
Books:Beginning SharePoint 2010: Building Business Solutions with SharePoint
Using InfoPath 2010 with Microsoft SharePoint 2010 Step by Step -
Controlling visibility of ALV columns at runtime
Hi
I have an ALV column which is of type DropdownByKey. I can control the visibility of the dropdown by setting it based on another context node attribute (for e.g., 'CAT_VALUE_I_VISIBLE') which I modify at runtime. But then I want to hide the column itself based on the other context node attribute which I am not able to. Is it possible ?
I have something like this to hide the dropdown
lo_drdn_by_key->set_visible_fieldname( 'CAT_VALUE_I_VISIBLE' ).
But on the column level there is only a method like :
DATA lo_column type ref to cl_salv_wd_column.
lo_column-r_column->set_visible( cl_wd_uielement=>e_visible-none ).
Is there a possibility to control the visibility of an ALV column at runtime ?
Thanks and regards
SukanyaHi,
Depending upon another context attribute condition get th ecolumn ref of the alv field which you want to hide and set the visibility property to none.
data : lt_columns type SALV_WD_T_COLUMN_REF.
Get the column ref
CALL METHOD lo_value->if_salv_wd_column_settings~get_columns
RECEIVING
value = lt_columns.
CALL METHOD lr_column->set_visible
EXPORTING
value = cl_wd_uielement=>e_visible-none.
Thanks,
Shailaja Ainala. -
Controlling visibility of a tab
Hi All,
I have a requirement to control the visibility of a tab.In the BP tcode,sales area data we have a tab 'organization'.This organization tab should be visible by only by some specific users.How can we achieve this?can anybody pls explain..
Thanks,
SaiAre you referring to the promoted sites that are set up in the user profile service? If so, there are no permissions involved. You need to create audiences in the user profile service, and target each promoted site to a specific audience of
people.
Laura Rogers
Rackspace: SharePoint Consulting
Blog: http://www.wonderlaura.com
Twitter: WonderLaura
Books:Beginning SharePoint 2010: Building Business Solutions with SharePoint
Using InfoPath 2010 with Microsoft SharePoint 2010 Step by Step -
I am using a panel on the web form to hold some more hidden panels onto it.
But when I am making those hidden panel visible panel size remains same and footer goes down and page looks ugly then.
How to maintain size of panel as well as footer w.r.t. it?
Please reply asap, its urgent!!
Thanks! :)
KGProgrammerSplit your unvisible DIV (for example) to 2 parts, one visible and one unvisible.
In the visible part put onlu a space, and make it the height of the unvisible part.
That way, the page will look the same with the uv=nvisivle part and without it.
Noam B.
Do not Forget to Vote as Answer/Helpful, please. It encourages us to help you... -
phone is locked up. turned off and tried tried reset several times, phone displays larger font date/time screen but no slide to unlock control is visible
Try placing the iPod in ecovery mode and then restoring the iPod via iTunes. For recovery mode see:
iPhone and iPod touch: Unable to update or restore
Next would beto wait for the battery to fully drain and the charge and try again. -
Controlling Visibility and Security: SecurityProfile Evaluators
We have a custom button called PrintViewButton located at the Action Navigation. We want to apply some security around that button. I'm creating a new CustomSecurityEvaluator class. Below is example code per Oracle documentation. I have two questions.
1. What dll or dlls do I need to reference so my class can access the following
Imports Xeno.Web.UI.Common.Controls.ObjectHeader
Imports Xeno.Web.UI.Providers.Security
2. Do you have a C# example?
Example code per documentation:
Step 2. Create a plugin named MyEvaluator and compile.
Imports Xeno.Prodika.Application
Imports Xeno.Prodika.Services
Imports Xeno.Web.UI.Common.Controls.ObjectHeader
Imports Xeno.Web.UI.Providers.Security
Public Class MyEvaluator : Implements ICustomSecurityEvaluator
Private ReadOnly Property SpecService() As ISpecificationService
Get
Return AppPlatformHelper.ServiceManager(Constants.GetInstance().SPECIFICATION_SERVICE)
End Get
End Property
Public Function Evaluate() As Boolean Implements ICustomSecurityEvaluator.Evaluate
If (SpecService.Current Is Nothing) Then
Return False
End If
//<Your codes here>
Return //<Your result here>
End Function
End Class
Edited by: Hai at Tyson on Oct 29, 2012 2:51 PMthanks. so here's my plugin in C#. what dll do i need to reference to have access to Constants?
example code:
using Xeno.Prodika.Application;
using Xeno.Prodika.Services;
//using Xeno.Web.UI.Common.Controls.ObjectHeader;
using Xeno.Web.UI.Providers.Security;
namespace Tyson.Pdm.SecurityEvaluatorPlugins.Lib
public class PrintViewButtonPlugin : ICustomSecurityEvaluator
private static ISpecificationService SpecService
get { return AppPlatformHelper.ServiceManager(Constants.GetInstance().SPECIFICATION_SERVICE); }
public bool Evaluate()
if (SpecService.Current == null)
return false;
//<Your codes here>
//Return //<Your result here>
throw new System.NotImplementedException();
} -
Hi there,
I'm trying to use a custom skin I made with Flash CS3,
inserted by Dreamweaver CS3:
http://www.alternium.net/video_test.htm
I've been working from the tutorial at:
http://www.adobe.com/devnet/flash/articles/flv_tutorial_pt2_02.html
As you can see, it is all messed up. The buttons, when
located in the appropriate space, fall behind the frame. In the
file "video_test.htm", above, you can see that the top of the play
button is just barely visible in the lower left corner. I've left
the rest higher than normal on the y-axis for illustrative
purposes.
The other problem I'm having is that all of the button states
seem to be visible. Why is this? I'm using the same naming
conventions: up_mc, dn_mc, over_mc, disabled_mc; pause-set,
play-set, stop-set, etc...
The actionscript I'm using is attached.
Again, thanks for any and all help that can be provided. I'm
nearly at my wits end trying to figure this out and I'm just really
glad this community's here to help.bump
Same issue. Would love to find a workaround. Thanks -
Controlling visibility of an iView based on User groups...how ?
Hi SDNs,
I am trying to achive a functionality like:
There is Page with 3 iViews A,B & C and that Page is assigned to some role R.
And there are 2 user groups X & Y and i will assign that Role R to both the user groups.
But the User group X should be able to see only iViews A & B, where as user group should Y should be able to all A,B & C iViews.
I thought of proceeding like controlling Permissions at the iView level for the groups X & Y, but i couldn't do that because i don't know how to do
Can any one suggest a best solution for achieving this kind of functionality ?
Thanks,
TrikanthHi All,
I just told example as A,B & C, actually i have more than 100 iViews and pages where i need to get this kind of functionality.
So i can't go with creating different pages for each group.
Thanks,
Trikanth -
Controlling visibility of Spry Accordian
Hi,
I have created 2 spry accordians for my site here :: www.octopusdesign.net/embedded.html and am having a problem with their presentation.
After the page has loaded the spry panels are laid out and then they collapse leaving one visible panel. The problem is that I don't want to see the accordian at all until it has been collapsed. I tried using CSS to set the visibility to hidden initially on creation and then to visible at the end of the onload handler. This is slightly better, but you still see the page become stretched (as the accordian is laid out invisibly) before the page resumes it's correct size and the accordian becomes visible.
Then I tried setting display = none in the CSS with display = block at the end of the on load handler. In this instance the accordians never become visible.
Any advice on how to manage this better would be greatly appreciated. I'm using Dreamweaver CS3.
Thanks for listening,
ChrisHi,
Depending upon another context attribute condition get th ecolumn ref of the alv field which you want to hide and set the visibility property to none.
data : lt_columns type SALV_WD_T_COLUMN_REF.
Get the column ref
CALL METHOD lo_value->if_salv_wd_column_settings~get_columns
RECEIVING
value = lt_columns.
CALL METHOD lr_column->set_visible
EXPORTING
value = cl_wd_uielement=>e_visible-none.
Thanks,
Shailaja Ainala.
Maybe you are looking for
-
[JS CS3] Modify geometricBounds of Inline Frames in Overset Text
Hello, I have the following setting: I recieve a XML file , which contains <image href="..."> tags. InDesign automatically inserts the correct images as an inline frame. The layout column are too small for the large images, so when placing the XML in
-
Password doesn't work after account login!
I recently needed to use the OS X recovery option to restore Mavericks on a partition that I had upgraded to Yosemite for testing (Yes, I had a backup but Carbon Copy Cloner still scheduled its backup of the Mav to its BU volume. Grr! ) So after the
-
Hi , I have got a scenario in with one image needs to be printed on top of other. 1) the seal of the company 2) on top of seal the signature of the enduser. the seal of the company will be one and the signature of the user will be changing based on
-
QuickTime MPEG-2 Component cant playback High Profile High Level content
Is the QuickTime MPEG-2 Playback Component really unable to playback HP HL content? Im encoding high bitrate media content to mediaservers with my Mac Pro and have used VLC so far to playback the encoded files. VLC however doesent loop flawlessly so
-
Transformation conversion-automatic
Hi experts, I have converted the 3.5 flow to 7.0 by using the tool provided by SAP which is the context menu >>Additional functions and changing the TR to Transformation and UR to tranformation and when i check even the routines are also created in T