Design for enable/disable subtab links
Hi All,
I have 4 subtabs, after submit button clicked, then the second tab should be enabled and thrid, fourth should be still disabled.
I have code to disable/enable subtab in PR (webBean only can be modified in PR) as following:
OALinkBean pubSubTabLink =
(OALinkBean) webBean.findChildRecursive("PubSubTabLink");
if(pubSubTabLink != null)
pubSubTabLink.setDisabled(brand);
My issue is, when I capture submit button event in PFR, then I'm trying to redirect same page (setForwardURLToCurrentPage) PR to enable second subtab but all info on first tab are gone. I did retain AM when using setForwardURLToCurrentPage.
Is there any way I can keep my first tab text info?
If not, any suggestion to disable/enable subtabs?
Thanks & Regards,
KJ
Hi All,
It was my fault. Got it work now.
When I redirect to PR, it also calls my page initialization method and clear all data. I added a parameter and issue resolved.
Thanks & Regards,
KJ
Similar Messages
-
Can we disable subtab link?
Hi All,
From dev's guide, there is a way to hide subtab using hideSubTab(). But is there a way we can keep all subtabs (then user know how many subtabs there) but limit user to go other subtabs util some conditions are valid?
Thanks & Regards,
KJHi Tapash,
Thanks for the solution and it works!!
Here is my code in processRequest()
OALinkBean pubSubTabLink =
(OALinkBean) webBean.findChildRecursive("PubSubTabLink");
if(pubSubTabLink != null)
pubSubTabLink.setDisabled(true);
Another question is, how do I enable it from AM? My idea is, create couple AM instance variables as flags (I have total 4 subtabs). For each form submitted (action fired), processFormRequest will check this instance variable to decide either enable or disable the subtab link. Is this a right approach?
Thanks & Regards,
KJ -
Enable disable linkbar links in datagrid itemrenderer.
Hi All,
I have to show the linkbar in datagrid column as a renderer and enable and disable the links according to attached documents codes.
here are my sample code
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="init();">
<mx:Script>
<![CDATA[
import mx.collections.ArrayCollection;
[Bindable]
public var arrColl:ArrayCollection = new ArrayCollection();
public function init():void{
arrColl.addItem(["1,2,3","1,2"]);
arrColl.addItem(["1,2,3", "1,3"]);
arrColl.addItem(["1,2,3","1,2"]);
arrColl.addItem(["1,2,3", "1,3"]);
arrColl.addItem(["1,2,3","1,2"]);
arrColl.addItem(["1,2,3", "1,3"]);
arrColl.addItem(["1,2,3","1,2"]);
arrColl.addItem(["1,2,3", "1,3"]);
arrColl.addItem(["1,2,3","1,2"]);
arrColl.addItem(["1,2,3", "1,3"]);
arrColl.addItem(["1,2,3","1,2"]);
arrColl.addItem(["1,2,3", "1,3"]);
arrColl.addItem(["1,2,3","1,2"]);
arrColl.addItem(["1,2,3", "1,3"]);
arrColl.addItem(["1,2,3","1,2"]);
arrColl.addItem(["1,2,3", "1,3"]);
arrColl.addItem(["1,2,3","1,2"]);
arrColl.addItem(["1,2,3", "1,3"]);
arrColl.addItem(["1,2,3","1,2"]);
arrColl.addItem(["1,2,3", "1,3"]);
arrColl.addItem(["1,2,3","1,2"]);
arrColl.addItem(["1,2,3", "1,3"]);
arrColl.addItem(["1,2,3","1,2"]);
arrColl.addItem(["1,2,3", "1,3"]);
arrColl.addItem(["1,2,3","1,2"]);
arrColl.addItem(["1,2,3", "1,3"]);
arrColl.addItem(["1,2,3","1,2"]);
arrColl.addItem(["1,2,3", "1,3"]);
arrColl.addItem(["1,2,3","1,2"]);
arrColl.addItem(["1,2,3", "1,3"]);
arrColl.addItem(["1,2,3","1,2"]);
arrColl.addItem(["1,2,3", "1,3"]);
arrColl.addItem(["1,2,3","1,2"]);
arrColl.addItem(["1,2,3", "1,3"]);
arrColl.addItem(["1,2,3","1,2"]);
arrColl.addItem(["1,2,3", "1,3"]);
arrColl.addItem(["1,2,3","1,2"]);
arrColl.addItem(["1,2,3", "1,3"]);
arrColl.addItem(["1,2,3","1,2"]);
arrColl.addItem(["1,2,3", "1,3"]);
arrColl.addItem(["1,2,3","1,2"]);
arrColl.addItem(["1,2,3", "1,3"]);
arrColl.addItem(["1,2,3","1,2"]);
arrColl.addItem(["1,2,3", "1,3"]);
arrColl.addItem(["1,2,3","1,2"]);
arrColl.addItem(["1,2,3", "1,3"]);
]]>
</mx:Script>
<mx:DataGrid id="dg" dataProvider="{arrColl}" width="200" height="500" x="510" y="168" >
<mx:columns>
<mx:DataGridColumn itemRenderer="assets.components.linkbarItemRenderer" />
</mx:columns>
</mx:DataGrid>
</mx:Application>
My item renderer linkbarItemRenderer.mxml as
<?xml version="1.0" encoding="utf-8"?>
<mx:HBox xmlns:mx="http://www.adobe.com/2006/mxml" width="100%" height="100%" creationComplete="init();" >
<mx:Script>
<![CDATA[
import mx.controls.LinkButton;
import mx.collections.ArrayCollection;
import mx.controls.Alert;
[Bindable] public var arrColl : ArrayCollection = new ArrayCollection();
public var arrDocType : ArrayCollection = new ArrayCollection([{data:"1" , label:"AP"},{data:"2" , label:"AR"},{data:"3" , label:"BOL"}]);
public var attDoccodes : Array;
public function init():void
try
var requiredDoc :String = data[0];
var attachDoc : String = data[1];
var reqDocCodes :Array = requiredDoc.split(",");
attDoccodes = attachDoc.split(",");
if(reqDocCodes != null)
//add the links of required documents.
for(var i:int = 0 ; i<reqDocCodes.length; i++ )
var obj:Object = new Object();
for(var j : int = 0; j < arrDocType.length; j++)
if(arrDocType.getItemAt(j).data == reqDocCodes[i])
obj.label = arrDocType.getItemAt(j).label;
obj.data = reqDocCodes[i];
arrColl.addItem(obj);
callLater(enableDisalbeLinks);
catch(error:Error)
Alert.show("error ::"+error.getStackTrace());
public function enableDisalbeLinks():void
try
//disable all links first
for(var q:int=0; q< arrColl.length; q++)
LinkButton(linkBarId.getChildAt(q)).enabled = false;
if(attDoccodes != null)
for(var k:int = 0; k<attDoccodes.length; k++)
for(var l:int = 0 ; l<arrColl.length; l++)
if(arrColl.getItemAt(l).data == attDoccodes[k])
LinkButton(linkBarId.getChildAt(l)).enabled = true;
catch(error:Error)
Alert.show("error ::"+error.getStackTrace());
]]>
</mx:Script>
<mx:LinkBar id="linkBarId" dataProvider="{arrColl}" />
</mx:HBox>
It renderes the link in correct form in datagrid first time.when i scroll the datagrid the rows are miss up with each other and links are not shown propers in enable/disable format.
Thanks,
Amol.Hi All,
It was my fault. Got it work now.
When I redirect to PR, it also calls my page initialization method and clear all data. I added a parameter and issue resolved.
Thanks & Regards,
KJ -
Enable/Disable a link based on a column value
Hi Team,
I am Using Jdev 11.1.1.5.0.
I have a link button named 'register'on first page by clicking on to which will navigate to next page where i will get the option of selecting for the courses through checkboxes.
When all the checkboxes are checked by clicking on the submit button i am able to update the checkboxes value in the backend and able to navigate to the first page.
I can count that all the checkboxes are checked.
My requirement is if all the checkboxes are checked i wanted to disable the register button other wise keep it as enable.
The data on the first page and second page are joined using a view link.
the data on the first page contains employee records and the data on the second page contains record for the courses selected for the corresponding employee.
Please let me know what is the correct approach for it.
Kindly guide me in it.
Thanks,
AjayWhich scope is the bean defined in?
You can put the bean in pageFlowScope. This way it can be accessed from both pages. Now you implement a method in the bean which returns the count or better a method which make the decision if all check boxes are checked and returns true if yes and false otherwise.
The signature of the method looks like
public boolean isAllChecked()
// calculate if all marks are checked
return true;
}and in your page you access the method on the disabled property like
<af:commandButton text="commandButton 1" id="cb1"
disabled="#{pageFlowScope.YUOT_BEAN.allChecked}"/>Timo -
Java script problem for enabling & disabling textboxeswhencheckbox is check
hiii,
the checkboxes are generating in a for loop.beside the checkboxes
the textboxes are akso generating.
suppose
checkboxes per amount
\--\ nssf [------] [------]
\--\ TAPw [-----] [------] tapw[------]
\---\ HRA [----] [------]
\----\ XYZ [-----] [------]
here there are 4 checkboxes generating in a loop.
also 4 textboxes of per generating in one loop
4 text boxes of amount generating in one loop
the tapw textfirld is an individual one and it is having the text box name as 'tapw'
here the condition is if i check the check box the textboxes behind them should be enabled ,otherwise disabled.
that is coming.
but i also want that tapw should be enabled if the checkbox behind the TAPW is checked.
here one important thing is the TAPW can't be always in 2nd position
first if the person doesn't check the nssf,it may be in 1st position or it may be in 3rd position like that.
but that tapw textbox (individual)will always be generated besides the TAPW textbox.
can u tell me how to identify that one and how i can get enable if that checkbox is checked.hioooooo,
am i correct now
<html>
<head>
<title>Test Page</title>
<script language="Javascript">
checkForm.T1.disabled = true;
checkForm.T2.disabled = true;
checkForm.T3.disabled = true;
checkForm.T4.disabled = true;
function setTextBox(check, row, totalbox)
var tick = !check.checked;
for( var k=1; k<= totalbox; k++)
var ctl = "T" + k;
checkForm[ctl][row].disabled = tick ;
if( k == 2 ) break;
if( totalbox == 3)
var ctl = "T" + 3;
checkForm[ctl].disabled = tick;
</script>
</head>
<body>
<form name="checkForm">
<div align="center">
<center>
<table border="0" cellpadding="0" cellspacing="0" width="60%">
<tr>
<td width="18%"><input type="checkbox" onclick="Javascript:setTextBox(this, 0, 2)" name="C1" value="ON"></td>
<td width="31%"><input type="text" name="T1" disabled value="AAA1" size="20"></td>
<td width="31%"><input type="text" name="T2" disabled value="AAA2" size="20"></td>
<td width="20%"></td>
</tr>
<tr>
<td width="18%"><input type="checkbox" onclick="Javascript:setTextBox(this, 1, 3)" name="C1" value="ON"></td>
<td width="31%"><input type="text" name="T1" disabled value="BBB1" size="20"></td>
<td width="31%"><input type="text" name="T2" disabled value="BBB2" size="20"></td>
<td width="20%"><input type="text" name="T3" disabled value="BBB3" size="20"></td>
</tr>
<tr>
<td width="18%"><input type="checkbox" onclick="Javascript:setTextBox(this, 2, 2)" name="C1" value="ON"></td>
<td width="31%"><input type="text" name="T1" disabled value="CCC1" size="20"></td>
<td width="31%"><input type="text" name="T2" disabled value="CCC2" size="20"></td>
<td width="20%"></td>
</tr>
<tr>
<td width="18%"><input type="checkbox" onclick="Javascript:setTextBox(this, 3, 2)" name="C1" value="ON"></td>
<td width="31%"><input type="text" name="T1" disabled value="DDD1" size="20"></td>
<td width="31%"><input type="text" name="T2" disabled value="DDD2" size="20"></td>
<td width="20%"></td>
</tr>
</table>
</center>
</div>
</form>
</body>
</html>AE -
Keyboard shortcut for enabling/disabling wallpaper autochange
I wasjust wondering if there would be a way to create an Automator script, that runs a Terminal command, which enables or disables the automatic change of wallpapers in OS X? If yes, how would this Terminal command look like?
I've never heard of such a feature in Reader. Are you sure this is the application you're using on both computers?
-
When I make my HP Recovery Disc it will not work..
Can you please send me a recovery disc for my Notebook..
as soon as possible.When I make my HP Recovery Disc it will not work..
Can you please send me a recovery disc for my Notebook..
as soon as possible. -
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 -
Hide/show or enable/disable report column
Hi,
I m using Oracle Apex4.0
I m having an interactive report which has a cloumn with Link provided to it.
I want to enable/disable the linked cloumn for certain records or else the link column can ba hidden/shown for certain records.
How can it be done?Hi,
Did you look at the Denes example ? It looks as good solution for you.
Is your report in format like this ?
col_1 col_2 col_link
col_1 - column1
col_2 - column2
col_lnk - column with link
in the link there is some redirection to detail page where you can provide update ?
the link should contains record ID. correct ?
The only possibility in your case is Denes or some other simple solution. (case solution)
It should be good if you reproduce it on apex.oracle.com
We can provide more help to you in there.
Regards
J :D -
Enable/Disable buttons in Portal.
How are buttons in EP 2004s enabled/disabled? Not in the toolbar but in the iViews. Such as Account Sales Area, we had a button "Additional Sales Areas" enabled, but now it has become grayed out.
Is the enabling/disabling of buttons a PCUI issue that needs to be handled through DynPro or SPRO, or an authorizations issue that needs to be handled in the CRM backend system?
In this particular scenario the "Additional Sales Areas" button is also disabled in the GUI, but there are others such as a "print" button where it is only disabled in the PCUI.
Any help with this or documentation on how to enable buttons would be much appreciated.
Thanks!Buttons are coming from the PCUI applications, check out the following weblog
People-Centric User Interface (PCUI) - Getting Started...
'The Book' contains all the details. For enabling/disabling the buttons either you can change in the blueprint tables or use the blueprint application builder.
Check out the CRM forum you will get all the details -
How to create "Verbose mode" (Enable/disable trace output)?
Hi there! I'd like to do as Papervision:
// Block Papervison3D trace output
Papervision3D.VERBOSE = false;
that is, a global variable for enabling/disabling the trace outputs of my own program. I come up with creating
a class and putting a static boolean member variable. But there is something I'm not sure about: How to use
it...
For example: every time I need to do a trace, would I have to put this ? -->
if( MyClass.VERBOSE ) trace("whatever");
So it isn't needed to instance the object because a static variable is used. That's the way, isn't it?
Thanks and regads.From the book I'm reading, the author uses it the same way you're saying:
Inside your Classes, you have
private var _verbose:Boolean = false;
I noticed he uses it always (or almost) in the constructor of the classes:
public function whatever (var:*, verbose:Boolean);
//I tend to use verbose:Boolean = false on the constructor too so you don't have to always set it.
inside the constructor you have:
_verbose = verbose;
and normaly inside methods handling events like Event.OPEN, Event.INIT, IOErrorEvent.IO_ERROR, HTTPStatusEvent.HTTP_STATUS, you have something like this:
private function onOpen (e:Event):void {
if (_verbose) {
trace("The loading process has begun, or whatever"); -
OIM ICF Connector Framework - Enable Disable Method
Hi ,
I am currently working on developing custom OIM connector using ICF Framework , I am trying to create an adapter for application user enable disable . I am not sure about which method gets called to disable the user .
Do I need to write a seperate disableUser Method in the connector code , currently have methods for Create , Update and delete , do I need to write 2 more methods for Enable Disable of users.
I belive th UpdateOP interface is called during the disable / enable process .
any help would be much appreciated.
Cheers
EaswaranI'm getting the same error when it runs update user to add child values:
Thread Id: 125 Time: 2013-02-22 09:24:53.204 Class: org.identityconnectors.framework.api.operations.UpdateApiOp Method: update Level: OK Message: Exception:
java.lang.NullPointerException: Parameter 'uid' must not be null.
This is the attribute map that get's passed in. unixids are the child values.
Thread Id: 125 Time: 2013-02-22 09:24:53.202 Class: org.identityconnectors.framework.api.operations.UpdateApiOp Method: update Level: OK Message: Enter: update(ObjectClass: __ACCOUNT__, null, [Attribute: {Name=unixuids, Value=[sdfasdfasd]}], null)
Here is my what my schema looks like for if it helps:
<ObjectClassInfos>
<ObjectClassInfo type='__ACCOUNT__' container='false' embedded='false'>
<AttributeInfos>
<AttributeInfo name='unixuids' type='String'>
<AttributeInfoFlag value='MULTIVALUED'/>
</AttributeInfo>
<AttributeInfo name='__NAME__' type='String'>
<AttributeInfoFlag value='REQUIRED'/>
<AttributeInfoFlag value='NOT_UPDATEABLE'/>
</AttributeInfo>
</AttributeInfos>
</ObjectClassInfo>
</ObjectClassInfos>
How did you fix your problem?
Edited by: DJ on Feb 22, 2013 9:58 AM -
Server2003, enable / disable user login via powershell
Hi all,
Newbie, in Africa for short time only and probably haven't done all the homework I should have.
Unix and OO background but just learning powershell.
I need to be able to enable / disable local user accounts on a local server in a school; no clusters, pretty much stand-alone. I presume if I can get the user object it has a member / method for enabling / disabling, but I don't understand how to get
the user object. In particular, I don't understand the two-character abbreviations used in front of params to queries.
If I bring up active directory users and computers, what I see is:
techna-school
Tech/na school
Students
The users I want to enable/disable are members of the "Students" group above, and for RDP / security purposes are members of the "Learners" group. The server is not in any "official" (i.e. DNS recognized) domain, just gets
net access as a normal user via dialup and DHCP.
I'm guessing I need something kinda like the following to get at the user objects, but I haven't a clue what the "ou", "dc", or anything else needed are supposed to be as I don't have an MS server background.
$learners = [ADSI] "LDAP://ou=Learners,dc=techna-school"
Any help would be much appreciated.
Thanks,
GaryFrom the sounds of it, you have domain accounts not local accounts. The difference is domain accounts can log onto any machine within your domain, whereas local accounts can only log onto the local machine they where created on. Since your users are using
thin clients, it is most liekly a domain account they are using.
For using AD cmdlets on Server 2003, you need some things in place, this article might help you
Thanks for the info and pointer.
I'm a little leery of going through that process as I don't have a test system to work on, but I appreciate the pointer; may delve into that later.
In the meantime, I've managed to get the user objects using Get-WmiObject, but an attempt to modify them via Set-WmiInstance fails:
$learners = Get-WmiObject -query "Select Name,Disabled From Win32_UserAccount"
foreach ($learner in $learners) {
Set-WmiInstance -InputObject $learner -Argument @{Disabled=$True} -PutType UpdateOnly
Set-WmiInstance : Invalid Object
Seems pretty straight-forward so I suspect it is a simple error but I'm not seeing it. -
Revision: 10269
Author: [email protected]
Date: 2009-09-15 10:46:10 -0700 (Tue, 15 Sep 2009)
Log Message:
Changing default for -enable-runtime-design-layers to true. The flag may still be used to disable processing of design layer instances if so desired.
QE notes: None
Doc notes: None
Bugs: SDK-23238
Reviewer: Paul
Tests run: Checkin
Is noteworthy for integration: Yes, runtime design layers are now enabled by default.
Ticket Links:
http://bugs.adobe.com/jira/browse/SDK-23238
Modified Paths:
flex/sdk/trunk/frameworks/tests/basicTests/BasicTests-config.xml
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/common/CompilerConfiguration.javaAPDivs are a thing of the past and is bad practice. You need a working knowledge of CSS to get a modern looking layout and to do justice to your design which looks great btw.
One out-of-the-box solution is to use Bootstrap - http://twitter.github.com/bootstrap/index.html and use the pre-defined classes/ grids to layout your content. -
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
Maybe you are looking for
-
Error please help!!! Internal failure error no.:0x80040707
I only just got an ipod nano and when i put the disc given with the ipod on the computer this comes up: Internal failure Error Number : 0x80040707 Description: Then this comes up: Ipod for windows 2005-09-23 Access is denied Some one help please!!
-
Wrong due date on vendor invoices
Hi SAP Gurus, I am facing one issue in due date calculation for Vendor open item. I have maintained terms of payment in vendor master data in which invoice due date should be 30 days after invoice generation. But this terms of payment is not picked
-
Deleting parent record with child instances
Is there a way i can delete records from the database when i have one of the columns being used in other tables. Eg: m_id used in tables meter ( Primary key ) and period_meter( foreign key) and site_area_meter (foreign key). I want to delete record w
-
IPhone doesn't display iPhone is activated after restore
I restored my phone and also when updating it doesn't display iPhone is activated
-
Files saved at 72 ppi are showing up on user computer at 96ppi
I am completely baffled by this one, so if anyone can help me figure it out it would be greatly appreciated. I'm creating an html email to send from an application called Vertical Response. I created a photoshop document at 72ppi and did the designs