InvokeMethod and enabled/disabled
Hi.
I have created AM implementation and add new method. Exposed it to client.
And by drag'n'drop-ing this exposed method to JSF there is a button which executes this method.
By default on this button there is one property Disabled which is set to #{!bindings.methodName.enabled}.
How do I handle enabled/disabled from my AM implementation? My logic for disabled toggle is very complex and I want it to put it in Java implementation not inside EL.
Thx
Regards
Boris
On my PageDef there is a
<methodAction id="methodName" RequiresUpdateModel="true"
Action="invokeMethod" MethodName="methodName"
IsViewObjectMethod="false"
DataControl="AppModuleDataControl"
InstanceName="AppModuleDataControl.dataProvider"/>I can add permission to that method action like
<methodAction id="methodName" RequiresUpdateModel="true"
Action="invokeMethod" MethodName="methodName"
IsViewObjectMethod="false"
DataControl="AppModuleDataControl"
InstanceName="AppModuleDataControl.dataProvider">
<permission xmlns="http://xmlns.oracle.com/adf/security"/>
</methodAction>How do I implement that permission(s)?
Regards
Similar Messages
-
Apple script to enable/disable dark menu bar and dock when sunsets/sunrises
Greetings,
Regarding the new dark menu bar and dock function in Yosemite. Would it be possible to write a script that would enable this function at a certain time say sunset and to disable it at another time say sunrise?
If so, is there anybody who could possibly help me write such a script or atlas point me in the right direction please?
Many thanks in advance
G_DAlthough you can set or remove the Dark interface style with defaults write syntax, the reset back to default (non-dark) interface will require a log-out/log-in cycle to entirely remove the Dark style. Toggling this style on and off in the System Preferences > General panel does not require the preceding log-out disruption. Unfortunately, other than possible GUI scripting, the Apple Script dictionary in Yosemite is very limited with respect to System Preferences access, and enabling/disabling the dark interface style.
-
Enable/disable fields in Workspace form
Okay here is my scenario. I need to disable some fields on a form depending on which user logs onto workspace to open the same form.
1. User1 logs onto workspace and opens leave request form, fields at the top of the form are enabled for the user to fill out, bottom fields which are for leave request administrator to fill out are disabled but visible.
2. User1 fills out top portion of leave request form and completes form. Workflow sends form to leave request administrators "To do" list in Workspace.
3. Administrator opens up submitted form in Workspace and sees User1's filled out data on the form and the bottom fields are now enabled for administrator to approve or dissaprove. Bottom fields only include two check boxes, two text fields and one date field.
Now how is this done? I am sure their maybe scripting involved? if so what is it and at what events in the form? Is this whole process done in the form or through Admin UI or Workebench as well? Please help!!!!!!!!!Hi Rahat,
You can use the same form and enable/disable some fields according to the user's role with only little scripting. Review the steps the below:
1-First place a hidden field ("user_role") in your form
2-Insert a script object into your form onder "Variables" in object hierarchy and write a script for enabling/disabling the fields (regarding the value of "user_role")
3-On the initialize and change events of the "user_role" call your script object
4-On your process design, put a SetValue service before User tasks. In the asssignment you should set the desired user_role to the form, so that the script is triggered in your form and the fields are enabled/desiabled
Fro further needs on your form or process design you can contact us from: http://www.kgc.com.tr/company_Contact.html
Oguz
http://www.kgc.com.tr -
Enabling/disabling the 'display PDF in browser' via a script after Reader 9 is installed
So we have Reader 9 already installed on the machine, but we need a simple way that a user can click on a shortcut in the start menu to reconfigure how the PDF is opened - either from within the browser or outside of the brower.
In Reader 7, I was able to use this:
msiexec.exe /i {AC76BA86-7AD7-1033-7B44-A71000000002} Remove=ReaderBrowserIntegration /norestart /qb-!
msiexec.exe /i {AC76BA86-7AD7-1033-7B44-A71000000002} ADDLOCAL=ReaderBrowserIntegration /norestart /qb-!
which works well after the fact that Reader 7 is installed on the machine.
For Reader 9, things have changed, and have tried this:
msiexec.exe /i AcroRead.msi /qn DISABLE_BROWSER_INTEGRATION=YES
msiexec.exe /i AcroRead.msi /qn DISABLE_BROWSER_INTEGRATION=NO
The above don't work, nor if I run a repair instead of an install. I also tried to modify the HKEY_CURRENT_USER\Software\Adobe\Acrobat Reader\9.0\Originals\bBrowserIntegration then following in up with the appropriate msiexec command and that didn't work
No, asking users to go to the options and enable/disable the setting isn't ideal unfortunately as it requires too many clicks
Anybody have any suggestions on this?Try this forum:
http://forums.adobe.com/community/acrobat/acrobat_enterprise_install -
Anyone know anything about getting links to open in emails? It's as though links are just not responding.. Have tried settings/general/restrictions and enabling / disabling but to no avail.
A few more things you could try:
Settings->General->Reset->Reset All Settings...you will then have to log back into your wifi network
If you have access to your router's settings you could try changing the channel your network is on.
Try changing the password/key of your router...a bit of a pain since all other devices will have to login again but sometimes it can help with connectiviity issues.
Also, this article may help to troubleshoot your home wifi setup:
Recommended settings for Wi-Fi routers and access points - Apple Support -
Script to enable/disable audio/videotracks
Hi,
Trying this:
function SwitchOffVideoOutput (vtracks,activeSeq)
var active_seq = activeSeq;
var videotracks = active_seq.videoTracks;
alert("numTracks: "+ videotracks.numTracks);
track = vtracks.split("|");
for (i=0; i <= track.length; i++) {
alert("Switching off: "+ track[i]);
// Would like to do something like this:
// videotracks[track].enabled=false;
// videotracks[track].output=false;
// Renaming sequence from A to B
tmp = active_seq.name;
tmp = tmp.replace("_A","_B");
alert(tmp);
//active_seq.name = tmp;
SwitchOffVideoOutput ("2|3|4",app.project.activeSequence);
// But also would like to do this:
var myColl = app.project.selection;
for (i=0; i <= myColl.length; i++) {//loop through the project
alert(myColl.name)
SwitchOffVideoOutput ("2|3|4",myColl.name);
// SwitchOffVideoOutput and rename selection in Premiere ProAlthough you can set or remove the Dark interface style with defaults write syntax, the reset back to default (non-dark) interface will require a log-out/log-in cycle to entirely remove the Dark style. Toggling this style on and off in the System Preferences > General panel does not require the preceding log-out disruption. Unfortunately, other than possible GUI scripting, the Apple Script dictionary in Yosemite is very limited with respect to System Preferences access, and enabling/disabling the dark interface style.
-
Easy Switch between xorg.conf files enable disable tvout
Hello,
This is my first post on this forum, so i'am not sure were to put my post, but i think here is the best place
summary:
Easy Switch between xorg.conf files, and enable/disable startup applications. Script does this:
detect which xorg.conf file is used and then depending on which one is used do 1 or 2:
1. copy tvout.conf to xorg.conf and disable all startup applications + enable one or more startup application(s) defined in the script startupappsoff
2. copy xorg.conf.backup to xorg.conf and enable all startup applications + disable one or more startup application(s) defined in the script startupappson
I thought it would be nice to share the script i created for an easy switch between two xorg.conf files. Myself preferred to switch between two xorg files for personal need.
Beside only switching between two xorg.conf files i would like to enable/disable some startup apps, therefor i created the scripts startupappsoff and startupappson.
If you want to use these scripts, look in this code for comments, and custimize at the points A. to I. Further read the comments on top of each script.
If something is not clear or is not correct, your free to ask!
have fun!
The script to be run to switch:
tvout
#!/bin/sh
#summary: This programm switches xorg.conf file with an other and back. Also it calls the programms startupappsoff and startupappson.
#in order to get this as a command, copy this program to: /usr/bin/
#to execute without password, add: <username> ALL=NOPASSWD: /usr/bin/tvout (replace <username> with your own)
#A. this script needs to recorgnize the different xorg.conf files you want to use. So put on top of your xorg.conf files in the first line: #tvout or #original
var1=$(head -1 /etc/X11/xorg.conf)
if [ $var1 == "#original" ]
then
#B. put here the path to your own custimized xorg.conf
sudo cp /mnt/data1/Arch\ Files/xorg.conf.tvout /etc/X11/xorg.conf
zenity --info --text 'tv-out enabled, to switch press CTRL+ALT+BACKSPACE'
#C. put here the path to startupappsoff and change username
su rob /mnt/data1/Arch\ Files/startupappsoff
fi
if [ $var1 == "#tvout" ]
then
#D. put here the path to your backuped xorg.conf or second custimized xorg.conf
sudo cp /mnt/data1/Arch\ Files/xorg.conf.backup /etc/X11/xorg.conf
zenity --info --text 'tft-out enabled, to switch press CTRL+ALT+BACKSPACE'
#E. put here the path to startupappson and change username
su rob /mnt/data1/Arch\ Files/startupappson
fi
startupappsoff
#!/bin/sh
#this programm turns startup programms off and turns only the startup programms defined here on
for file in $(ls ~/.config/autostart/);
do
#switch all startup apps off
#G. change rob to your own username
sed -i 's/X-GNOME-Autostart-enabled=true/X-GNOME-Autostart-enabled=false/g' /home/rob/.config/autostart/$file
#H. switch only these startup apps on, change rob to your own username
sed -i 's/X-GNOME-Autostart-enabled=false/X-GNOME-Autostart-enabled=true/g' /home/rob/.config/autostart/appchk.desktop
sed -i 's/X-GNOME-Autostart-enabled=false/X-GNOME-Autostart-enabled=true/g' /home/rob/.config/autostart/yakuake.desktop
done
startupappson
#!/bin/sh
#this script turns all startup programms of, and only turns on the startup programms defined here:
for file in $(ls ~/.config/autostart/);
do
#switch all startup apps on
#I. change rob to your own username
sed -i 's/X-GNOME-Autostart-enabled=false/X-GNOME-Autostart-enabled=true/g' /home/rob/.config/autostart/$file
#J. switch only these startup apps off, change rob to your own username
sed -i 's/X-GNOME-Autostart-enabled=true/X-GNOME-Autostart-enabled=false/g' /home/rob/.config/autostart/xbmc.desktop
done
Last edited by Rob (2010-11-24 14:10:58)Many thanks, I am actually using your script minus the app changing script - to change my xorg from my dual screen display to a single screen display and my s-video tvout.
Now I need to tune my xorg to work, but I am trying to add the <username> ALL=NOPASSWD for the script to work without password but I do not know where to add the line and the format of the line?
Again many thanks for your script,
looking forward for your reply,
Regards -
Not null and enable or disable column in tabular form
Hi,
Using apex version 4.1 and working on tabular form.
ACT_COA_SEGMENT_MAS is Master table
and
ACT_SEGMENT_VALUES_MAS is detail table
I have entered 8 rows in master table and PARENT_SEGMENT_ID is column in master table which is null able. If i specified PARENT_SEGMENT_ID with value in master table then in detail table there is column PARENT_ID that should not be null and enable.
How i can enable or disable column when in master table PARENT_SEGMENT_ID column is null then in detail table PARENT_ID column should disable and vice versa.
I have created tabular form on Detail table. before insert into the tabular form Check in master table in first entry if PARENT_SEGMENT_ID is not null in first row of master table then in tabular form PARENT_ID should enable and not null able in corresponding to this first row id's lines in tabular form.
Same should check for second row in master table if PARENT_SEGMENT_ID is not null then entered rows with PARENT_ID into tabular form corresponding to 2nd id in master table should not nullable and column should enable in tabular form.
Thanks & Regards
Vedant
Edited by: Vedant on Jan 9, 2013 9:12 PMVedant,
You need to create you own manual tabular form and not use the wizard.
Using APEX_ITEM api you should be build you own form and you will be able to control how you wan to display the rows. (See Link [Apex Item Help|http://docs.oracle.com/cd/E37097_01/doc/doc.42/e35127/apex_item.htm#CACEEEJE] )
select case when PRIMARY_TABLE_COLUMN is null then APEX_ITEM.DISPLAY_AND_SAVE(3 , DETAIL_COLUMN ) else APEX_ITEM.TEXT(2,detail_column) end "ALIAS" from detail table
Hope that help.
Vivek -
Enabling / Disabling graphs and opening a new Front Panel Window
Hi,
I have a simple application of showing 12 analog signals on 12 different graphs placed vertically in aligned position. I have to develop a user interface so that if user wants to display signal no. 1, 4 and 6 out of total 12 signals, he should make selection using check boxes and click a re-draw button. It should result in opening a separate window with these three signals displayed as separate graphs aligned vertically and adjusted to fit window size. Similarly later user can change his selection of displaying signals (from same acquired data) say 1, 3, 5, 6, 8, 9, 11 & 12 and click Redraw button. It should result in opening a new Window showing all these signals as separate graphs which are aligned vertically and resized to fit the window. Now I have two major issues in this context.
1) I have been searching LabView help to locate a way to open a new window for this purpose but I failed to locate any way for it. As per my limited knowledge, it seems that we cannot have multiple "Front Panel" windows in Labview.
2) For the graph I could not locate a control to enable/disable a graph so that it appears or vanishes. Is there any way to achieve it?
I shall appreciate your valuable advice. I shifted from "Lab View Signal Express" to "Lab View" in order to achieve this user interface design but I am still not successful in finding a good solution for this application.
Regards
MnuetHi Mnuet,
You can do what was said above. Here is a KB on dynamically loading VIs. It looks something like this.
Dynamically loaded VIs are loaded at the point in code while running, as opposed to being loaded when the parent VI is loaded into memory like normal subVIs. You can make a reference to them and then control the front panel appearance, their run status, etc with property nodes and invoke nodes.
Jeff | LabVIEW Software Engineer -
How to disable and enable a java bean area's visability?
I have a large javabean area on my initial canvas when first dispalying my form.
When I use the SHOW_CANVAS('canvas name') to display another canvas, everything looks fine except that the javabean from my previous canvas is still visible and covering up portions of this new canvas.
So I tried using the set_property visible for the javabean area in the form and it only got rid of the surrounding edge of the javabean area.
Last I made some set_custom_property values to send to the bean that would then use java calls to enable and disable the beans visability.
But once the beans visibility was disabled in Java then it wouldn't come back after the calls to enable the visibility and refresh the bean were made through Java calls.
Is there any other ways of disabling and enabling a java bean area's visability?
Thanks,
MichelleHello,
Maybe the bean is always display because of its particular paint() method ?
Anyway, without any reflexion, I could suggest you to set the bean item width and height to 1 pixel when you don't want to display it. (Set_Item_Property)
Francois -
SP with input parameters to disable and enable indexes
I need to build a stored proc script with input paramters to disable indexes and enable indexes of specific tables.
Parameter would be tablename,schemaname,a value input which will determine if it is for disabling index or enabling index
I will have a reference table which would hold the specific tables
Below is the ddl script and sample data for reference
USE [test]
GO
/****** Object: Table [dbo].[TestingIndex] DDL Script Date: 01/27/2014 22:38:39 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[TestingIndex](
[tablename] [varchar](30) NULL,
[schemaname] [varchar](10) NULL,
[Flag] [varchar](1) NULL
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
sample data
tablename
schemaname
Flag
tableabc
abc
y
tabledef
def
y
tableghi
ghi
y
All I want to do is disable all the indexes of the tables which are present in my reference table by looping through the reference tables.
Similarly I want to do enable all the indexes of the diabled table using the reference table
Any help would be appreciated and best way to do it thinking all pros n cons.
MudassarNew code with changes
USE [TEST]
GO
/****** Object: StoredProcedure [dbo].[usp_indexes] Script Date: 1/28/2014 10:11:55 AM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [dbo].[usp_indexes1]
@ref reftable READONLY,
@input int
AS
BEGIN
---Declare variables
DECLARE @tblnm VARCHAR(30), @schnm VARCHAR(10), @flag BIT, @sql VARCHAR(MAX)
---Declare cursor
DECLARE cursor_index CURSOR
FOR SELECT tablename, schemaname, flag FROM @ref
--Open cursor
OPEN cursor_index
FETCH NEXT FROM cursor_index INTO @tblnm, @schnm, @flag
WHILE @@FETCH_STATUS = 0
BEGIN
if @input =1
BEGIN
SET @sql = 'ALTER INDEX ALL ON '+@schnm+'.'+@tblnm+' DISABLE '
print @sql
EXEC sp_execute @sql;
END
else
BEGIN
SET @sql = 'ALTER INDEX ALL ON '+@schnm+'.'+@tblnm+' REBUILD '
print @sql
EXEC sp_execute @sql;
ALTER INDEX ALL ON dbo.Test1 DISABLE
END
FETCH NEXT FROM cursor_index INTO @tblnm, @schnm, @flag
END
CLOSE cursor_index
DEALLOCATE cursor_index
END
GO
result when I execute it gives below message
(3 row(s) affected)
ALTER INDEX ALL ONdbo.Test1DISABLE
Msg 214, Level 16, State 2, Procedure sp_execute, Line 1
Procedure expects parameter '@handle' of type 'int'.
ALTER INDEX ALL ONdbo.Test3DISABLE
Msg 214, Level 16, State 2, Procedure sp_execute, Line 1
Procedure expects parameter '@handle' of type 'int'.
ALTER INDEX ALL ONdbo.Test4DISABLE
Msg 214, Level 16, State 2, Procedure sp_execute, Line 1
Procedure expects parameter '@handle' of type 'int'.
DECLARE @ref reftable
INSERT INTO @ref
SELECT * FROM testingindex
EXEC usp_indexes1 @ref,1
but when I go n check indexing status no tables have been disabled using the below query it shows still enabled
select sys.objects.name as 'table',
sys.indexes.name as 'index',
is_disabled = case is_disabled
when '1' then 'disabled'
when '0' then 'enabled'
end
from sys.objects join sys.indexes
on sys.objects.object_id = sys.indexes.object_id
where sys.objects.name in('Test1','Test3','Test4' )
below are my table schema and index script (similar for 3 tables i m using for testing)
CREATE TABLE [dbo].[Test1](
[YEAR] [varchar](10) NULL,
[MONTH] [varchar](10) NULL,
[MONTH_VAL] [varchar](10) NULL
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
USE [TEST]
GO
/****** Object: Index [NonClusteredIndex-20140128-112203] Script Date: 1/28/2014 11:23:48 AM ******/
CREATE NONCLUSTERED INDEX [NonClusteredIndex-20140128-112203] ON [dbo].[Test1]
[YEAR] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
Mudassar -
I enabled my restrictions and then disabled them succuessfully, but in the process I lost all my folders that my apps were defined into. The apps are there but the folders don't exist anymore, please help.
You may want to try restarting to see if that has any effect Turn your iOS device off and on (restart) and reset
-
I want to disable "restore previous session" and enable "History record" at the same time.
I want to disable "restore previous session" and enable "History record" at the same time.
Because I don't want others to access my account such as "Gmail", "Facebook". But I want firefox to record my browsing history.
What should I do?I managed to remove the "Restore Previous Session" button from the home page by changing my default home page with this : www.google.com/firefox/ (the default home page from the previous versions of Firefox). It worked for me, I hope it works for you too.
-
Revision: 11810
Revision: 11810
Author: [email protected]
Date: 2009-11-13 17:07:56 -0800 (Fri, 13 Nov 2009)
Log Message:
Fixing up some logic around pauseWhenHidden (there were some bugs) and also changing some logic around enabling/disabling. Also fixing a small documentation bug on VideoPlayer2.scaleMode.
When a video component (or one of its ancestors) becomes disabled, the video pauses. When it becomes re-enabled, we do not play the video. This behavior is baked in to VideoDisplay and does not depend on the pauseWhenHidden flag.
QE notes: -
Doc notes: -
Bugs: SDK-24182, SDK-24181, SDK-24193
Reviewer: Kevin
Tests run: checkintests
Is noteworthy for integration: No
Ticket Links:
http://bugs.adobe.com/jira/browse/SDK-24182
http://bugs.adobe.com/jira/browse/SDK-24181
http://bugs.adobe.com/jira/browse/SDK-24193
Modified Paths:
flex/sdk/trunk/frameworks/projects/spark/src/spark/components/VideoDisplay.as
flex/sdk/trunk/frameworks/projects/spark/src/spark/components/VideoPlayer2.asThanks Erik,
If nothing else, this huge list of updates and fixes, shows clearly that the Logic Dev team is working hard on fixing and improving LPX to a major degree.... and from the list of fixes done.. show they do read the bug reports submitted!
As an aside....
I recall how all the 'naysayers' prior to LPX (and in some cases, since...) were proclaiming how Logic was dead, the team was being disbanded, we won't see any further development, the Dev team doesn't listen or care... and so on....... I wonder where those people are now? -
Remove Enable, Disable and Delete columns from searchUser.do
Hello,
What jsp form do I need to modify to remove the enable, disable and delete columns from the searchUser.do page? I edited tjspSearchUserResultsTiles.jsp but that didn't seem to do it.
ThanksHi,
TableGenerator.jsp is the general jsp so you shouldn't modify it.You need to extend tcSearchUserAction.java class aand create a custom class.You need to over ride populateColumnHeadings and populateTableData.
I won't suggest this approach until you are very much familiar with struts development and oim classes.
Regards
Nitesh
Maybe you are looking for
-
Safari Has encountered an error and needs to close
Hi I have been having this problem with safari that right after it starts it closes due to an error (thats what it says) I really like safari and i'm waiting on my mac to get here so HELP!
-
iTunes 11.0.1.12 and Windows 7 (32 bit, latest version). iTunes crashes frequently (Windows message : "iTunes has stopped working and will be closed"). I may be trying to search for an App. or book (or anything else), trying to access iTunes store, c
-
HRMS application EBS 11.5.10.2 windows 2003 db 9.2.0.7 Under Self service Manager/My employee informatuion/salary increased amount and anulized salary field need to be rounded up. If salary is increased to $500, it is showing up as $499.99 and same w
-
At least once a month - sometimes much more frequently - I get calls from users asking why the file extension they "need" to upload to SharePoint is blocked. Most recently, it was a Microsoft Access database that the user was attempting to upload to
-
Network emulator for Linux with a good gui?
Hi all, At work I use NEWT (Network Emulator Toolkit for Windows) http://blog.mrpol.nl/2010/01/14/network - r-toolkit/ in conjunction with a packet capture tool. I would like to see if I can use Linux instead; I will use Wireshark for packet capturin