Visibility property of item
Hi
I want to display a textbox1 if user selects 'A' in listbox1 and if user selects 'B' in the listbox1,textbox1 should not be visible to the user.
is there any property available for that in Set_Item_Property(...).
Thanks,
Tharini
Hi,
The forum is very use full if you use the search box there are lots of examples for this and this is very basic to ask. And the first search which is in your hand is forms builder. Just open the help and search for SET_ITEM_PROPERTY you will find all the properties which you can use as you know the syntax.
There is visible property for item which you can set at runtime.
SET_ITEM_PROPERTY('ITEM_NAME',VISIBILE,PROPERTY_TRUE); -- For show
SET_ITEM_PROPERTY('ITEM_NAME',VISIBILE,PROPERTY_FALSE); -- For hide-Ammad
Similar Messages
-
Set visibility property for items depending on other items
Hello,
I want to set the visibility setting for an item that I have, the steps should be as the following,
for example
if I have an item that asked,
do you have children ?
if the answer is Yes,
the next item should be visible which let's say, number of them
if no,
the next item should be not visible
I tried to set a trigger for the item I am controlling its visibility which is
pre-text-item and wrote
if 'CHEQUE_TABLE.CHEQUE_RECIEVED'='yes'
then
set_item_property(:SYSTEM.CURRENT_ITEM,visible,property_true) ;
else
set_item_property(:SYSTEM.CURRENT_ITEM,visible,property_false) ;
end if;
but it doesn't seem to be right, ,,,
thank youI can see two potential problems. The first:
if 'CHEQUE_TABLE.CHEQUE_RECIEVED'='yes'
Does CHEQUE_TABLE.CHEQUE_RECEIVED refer to a Data Block and Item? If yes, then you are trying to tell Forms to look at the value of the string 'CHEQUE_TABLE.CHEQUE_RECEIVED' when you should be refering to the value of the Block.Item through direct reference, eg:
IF :CHEQUE_TABLE.CHEQUE_RECEIVED = 'yes'
How is the value of CHEQUE_RECIEVED set? Does the user select the YES value from a List of Value (LOV) or from a Poplist or do they enter the value by typing it in? If your code is looking at the string 'yes' and comparing it to the value of the Block Item which is in upper or mixed case, then 'yes' = 'Yes' or 'yes' = 'YES' will evaluate to FALSE instead of TRUE.
It is always a good idea to use a Poplist or a List of Values when you are expecting specific values to be entered by the user; this enables you to force the value to be entered the same by everyone. If the user CAN type the value in, then at least set the Case Restriction property to UPPER or LOWER so regardless of how the user enteres the value, it will be stored in the corrected case.
Craig... -
Maybe Flex SDK bug: Setting visible of DataGrid item renderers
Hi all, I'm still a noob at flex but this looks a bit strange to me.
I've been trying to hide a button renderer in a DataGrid but it just wouldn't hide. I've been setting visible inside the mxml and also in the the class that extends buttonbut it just wouldn't hide. I then overloaded the visible property set/get and traced what was setting the property to true and found that inside DataGridBase.as the function setupColumnItemRenderer always sets visible of the renderes to true.
DataGridBase.as
protected function setupColumnItemRenderer(c:DataGridColumn, contentHolder:ListBaseContentHolder,
rowNum:int, colNum:int, data:Object, uid:String):IListItemRenderer
var listItems:Array = contentHolder.listItems;
var item:IListItemRenderer;
var rowData:DataGridListData;
item = listItems[rowNum][colNum];
if (!item || itemToUID(item.data) != uid
|| columnMap[item.name] != c)
item = createColumnItemRenderer(c, false, data);
if (item == null)
return null;
if (item.parent != contentHolder)
contentHolder.addChild(DisplayObject(item));
// a space is used if no data so text widgets get some default size
columnMap[item.name] = c;
if (listItems[rowNum][colNum])
addToFreeItemRenderers(listItems[rowNum][colNum]);
listItems[rowNum][colNum] = item;
//[Matt] moved from inside the block above to outside because
//the item definitely exists at this point, and always needs
//its data refreshed
rowData = DataGridListData(makeListData(data, uid, rowNum, c.colNum, c));
rowMap[item.name] = rowData;
if (item is IDropInListItemRenderer)
IDropInListItemRenderer(item).listData = data ? rowData : null;
item.data = data;
item.visible = true;
if (uid && colNum == 0)
contentHolder.visibleData[uid] = item;
return item;
Why does it do this? Shouldn't it respect the visible property already set for the renderer in mxml and not force it to true on init?Renderers use the visible property for recycling. Invisible renderers are not supported. The hit detection logic would find it the cell it belongs to even if it was invisible. You can set alpha=0, but it won't stop the hit detection logic.
Why are you trying to hide a renderer?
Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs.adobe.com/aharui -
If I have 20 items in a listbox, each item corresponds to a control cluster. The cluster appears according to the item in the list that the user push while the other ones disappear. This is all in a While loop until the user hit OKAY. Is there a quicker way to set the visible property because the way that I have in mind right now is a case structure that make one visible and the other 19 invisible. This is very tedious because that means that I have to do the same for all 20 cases. Thanks.
I suspect that vk1 & Veeru are the same person
Have you started implementing code and need a solution for it? If so, please post the code so that we can prepare an adequate example.
R -
Af:column visible property
Hi,
I am using JDeveloper 11.1.1.4 and ADF-BC in my application.
I want to pragmatically control the visible property of the af:column inside the table.
I have the following code for af:column.
<af:column sortable="false" headerText="Impact Cat New" id="c7" visible="#{row.bindings.Selected.inputValue}">
</af:column>
Initially, the value of 'Selected' will be false when the table is first displayed and hence it should NOT be displayed.
In the table selection listener,I set the property 'Selected' to true for the selected row and refresh the table[AdfFacesContext.getCurrentInstance().addPartialTarget(tblEmp)].
But Even after refresh the table is never showing the column for which visible is set as true.
The table is inside a panelCollection.
Please advice.
Regards,
PraveenThis won't work, as the column is the container for all rows and the row attribute is only available when the table rows arr stamped. I don't understand your use case. You want to show a column if one row gets selected? Sounds odd to me.
If you really want to do this, you have to set an attribute outside the table and use the selection listener to switch this attrbute. Then use the new attribute in the columns visible property.
Timo -
Webdynpro for ABAP, Enhancement and change of standard "visible" property
Hi
Is it possible to change the standard Webdynpro element (in cProjects application), so that the original control "Input" from visible property "Visible" is changed to mine Context variable? How to change that default "Visible" flag in standard element?
thank youHi Phani,
Thanks for the info.
I am able to see if it is not interactive.
Displaytype is native only.
Let me explain you the issue in detail:
Currently Client is calling ZFORM thro Java. They have some issues with JAVA so they want to use Webdynpro to call that ZFORM and the form is ABAP Dic based.
For Templete source I gave ZFORM name, and it automatically created a 'NODE' wrt the context in the ZFORM.
Now I have to pass data from difft node attributes to that 'NODE'.
Thanks in advance,
GG -
Tracking the visible property of a movie clip
Hello,
I am trying to track the visible property of a movie clip as
I need to perform a function when visible = true and another when
visible =false
I have tried to use a listener object but I can’t get
it to work. Can you attach a listener object to listen for the
visible property?
I have also tried an IF statement inside the move clip but
this only knows the state of the ._visible when it first runs.
I have got it to work with an onEnterFrame function on a
movie clip inside the one I want to know the property of but I
don’t like using the onEnterFrame as it uses a lot or
processor speed
Is there an easy way to track the visible property of a
movieclip???
Thanks
Sam.> thanks for the help but the watch() method doesn't work
for getter/setter
> properties. is ._visible a getter/setter property?
I was afraid of that. Yes, _visible is a getter/setter, most
properties are. Basically watch() only works on read-only
properties and custom variables, which is a shame.
So I don't know of any more elegant way than constantly
checking to see if the value changed. Centralize it and maybe
package it in a nice class and you might feel a little better about
it... -
Hi All,
How to Handle Automatic Skip Property of Item in Oracle Forms through Custom.pll or from other methods.
This is a enhancement requirement.
When ever user enter value in field 1 then automatically cursor should go to next field.Hello Bobb,
You can create a trigger(when-list-changed) for each list item where you could:
1.recreate the record groups and then use POPULATE_LIST so you can hide the selected values. In forms builder online help there are some good examples about create record groups dynamically.
or
2.you can perform a validation instead of hiding the selected values. If the values is already selected the display a message 'Value already selected....'
Second option is much faster(only an 'if clause')
Hope this helps.
Regards,
Alex -
Change visible property of iView assigned to page
Hi,
When we add an iView to a page, we have some properties like visible, fixed,etc. mentioned along with each iView. Now, I want to change the visible property dynamically using pdk development. How can we achieve this?
Regards,
KhushbooHello Mittal,
As per my understanding you want a way to dynamically edit the property of the PCD objetcs using PDK. SAP provides an API for the same puspose. Please refer to this link for more details
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/6112ecb7-0a01-0010-ef90-941c70c9e401
Regards,
Raju Bonagiri -
Visible Property of lable in Webdynpro
Hi all,
I have a lable and a inputfield which are hide. I want that when a select something in my dropdownbykey, this two objects get visible.
How can i do that?
Regards,
NiraliHi,
Please look this code
1.Create one Droupdownkey UI element in your firstView (Droupdown by key is bind to the one value attribute i.e MonthName)along this u can take 2 lable. For 2 lables you can set Visibility (com.sap.ide.webdynpro.uielementdefinitions.Visibility) property.
2. in wdinit() method you can write this code
ISimpleTypeModifiable myType=wdThis.wdGetAPI().getContext().getModifiableTypeOf("MonthName");
IModifiableSimpleValueSet values =myType.getSVServices().getModifiableSimpleValueSet();
values.put("Vijay","Vijay");
values.put("Kalluri","Kalluri");
wdContext.currentContextElement().setMonthName("Vijay");
wdContext.currentContextElement().setKalluri(WDVisibility.NONE);
wdContext.currentContextElement().setVijay(WDVisibility.NONE);
3.in Droupdownby key having OnSelect event in that place you can create on method. Under method you can write this code.
String firstName = wdContext.currentContextElement().getMonthName();
wdComponentAPI.getMessageManager().reportSuccess("First Name:"+firstName);
String lastName = wdContext.currentContextElement().getMonthName();
wdComponentAPI.getMessageManager().reportSuccess("Last Name:"+lastName);
if(firstName.equalsIgnoreCase("Vijay"))
wdContext.currentContextElement().setKalluri(WDVisibility.VISIBLE);
wdContext.currentContextElement().setVijay(WDVisibility.NONE);
else
wdContext.currentContextElement().setVijay(WDVisibility.VISIBLE);
wdContext.currentContextElement().setKalluri(WDVisibility.NONE);
Hope this helps u.
Best Regards
Vijay K
Edited by: VijaySAPEP on Jan 4, 2012 4:47 PM
Edited by: VijaySAPEP on Jan 4, 2012 7:32 PM -
Visible Property of javafx Tab
Hi
Is it possible to hide or show the tabs inside a tab panel at run time? I did not see any "Visible" property on Javafx Tab. Is there a way I can hide the tab at runtime?(or later show it if required)?
Thanx in advance
-suvarnaAnother option is to simply remove/add the Tab instances from the TabPane.tabs list as necessary.
-- Jonathan -
Visible property for transient attribute.
Hi,
I am using J developer 11g Release 2.In my page i need to set the visible property for the transient attribute(conform password) because the transient attribute needs to be disable for some condition.I have tried but the property was working only when the attribute is not transient.Can we set the property for transient attribute?
Help me on this..
Thanks,
Suganya.
Edited by: Suganya on Feb 27, 2012 1:40 AMDisabling the visbile property:
<af:inputText autoSubmit="true" id="it6" label="Table Attr"> </af:inputText>
<af:inputText partialTriggers="it6" visible="#{bindings.AphdBe.inputValue eq null? 'false' : 'true'} " id="it2" label="Trans Attr"> </af:inputText>like this you should h'd.
normally we use transiet term in vo's while coming to part ui.
it will consider as attribute. no thing difference bwtn those attribute as timo says.
--edited lately. -
In Flash, I can set the visible property of a MovieClip with ActionScript as follows:
coke_mc.visible = false;
How do I accomplish this in edge?Option 1. For Timeline interaction, Select the Element from the Elements Panel, go to the Properties Panel and from the Visibility section (Always On) choose Off.
Option 2. On handler event interaction, assumming the element name is called coke
sym.$("coke").hide(); // this hides it
sym.$("coke").show(); // this shows it
More API detials here http://www.adobe.com/devnet-docs/edgeanimate/api/current/index.html
Darrell -
Visible property of Decorations
How can I change the Visible property of decorations?
ThanksYou use property nodes. First select the panel property and wire the reference to another property node and select the Decorations[] property. This will return an array of refnums to your front panel decorations. You then use the index array function to select the decoration you want and use the visible property on that refnum. I've attached a simple example.
Attachments:
Visible_Decorations.vi 24 KB -
How to set visible property to href link
Hi All,
I want to open the new jsp page in the new tab when will we click on the link in my ADF application.So i tried like this.
<af:column id="pt_c115" >
<a id="JspLink" href="AuditLogInfo.jspx" target="_blank">JspLink</a>
</af:column>
Im able to view my new jsp page when im click on JspLink link.But here my problem is i have nee to set the visible condition if the 'status' field of adf table is succes only i want to view the link other wise no need to visible my link.
visible="#{row.bindings.Status.inputValue=='SUCCESS'}" is working for commandbutton.But i'm not able to see any visible property in <a id="JspLink" href="AuditLogInfo.jspx" target="_blank">JspLink</a> .How can i set this condition?Please help me.I'm using JDeveloper 11.1.1.5 version.
Thanks in Advance!
Edited by: 851924 on Apr 5, 2012 11:22 PM
Edited by: 851924 on Apr 5, 2012 11:23 PMInstead of using a jsplink you should use an af:goLink which is the adf equivalent and has all the needed properties.
Timo
Maybe you are looking for
-
Please help me find my music I have purchased from Itunes. I have a new computer and my library is empty. I have it all on my Ipod but I'm affraid if I plug it in the comp. it will sync. and wipe out my Ipod music. Thanks for what help I can get.
-
Taking display value for calculations using structures in Bex query
Hi I am using Bex analyzer to do a simple report with two key figures Sales and Plans from cube and two more calculated key figures Abs Deviation and % error. The report displays at category and product levels. Category is higher and one cate
-
Cancel option of Reconciliation and Link Invoice
Hi ! We by mistake have Linked Invoice with wrong amt. ie we linked invoice of value 1 lakh with 10000 payment. unfortunately the invoice got closed. How to reverse the linked invoice ? similarly we need to know the reversal options for reconc
-
Migrating Data from MySQL to SQL Server 2012
Hi all, I'm Migrating a database from MySQL to SQL Server 2012, using SSMA for MySQL v5.2.1258. I've got the schema migrated over and have resolved any migration issues (stored procedures / views), but when it comes to migrating over the data I'm ju
-
-9041:system error(BD Index is not accessing)
hi all, -9041:system error(BD Index is not accessing), i am not able to import the software component from SLD to IR. Thanks & regards, subba reddy