How to make a presentation tabular readonly based on a value of element
Hello worldI'm getting there, but I need to make a tabular presentation read-only based on a value of element.
I copied it somewhere (thank you) and changed to my needs and it works very well set the second column in my form
read-only.
var els = jQuery('#Entry_Form input[name="f02"]');
/*var r = confirm("els is " + els);*/
els = els.filter(function(index){
return jQuery(this).val() != "";
});
Just need to set the selector jQuery jQuery ("td [headers = 'PRODUCT_NAME']"), cos that's my name of the column.you will also need to give a static id of the registration form to the form.
I'll try to understand what this code means exactly one of these days, but now I need to do
the entire shape in a read-only table based on a text element: P5_CONTROL.
Grateful for any help on this matter, in the format above, if possible. Greek to me but compact and it works.
Kind regards.
Leckraj
Hello
in fact, it has no code, just a dynamic action. You may need to change the event that triggers the it.
Event: change
Selection type: Elements (s)
Product (s): P1_ED
Condition: equals
Value: D
Real Action 1
Action: disable
Fire when the Page loads: Yes
Selection type: jQuery Selector
jQuery Selector: entry [id ^ = 'f']
Real Action 2
Action: disable
Fire when the Page loads: Yes
Selection type: jQuery Selector
jQuery Selector: entry [id = "check-all-rows"]
False Action 1
Action: activate
Fire when the Page loads: Yes
Selection type: jQuery Selector
jQuery Selector: entry [id ^ = 'f']
False Action 2
Action: activate
Fire when the Page loads: Yes
Selection type: jQuery Selector
jQuery Selector: entry [id = "check-all-rows"]
Best regards, Garry
Tags: Database
Similar Questions
-
How to navigate to the next page based on the value returned by the method call inside the action attribute of the command key.
I use JDeveloper 12.1.2.0.0
< af:button id = "tt_b2".
rendered = "#{attrs.nextRendered} '"
partialSubmit = 'true '.
action = "#{attrs.backingBean.nextAction} '"
Text = "next".
Disabled = "#{attrs.nextDisabled}" / >
private static final String NEXT_NAVIGATION_ACTION = "controllerContext.currentViewPort.taskFlowContext.trainModel.getNext";
public String nextAction() {}
If (validate()) {}
updateModel();
Return NEXT_NAVIGATION_ACTION;
}
Returns a null value.
}
Use case is made for model train, which is being implemented based on this blog: http://javacollectibles.blogspot.co.UK/2014/10/ADF-train-template.html
We define a generic action following in the model, but the action must be called under certain conditions, based on the question of whether all validation controls had been passed on no.
You can do this in two ways:
1 returnValue = (String) ADFUtils.invokeEL("#{controllerContext.currentViewPort.taskFlowContext.trainModel.getNext}");
return returnValue;
2.
public String getNextTrainStop() {}
String nextStopAction = null;
ControllerContext controllerContext = ControllerContext.getInstance ();
ViewPortContext currentViewPortCtx = controllerContext.getCurrentViewPort ();
TaskFlowContext taskFlowCtx = currentViewPortCtx.getTaskFlowContext ();
TaskFlowTrainModel taskFlowTrainModel = taskFlowCtx.getTaskFlowTrainModel ();
TaskFlowTrainStopModel currentStop = taskFlowTrainModel.getCurrentStop ();
Terminus of TaskFlowTrainStopModel = taskFlowTrainModel.getNextStop (currentStop);
nextStopAction = nextStop.getOutcome ();
_logger.fine ("train, next stop:"+ nextStopAction ");
Return nextStopAction;
}
-
How to make a Flash swf file. start only after all other elements are on the DW page?
Sorry if I'm posting in the wrong forum. I didn't know if I should be here or in the forum of Dreamweaver. Just trying to figure out how to make a Flash swf file. start only after all other elements on the page have been downloaded. Is that what you would do in Flash through publication settings, or this would be finished in Dreamweaver?
You are welcome. I just checked and there is an onLoad parameter you can use in the BODY tag to ignite a javascript function. I hope that's what this implies, that it is.
-
How to make a UI component according to a specific value
Hi all
I use jdev 10.1.3.4 and built a small BC ADF / JSF application.
I try to make a (selectmanylistbox) user interface component based on a value of another component of the user interface which is represented by an attribute of the session bean.
I've implemented a class ' / public class OnPageLoadBackingBeanBase implements PagePhaseListener ' and extended my grain of this class support, as described by Duncan Mills.
More on I have replaced the "onPagePreRender" method and tried to get the value of a component of user interface by its getter and set made with this method of getter.setrendered (...) within the support bean (scope of application). In addition, I call "AdfFacesContext.getCurrentInstance () .addPartialTarget (this.getPanelGroup2 ()) ' but I don't know if it's really necessary.
After a post (postback) it works but not during the initial appeal of this page. It looks like that user interface components are not accessible by their getter and setter at the moment?
Is someone has any idea how to get it.
Thanks for the tips.
Ralf
Published by: user11987218 on February 15, 2010 07:34Hello
Why don't you use EL on the property of 'making' component UI and make reference to the attribute of the session bean. If so, it returns the value false, then the component is not rendered
Frank
-
How to make object view transitional Readonly/editable based on the role?
Hello
I have an edibable based on the connected or requriment overview to display data of transient object view read-only in the user role. It is updated to display object, we can define security at the level of the entities properties and therefore we can control access to the data. If it's the transitional view object how can we do this?
I use ADF11g.
Very urgent! I appreciate your help.
Thank you.Hello
You can override the method isAttributeUpdateable() of the viewRowImpl.
There, you can check the role and return true or false to the current attribute.if(!hasRole && i ==YOURATTRIBUTEINDEX){ return false; }
Gabriel.
-
To change the size of the composition to the edge cutting limits the objects in the scene.
I know that it has the function "REGION of INTEREST".
But this is not automatic as in Photoshop, which has the «TRIM...» »
There may be a script somewhere out there, but not otherwise.
Mylenium
-
How to highlight a cell IR report based on a value in another column?
I used the code below and the cell is highlighted for all use column formatting css #COLTOHIGHLIGHT #add to pageBut what I need is if the HIDDENCOL is 'OUT' value and Custom2 should apply if the HIDDENCOL has value 'IN' then custom1 should apply. How to do? Please help thanks loly
Sinduja Sivasailam wrote:
Thank you for your contributions. I understand the concern.
As suggested, I've reproduced the problem in the environment of the APEX.
Thanks for making the effort. I suggest the following approach, which is more flexible and allows a more efficient use of the separation of concerns as above. I created an example on a new page to illustrate this.
1. change the report query to
select jan , feb , mar , jan_st , feb_st , mar_st from project_status
2. in the report, set the month columns to display text and status columns to be hidden.
3. set the property Expression of HTML for each column of months to use a HTML
data
attribute to include metadata status as well as the displayed value:#JAN#
4. create a dynamic action after Refresh on the IR region to retrieve the status of project code in the columns of months and apply it as a class to the cell of report element:
Event: After refresh
Selection type: Region
Region:
Real Actions
Sequence: 10
Action: Run the JavaScript Code
Fire on Page load: Yes
Code
$('.a-IRR-table td [data-prj-status]').each(function () { var x = $(this); x.parent().addClass(x.data('prjStatus')); });
5 Add a style sheet to the page of Inline CSS property with a rule to set the background color of cell as required for each State of the project:
.a-IRR-table tr:hover td { opacity: 0.7; transition: opacity .1s } .a-IRR-table td.REQ, .a-IRR-table tr:hover td.REQ { background-color: #ff9; } .a-IRR-table td.INP, .a-IRR-table tr:hover td.INP { background-color: #cf9; } .a-IRR-table td.YTS, .a-IRR-table tr:hover td.YTS { background-color: #ccf; } .a-IRR-table td.CR, .a-IRR-table tr:hover td.CR { background-color: #f66; } .a-IRR-table td.COM, .a-IRR-table tr:hover td.COM { background-color: #9cf; }
-
How to redirect to assets or form based on the values of database search
We try to use the database search to determine if a visitor to our Web site already filled out a form. When they click on an asset (such as a white paper link), we want to use a database search to check if they filled out a form (we are check on the email address and a specific to all our forms required field). If the database search returns a value, then they are addressed to the asset. If the data query appears empty, they are directed to a form. Did anyone tried something like this? I'm interested in how you generated JavaScript code to activate.
This sounds like the standard "true" eloqua gated form technology, using the eloqua (hidden method, short and long term) cookie-driven. For years, it was only substance without papers and seller and don't has not been fully supported by the tech line. Now it is wide open information here: http://eloqua.blogspot.com/2010/06/gated-forms-asking-for-just-right.html
This gives a whirl and come back here with all the problems that I have built many of them.
-
How update the column in the table based on the value selected in apex4.1
Hi all
I have the following tables,
and it has the values as follows,leave_type table,it has the following fields, 1.emp_name, 2.sick 3.casual
leave_master table and it includes the following fieldsemp_name sick casual guru 10 10 mishra 10 10
I have the form based on the table "leave_master"1.emp_name, 2.leave_type 3.no_of_days
Here, the leave_type has the LOV which includes.
sick and casual.
When the form is filled out and clicked on the button submit,
I need to update the column leave_type in table leave_type,
for example,.
then I want to update the leave_type column,if emp_name:guru leave_type:sick no_of_days:3
sick sick = - no_of_days for the 'guru' of name
That is to say, ill = 10-3 = 7
then the leave_type of the table must be,
someone can such me what code or method I can use?emp_name sick casual guru 7 10 mishra 10 10
Thank you.
Published by: Gurujothi on May 24, 2012 21:54
Published by: Gurujothi on May 24, 2012 21:54Try something like this...
BEGIN
IF: PXX_LEAVE_TYPE = "Sick" THEN
UPDATE LEAVE_TYPE
THE PATIENT VALUE = SICK -: PXX_NO_OF_DAYS
WHERE EMP_NAME =: PXX_EMP_NAME;
ON THE OTHER
UPDATE LEAVE_TYPE
DEFINE CASUAL = CASUAL -: PXX_NO_OF_DAYS
WHERE EMP_NAME =: PXX_EMP_NAME;
END IF;
COMMIT;
END; -
How to make a variable in the main app available in the element converter
I have a variable in my main application.
public var accessLevel:String;
I have a spark list that uses a custom converter. How to access the value of accessLevel in my element converter?
You can use outerDocument/parentDocument or FlexGlobals.topLevelApplication
-
I have 5 items installed on my laptop, but I have problems with video card. It is by default the generic driver, and I can not launch the elements to make a proper backup of my files. I get a message that it requires a screen of 1024 x 768 or greater than 256-color resolution, I can not do. I can access my photos very well via Windows Explorer, but I would back up the tags as well (several tags on 6000 + photos) so I have to either find a way to start in low resolution, so I can do a normal backup with elements, or I need to find the files that store the tags, so I can move it to a new pc when I reinstall. Any help would be greatly appreciated.
That you think is NOT the right file.
Now, you did say that you had already chosen a different name for your catalog - so I have concluded that you are using the default name. Therefore, my suspicion is that you have not set the Windows options to Show hidden files , or that you have not set the search options to include hidden files.
You can make the setting for show hidden files from either Windows Explorer or the control panel screen. In Windows XP Windows Explorer, I think he was in the Tools menu select Folder Options and then choose the view tab scroll down to hidden files and folders and click the circle (button) next to show hidden files and folders.
Then, since I gave you a full path to the folder, you can't really search you can simply expand the hierarchy of folders using Windows Explorer to find the folder
C:\Documents and Settings\All Users\Application Data\Adobe\Catalogs
Try this approach and then post back with your results.
-
How to disable a user interface messageCheckBox based on the value of the parameter system?
Hello
I implement a messageCheckBox on the UI, and I need, it is not not editable if a system parameter was set to Yes and editable if the defined system parameter or not. Is this feasible? The syntax to use? I think to put it in the field 'Disabled' for the checkBox control.
Very much appreciate your comments.
Thank you!Hi Michelle,
What you mean by system setting. If is the value of say certain attribute VO should first read the value of the attribute of the VO.
and create a transitional attribute in the same VO and set the property accordingly.
The syntax is ${oa. VewInstanceName.ViewAttributeName}
Thank you
-Anil -
Conditional display of one article based on another value of element
Hi all
I have an element (say 'objects') with a static list of values. Depending on the value selected in this article, I needed another element of selection list to display.
For example: 1st selection list item = items (Job, Name, ID)
2nd selection list item tool = list of values for the selected object (list of names if 'Name' is selected in the 1st item in the selection list)
So, for the 2nd selection list item should I create separate LOVs for each job, Name, ID?
How can I achieve this?
Please help me.
Thanks in advance
8f4692cc-040e-48EE-B102-590cdd4303fc wrote:
Please update your forum profile with a real handle instead of '8f4692cc-040e-48ee-b102-590cdd4303fc '.
I have an element (say 'objects') with a static list of values. Depending on the value selected in this article, I needed another element of selection list to display.
For example: 1st selection list item = items (Job, Name, ID)
2nd selection list item tool = list of values for the selected object (list of names if 'Name' is selected in the 1st item in the selection list)
So, for the 2nd selection list item should I create separate LOVs for each job, Name, ID?
How can I achieve this?
Use the built in support of the LOV cascading by converting static LOVs in dynamic LOVs based on SQL queries:
Question of LOV1:
select 'Job' lov_label, 'JOB' lov_value from dual union all select 'Name', 'NAME' from dual union all select 'ID', 'ID' from dual
Question of LOV2:
select name lov_label, name_pk lov_value from names where :LOV1 = 'NAME' union all select job, job_pk from jobs where :LOV1 = 'JOB' union all select id, id_pk from ids where :LOV1 = 'ID'
-
Hide elements based on other values of elements
How to hide items (for example, af:commandButton) when I change the value of another element (e.g. af:selectOneChoice)Set the visible property for your button to an expression that is evaluated to true/false selection LOV from.
don't forget to set the auto submit to true for your LOV and partial trigger for the button. -
How do I delete an article based on the value of another field
I have a pdf form that I added to the text fields. My challenge is that of the financial section of the form, if the value of a specific field is empty or null, I blank block of signature financial review. I've been trying to find a way to cover the area of signature with a white box or have a text box with signature block text appear or disappear depending on whether the value is zero or empty.If seen many answers on how to make the field itself disappear based on value, but I did find something that causes another field or shape appear or disappear depending on the value of another field.
Please try the following script,
var signid = true;
If (this.getField("finan").value! = 0) signid = true;
of another signid = false;
If (SignID) this.getField("signaturefield").display = display.visible;
else this.getField("signaturefield").display = display.hidden;
Please let me know if it solves the problem.
Maybe you are looking for
-
How can I get rid of my desktop icon after installing Firefox 8.0.1?
How can I get rid of my desktop icon after installing Firefox 8.0.1?
-
Need info on compatible cd/rw drives for Satellite Pro 6100
Hellocan someone tell me the readers of cd/rw compatible for a 6100 sat pro that I can't find it on the toshiba web siteany help would be appreciated Can anyone help?
-
LabVIEW program works on a single computer, but does not work on another.
We have a laptop running a custom data acquisition program that has been done with labview by an external company. It communicates via ethernet with a box full of material national instruments that is connected to some sensors. While it works fine on
-
I have windows xp pro, no problems because I work or surf then the BAM it freezes. HA he just did as I was typing.ctrl, alta anddel at the same time not unfreeze me must turn off to the tower. Please help its driving me crazy. THX
-
From 4 days ago, my wife (Vista Home Premium) laptop started BSoD repeatedly. We have not updated all the drivers recently (but who knows what performed auto-updates). It restarted 4 times that night and each time it seemed to come as soon as she t