Set border visible/invisible
Hi there. Could You tell me how to switch visibility of border component?
I set it invisible in screenpainter as default. then I want to show border during program.
LOOP AT SCREEN .
IF ( SCREEN-GROUP3 EQ 'SEL' ) .
SCREEN-active = 1 .
" or
SCREEN-invisible = 0 .
MODIFY SCREEN .
ENDIF .
ENDLOOP .
has no effect.
Do You know which property should I change to control border's visibility?
Hi,
Check the code
code
selection-screen begin of block processing with frame title text-030.
selection-screen begin of line.
selection-screen position 1.
parameters pa_xmanu like rm08mrbr-manu default 'X'
radiobutton group val modif id id1.
selection-screen comment 3(30) text-040 for field pa_xmanu modif id id1. "<--- Here
selection-screen position 40.
parameters pa_xauto like rm08mrbr-auto
radiobutton group val modif id id1.
selection-screen comment 43(30) text-050
for field pa_xauto modif id id1. "<--- Here
selection-screen end of line.
selection-screen begin of line.
parameters: pa_xskto like rm08mrbr-skto as checkbox modif id id1.
selection-screen comment 3(30) text-055
for field pa_xskto modif id id1. "<--- Here
selection-screen end of line.
selection-screen end of block processing.
at selection-screen output.
loop at screen.
if screen-group1 = 'ID1'.
screen-active = 0.
modify screen.
endif.
endloop.
[/code]
Reward for useful answers.
Regards,
Raj.
Similar Messages
-
How to programmatically set the Visibility of an Iview INVISIBLE ?
Hi ..... I need to programmatically set the visibility of an IView for a user Invisible - In order to achieve that , I am trying the below code....But getting errors-
Code -
Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY,"com.sapportals.portal.pcd.gl.PcdInitialContextFactory");
env.put("com.sap.portal.jndi.requested_aspect","com.sap.portal.pcd.gl.PersistencyAspect");
env.put("java.naming.factory.object", "__IPcdContext__");
InitialContext iCtx = null;
String iViewID = "pcd:portal_content/ABC/1Portal/mywork/iviews/XYA_iViews/adf.ivw_ess_jspdynpage";
iCtx = new InitialContext(env);
IiView result =(IiView)iCtx.lookup(iViewID);
IiViews iViewSrv = (IiViews)PortalRuntime.getRuntimeResources().getService(IiViews.KEY);
INewObjectDescriptor IVtoCreate =(INewObjectDescriptor) iViewSrv.instantiateDescriptor(CreateMethod.NEW,"par:/applications/com.sap.km.cm/components/navigation",request.getUser());
IVtoCreate.putAttribute("com.sap.portal.navigation.invisible", true);
the above method putAttribute is not apllicablt for (String,Boolean)\
Please suggest as to how can I programmatically set an Iview Visible/Invisible .I think the property is com.sap.portal.navigation.Invisible with a capital I for invisible...
This blog has an example: Hiding portal role content with a simple iView -
Setting visible/invisible when menu item is contained/not contained
Hello All,
I have a vertical rectangle (the containerButtonsRect) that contains menu items (text). The items slide up and down when using up and down keys. When the items go out the container I want to make them invisible. When they come back in the containerButtonsRect I want to make them visible. The following code does not work:
override public function create(): Node {
for (i in [0..sizeof labelButtons - 1]) {
def menuItem:MenuItem = MenuItem {
x: bind containerButtonsRect.x
y: bind (containerButtonsRect.y + (i+1)*ySpacing + i*maxButtonHeight)
width: bind containerButtonsRect.width
height: bind maxButtonHeight
content: labelButtons[i]
translateY: bind tracker*deltaY
visible: bind ((menuItem.y + translateY > containerButtonsRect.y) and ((menuItem.y + translateY + maxButtonHeight) < (containerButtonsRect.y + containerButtonsRect.height)))
insert menuItem into menuItems;
if (i == focusedIndexItem) {
menuItems[focusedIndexItem].selected = true;
updateMaxSize(menuItem);
return Group {
content: bind [
containerButtonsRect,
selectionRect,
menuItems
}It is strange that the following line:
visible: bind ((menuItem.y + translateY > containerButtonsRect.y) and ((menuItem.y + translateY + maxButtonHeight) < (containerButtonsRect.y + containerButtonsRect.height)))does not do the job.
Is there a better way to set the visible attribute based on the logic described above?
Thanks.
Edited by: sacchett88 on Jun 9, 2010 2:10 PMThank for the response.
The translateY is set to provide vertical motion. A time line is controlling the tracker variable. So when I move arrow up/down the items scroll up/down.
I agree JavaFX have way complicated the different variables you can set to position components and retrieve width and height. This cause a lot of problems hard to debug.
Interesting your ideas of setting the clip of the group. I am not to familiar with that attribute as well the description in the docs: http://java.sun.com/javafx/1.3/docs/api/javafx.scene/javafx.scene.Group.html is poor:
"Specifies a Node to use to define the the clipping shape for this Node."
Is there any example you could point me out to ?
Thanks. -
How to set a layer invisible?
Hi guys,
Can you tell me how to set a layer invisible? Thanks.function hideAllLayers()<br />{<br /> forEach(document.layers, function(layer) {<br /> layer.visible = false;<br /> });<br />}<br /><br />function showAllLayers()<br />{<br /> forEach(document.layers, function(layer) {<br /> layer.visible = true;<br /> }); <br />}<br /><br />function forEach(collection, fn)<br />{<br /> var n = collection.length;<br /> for(var i=0; i<n; ++i)<br /> {<br /> fn(collection[i]);<br /> }<br />}
-
How to set focus on invisible input field?
Hi Guys,
I need an invisible input field and have to set an input focus on it. My problem is that if I set input fields property visible=blank, I get my invisible field <b>BUT</b> the function call doesnt work (setInput.requestFocus()).
I suppose that I cant set a focus if an input field is invisible.
Does somebody know how can I solve my problem? Is there a possibility to do this input field invisible with java script? If yes, how does it work in Web Dynpro?
Thanks
MaritaHi
Setting a focus on invisible input field will not work even if you follow the method what sowjanya has suggested. The method wdThis.wdGetAPI().requestFocus() will not work for read-only and disabled fields.
By the way why do you want to set the focus on a invisible input field. If you can tell us the requirement maybe we could think of an alternate solution. But i guess for the current scenario setting focus on invisible input field does not work.
regards
ravi -
Visible/invisible subform based on choices from 2 dropdowns
Does anyone have an example of a form with subforms being visible/invisible based on the answers of 2 dropdowns.
thanks for sharingHi Jagan,
It is probablly just how you set up the script.
For starters, for Yes/No choices I think you would be better to use radio buttons instead of checkbox objects. So for example you would have four different radio button exclusion groups, each with a Yes and No radio button. Then in the Object > Binding palette, you would set the Yes value to 1 and the No value to 0.
This way you can sum the four radio button exclusion groups and if the total value is >=1 then change the presence of the text field and highlighting to suit.
There are some examples here that might help:
Scoring options: http://assure.ly/uiKS6f.
Tracking interaction (checkboxes): http://assure.ly/xDbtbx.
Hope that helps,
Niall -
Using setInterval/clearInterval to cycle through visible-invisible
I've got so confused with setInterval/clearInterval that fail
to code a very
basic effect.
I need an object to become visible for, say 3 sec, then to
become invisible
for 2 sec and so far.
I did three functions:
function objOnAndOff(){
int1=setInterval(objOff,3000);
int2=setInterval(objOn,4998)
function objOff(){obj._visible=false;clearInt(int1)}
function objOn(){obj._visible=true;clearInt(int2)}
obj._visible=true;
var int1,int2,int3
int3=setInterval(objOnAndOff,5000)
I expected objOnAndOff be called every 3+2=5 sec, of which
the object would
stay visible for the first 3 sec, then on 3.001 objOff() sets
it invisible,
then on 4.999 objOn() sets it visible. Immediately after that
objOnAndOff()
is called again and the cycle repeats. Instead it behave
erraticaly.
Where does my logic fail?Thanks. Amaizingly, I used clearInterval() many times and yet
wrote
clearInt() looked at is many times and failed to notice.
I works in general.
However I have a timer counting down every second and I
planted trace()
into your two functions - the interval shown by the times is
not stable. It
is suppose to be 2 and 3 but timer sometimes shows 1 nd 2
respectively -
Iis is cvorrect to suggest that this is the result of an
inacuracy
accumulated over several cycles and we have this leap year
regularly?
Also is it important that you clearInterval for Off/On BEFORE
setting the
interval for On/Off
In my first attempt I coded similar functions but
clearInterval for Off/On
AFTER setting the interval for On/Off and it did not work,
though I do not
see why this matters.
"kglad" <[email protected]> wrote in message
news:e3bqes$g1p$[email protected]..
> you have a syntax error and an error in flash-logic. to
correct the
syntax
> error use clearInterval() to clear your intervals
(clearInt() is not a
flash
> function).
>
> your error in flash-logic is thinking setInterval()
function calls are
precise
> to within 2 ms. they are not and you're likely to
accumulate
uncontrollable
> calls to objOn().
>
> i don't think pwyon's code will do what you want. try:
>
>
> function objOff(){
> obj._visible=false;
> clearInterval(offI);
> onI=setInterval(objOn,2000);
> }
> function objOn(){
> obj._visible=true;
> clearInterval(onI);
> offI=setInterval(objOff,3000);
> }
> objOn();
> -
GUI elements visible/ invisible
I need various different comboboxes to appear as the user steps through making choices.
I am new to Swing and unsure whether I can make comboboxes visible, or whether I should have them on different JPanels and make these visible/invisible.
Am a little confused 'cos I read in a book that only one element can be contained in a specific container region, so can I have several JPanels in the one region of the container at the same time?
I am using border layout.
If someone could please explain I'd sure appreciate it!There are many layouts availabled in Swing, BorderLayout, BoxLayout, GridBagLayout, CardLayout etc etc. Each of them have their own pros and cons. For instant, BorderLayout can only contain one element in a specific container region, like you said. It has 5 regions, North, West, East, West, and Center. Following link can give you more details about this layout.
http://java.sun.com/docs/books/tutorial/uiswing/layout/using.html
Yes, you can make comboboxes visible or invisible.
JComboBox.setVisible(true) or JComboBox.setVisible(false)
You can do this to any other components as well, like JTextField, JLabel, JButton etc etc.
cheers. -
How to set border lines in table and also in template in the smartforms ?
How to set border lines in table and also in template in the smartforms ?
As I have to create table with following detals
total row = 3
row1 = 3 column
row2 = 6 column
row3 = 9 column
for 2nd and 3rd row data to be fetched using coding.
so can anybody explain me what should i use
Table or Template ?
and I want the border like excel format.
Can anybody suggest me ?
Thanks
nareshif the data is multiple i.e. line items choose table.
if the data is single i.e. fixed choose template.
Create table
> Draw u r no lines
> choose option select pattern
> select display framed patterns
Choose u r required one.
out lined, or full lined. u can choose option.
same procedure to be followed for template also.
with regards,
Kiran.G -
How to Set the Visibility of a field in ESS Address view through portal
Hi experts,
I want to set the visibility of a field in ESS Address view through portal.How to edit a field through portal? Please help me with procedures to be followed..
Thanks&Regards,
Karthik.Hi,
Login to portal with a user having content administration role.
Navigate to your iview which must be under content provide by SAP(if its a standard iview).
Open the iview and click on preview button.
Then press ctr on keyboard and rightmouseclick on the field for which you want to change.
A popup will open. Change the visibility in the popup and save the changes. This is a way of personalization and it'll be applicable for all the users. -
JavaFX applet crashes while setting Group visible
Hi,
I have a big problem with my JavaFX applet. Sometimes I have to switch the visibility of some Groups in my applet. But often the GUI crashes and I have to close the browser and start it again. I think it's just the GUI that chrashes because the Java Console tells me the applet is running. Do anyone know how to fix this problem?
Thanks,
Tobicasperghost wrote:
Do you mean that it just doesn't react anymore?Exactly. The GUI just freezes.
var event:String = "" on replace //if variable changes set visible
if(event.equals("online"))
groupOffline.visible = false;
groupOnline.visible = true;
if(event.equals("offline"))
groupOnline.visible = false;
groupOffline.visible = true;
var groupOnline:Group = Group
var text:Text = Text
font : Font {
size: 24
x: 50
y: 100
content: bind "{user} is online"
var btn:MyButton = MyButton //custom node
title: "Test"
posX: 100
posY: 150
action: function()
//Action
content: [text, btn]
visible: false;
var groupOffline:Group = Group
var text:Text = Text
font : Font {
size: 24
x: 50
y: 100
content: bind "{user} is offline"
var btn:MyButton = MyButton //custom node
title: "Test2"
posX: 100
posY: 150
action: function()
//Action
content: [text, btn]
visible: false;
}I've shorten the code. There are more groups like them above. But it's always the same. If the event variable changes I set the visibility of the groups. But on Windows XP with Firefox and IE the GUI freezes sometimes. On Mac I haven't got this problem. -
Looking for a way to programmatically set the visible portion of the front panel when a subVI opens
I am looking for a way to programmatically set the visible portion of the front panel when a subVI opens. Haven't found any posts that relate, but I'm not sure how to ask the right question. To be clear, I want to write a helper VI to go through a list of subVIs to make sure the background images are all in the same place when their respective subVIs open. I hate manually playing with scroll bars before I save each of the VIs... I'm figuring I need to find the top/left location of the background image (know how to do this already) and then set a VI FP property to these values or some offset, but I can't find the relevant property. FP:run-timeposition:custom looked promissing, but only affects the location of the window, not the area of the front panel the window is displaying.
Solved!
Go to Solution.Cool. Getting closer. The way I implemented your suggestion affects the subVI only if it is open. I can use this to do what I'm after, perhaps putting the code into each subVI. Maybe open all subs, run the helper, and save. Seems like I'm missing the elegant version...
My proof of concept code: -
Access - Another Newbie Visible/Invisible Field Q
With help from Maurice, I now have two fields and associated labels that become visible/invisible dependent on the selection/status of a checkbox. The visibility is controlled in the AfterUpdate property of the check box. See previous "field
visibility" post.
What I am now looking to do is have the visibility of those fields change as I navigate between records. So if the checkbox is unchecked for a particular record, then the fields are not visible when this record is displayed in my form.
Can someone tell me in which event this test should be applied?
I'm thinking this should be a form event, but I don't see a change record event as such.
Thanks
PhilHi Phil,
You can accomplish this by using the 'on current' event of the form. That way when you navigate to another record you can trigger an event. Be aware though that this is a costly event because it will fire every time you go to another record.
You can use the value of the checkbox as your trigger. Something like if me.checkbox=0 then me.label.visible=true or false.
Let us know if that helps
Maurice
When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer. Thank You
The Office Corner -
How to set Border in the Excel using UTL_FILE ?
Hi all,
Any one aware of
How to set Border in the Excel using UTL_FILE ?
Am doing excel creation from a stored procedure.
Thanks
DoraHello Dora,
if you need more than simple csv: at Re: How to save a query result and export it to, say excell? you can find links to different solutions. At least the package behind the second link supports defining your own formats (and has a tutorial how to do it).
Regards
Marcus -
Make region/Task-Flow visible/invisible inside the page created in composer mode.
Environent_
JDeveloper 11.1.1.6.0
Webcenter Sites version : 11g R1.
Problem statement_
Below example is to demonstrate the usecase to make region visible/invisible inside the page created in composer mode.
The problem with this case is the 'Show Component' property does not automatically evaluate its expression even after using the contextual event.
We want the region to be refreshed at run-time just like it works with design time pages using Refresh, RefreshCondition attributes in pageDef.
My Usecase_
I have two task flows dragged in Webcenter Customized Page.
First contains Employee list and Second contains selected employee's manager name.
By default when page loads second task-flow/Dragged-Box should be hidden.
When I select employee from first box, then immediately second box should be appeared with manager name.
In the case when If Employee does not have manager, second box should be disappeared. Whole page should not be refreshed only the second box should be refreshed and hide.
Regards,
NirajHi Jiri,
Thanks for your prompt reply..
While referencing the taskflow in any page will create a region and makes entry in pageDef for that page.
In the PageDef of that page I am using Refresh and RefreshCondition attributes of the taskflow tag in order to refresh the taskflow based on certain condition or parameter change.
I want to achieve the same in run-time environment using composer mode. where I have the control over page but do not have pageDef (visually where I can go and add the attributes Refresh and RefreshCondition manually)
I would be obliged if someone can help on this.
Thanks
Regards,
Niraj
Maybe you are looking for
-
"recording name conflict" error
Hi, I have a dependency problem building a new copy of Heimdal Kerberos (SS12.1 on SPARC) that I don't know how to work around. When make begins linking a number of the shared libraries together, it bombs out with: ld: fatal: recording name conflict:
-
Hi, what are the steps to post idoc on HTTP adapter. Regards, Anurag
-
The latest update for Mountain Lion OS X 10.8.3 does not update. Keeps asking for Restart but no update.
-
hi, i quite confused of the term below. may i know what is the difference for the below term and when to use them? Settlement - settle from order to cost center or order to order or order to profit center or order to profitablility analysis Allocatio
-
Hello Experts, On Service scenario, I want not to proceed sales order if the system status of the service order PCNF (Partially confirmed)..... Is there any configuration path to do this? Best Regards, Amr