How to Hide f:subview using javaScript
Hi
In our application i have to hide and show the subview using javascript is it possible i tried like this.. but its not working
<f:subview id="viewid" >
// view contents
</f:subview>
In java script
document.getElementById("viewid").style.visibility="hidden";
Any suggestion to me..
Regards
Hari
The f:subview doesn't render anything to the response. You should know that if you have checked the rendered HTML source.
Wrap its contents in a h:panelGroup and give it an ID. And don't forget to adapt the clientside Javascript language on the clientside HTML source, not on the serverside JSF source.
Similar Messages
-
The situation:
I want to use basetext font, but some of the glyphs are missing in it, and are highlighted with pink boxes. common font [stix, etc.] have much more glyphs than basetext font. I can apply common font [stix, etc.]manually for each of the missing glyphs or insert two character and use kerning set it up, but it is tedious.
Question:
How find the missing glyph using javascript [like indesign preflight], and replace same glyph available font or insert two character and use kerning set it up?
Any one know how to do this?
Thanks in Advance,
~JackTry Peter kehrl's script
http://www.kahrel.plus.com/indesign/missing_glyphs.jsx -
How to hide repeated details using SQL Query?
How to hide repeated details using SQL Query?
For Ex:
------------------------+
DEPTNO| ENAME | JOB |
------|-------| --------|
10 | JAMES | MANAGER |
10 | BLAKE | CLERK |
10 | FORD | SALESMAN|
20 | SCOTT | MANAGER |
20 | ADAMS | CLERK |
20 | KING | SALESMAN|
------------------------+
How we can display the above details in the following way?
------------------------+
DEPTNO| ENAME | JOB |
------|-------| --------|
10 | JAMES | MANAGER |
| BLAKE | CLERK |
| FORD | SALESMAN|
20 | SCOTT | MANAGER |
| ADAMS | CLERK |
| KING | SALESMAN|
------------------------+
Thanks AdvanceHi,
you can use BREAK ON DEPTNO in SQL*Plus or use LAG.
SQL> ed
Wrote file afiedt.buf
1 select nullif(department_id
2 , lag(department_id) over (partition by department_id order by last_name)
3 ) dept_id
4 , last_name, job_id
5* from employees where department_id in (30,50) and rownum <=10
SQL> /
DEPT_ID LAST_NAME JOB_ID
30 Baida PU_CLERK
Colmenares PU_CLERK
Himuro PU_CLERK
Khoo PU_CLERK
Raphaely PU_MAN
Tobias PU_CLERK
50 Fripp ST_MAN
Kaufling ST_MAN
Vollman ST_MAN
Weiss ST_MAN
10 rows selected. -
Want to hide command bottun using javascript
Hi,
I want to hide command bottun using javascript when form load
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Add/Edit CD details</title>
<script type="text/javascript" src="Test.js"></script>
<script type="text/javascript" src="datetimepicker.js"></script>
<script type="text/javascript">
*function hideDeleteButton(){*
if(document.forms['editForm'].elements['editForm:cd_number'].value="")
document.('viewForm:deleteEntry').style.visibility = "hidden";
</script>
</head>
*<body onLoad="hideDeleteButton(),document.getElementById('editForm:cd_title').focus();">*
<f:view>
<h:form id="editForm" onsubmit="return validateDate()">
<b><p align="center">CD Management</p></b>
<% if(session.getAttribute("supervisor")==null)
response.sendRedirect("../index.faces");
%>
<table width="100%">
<tr><td valign="top" >
<h:panelGrid columns="8">
<h:commandLink id="com1" value="CD management" action="#{CDBean.getAllCDs}" title="CD management" immediate="true"/>
<%if(session.getAttribute("supervisor")!=null && session.getAttribute("supervisor").toString().equals("Y")){%>
<h:outputText value="||" id="use1r"></h:outputText>
<h:commandLink id="Users" value="Users account" action="#{usersBean.viewAllAccounts}" title="Users account" immediate="true"/>
<%} %>
<h:outputText value="||" id="use13"></h:outputText>
<h:commandLink id="pas" value="Change password" action="#{changePasswordBean.changePassword}" title="Change password" immediate="true"/>
<h:outputText value="||" id="us2er"></h:outputText>
<h:commandLink id="com2" value="Log out" action="#{logoutBean.logout}" title="Log out" immediate="true">
</h:commandLink>
</h:panelGrid>
</td>
<td valign="top" align="right" title="Logged in||<%=session.getAttribute("username") %>">Logged in||<font color="green"><%=session.getAttribute("username") %></font></td>
</tr>
</table>
<hr>
<b><h:outputText value="#{viewCDBean.form_title}"/></b><br><br>
<div id="no"><h:outputText id="nocd" value="#{viewCDBean.cd_number}"/></div>
<h:panelGrid columns="3">
<h:outputText id="output112"/><h:inputHidden id="cd_number" value="#{viewCDBean.cd_number}"></h:inputHidden><h:outputText id="output117"/>
<h:outputText id="output1" value="Title"/><h:inputTextarea id="cd_title" value="#{viewCDBean.cd_title}" rows="2" cols="40" required="true"></h:inputTextarea><h:message for="cd_title" style="color:red"/>
<h:outputText id="output2" value="Contents"/><h:inputTextarea id="cd_contents" value="#{viewCDBean.cd_contents}" rows="2" cols="40"></h:inputTextarea><h:outputText id="output18"/>
<h:outputText id="output3" value="License key"/><h:inputText id="license_key" value="#{viewCDBean.license_key}" size="50"></h:inputText><h:outputText id="output19"/>
<h:outputText id="output4" value="Vender company"/><h:inputText id="vendor_company" value="#{viewCDBean.vendor_company}" size="50"></h:inputText><h:outputText id="output20"/>
<h:outputText id="output5" value="Vender name"/><h:inputText id="vendor_name" value="#{viewCDBean.vendor_name}" size="50"></h:inputText><h:outputText id="output21"/>
<h:outputText id="output6" value="Vender contact no"/><h:inputText id="vender_contact_no" value="#{viewCDBean.vender_contact_no}" size="50"></h:inputText><h:outputText id="output22"/>
<h:outputText id="output7" value="Remarks"/><h:inputTextarea id="remarks" value="#{viewCDBean.remarks}" rows="2" cols="40"></h:inputTextarea><h:outputText id="output23"/>
<h:outputText id="output8" value="Added by"/><h:inputText id="entered_by" value="#{viewCDBean.entered_by}" readonly="true"></h:inputText><h:outputText id="output24"/>
<h:outputText id="output9" value="Last modified by"/><h:inputText id="last_updated_by" value="#{viewCDBean.last_updated_by}" readonly="true"></h:inputText><h:outputText id="output25"/>
<h:outputText id="output10" value="CD/DVD"/>
<h:selectManyListbox id="cd_dvd" styleClass="selectOneMenu" required="true" size="1" value="#{viewCDBean.CD_DVD}">
<f:selectItem itemValue="" itemLabel="DVD" />
<f:selectItem itemValue="0" itemLabel="CD" />
</h:selectManyListbox>
<h:message for="cd_dvd" style="color:red"/>
<h:outputText id="output11" value="License/Open source"/>
<h:selectManyListbox id="license_or_open_source" styleClass="selectOneMenu" required="true" size="1" value="#{viewCDBean.license_or_Open_source}">
<f:selectItem itemValue="1" itemLabel="License" />
<f:selectItem itemValue="0" itemLabel="Open source" />
</h:selectManyListbox>
<h:message for="license_or_open_source" style="color:red"/>
<h:outputText id="output12" value="Serial key"/><h:inputTextarea id="serial_key" value="#{viewCDBean.serial_key}" rows="2" cols="40"></h:inputTextarea><h:outputText id="output28"/>
<h:outputText id="output13" value="Purchase date"/>
<t:inputCalendar id="purchase_date" value="#{viewCDBean.purchase_date}"
renderAsPopup="true" renderPopupButtonAsImage="true" popupButtonImageUrl="cal.gif" title="pick a date"
alt="pick a date" popupDateFormat="dd-MMMM-yyyy">
<f:convertDateTime type="date" dateStyle="default" pattern="dd-MMMM-yyyy"/>
</t:inputCalendar>
<h:outputText value="(dd-mmm-yyyy)" id="purchase_date2" style="color:red"/>
<h:outputText id="output14" value="Purchase price"/><h:inputText id="purchase_price" value="#{viewCDBean.purchase_price}"></h:inputText><h:message for="purchase_price" id="output30"/>
<h:outputText id="output15" value="Status"/><h:inputText id="status" value="#{viewCDBean.status}"></h:inputText><h:outputText id="output31"/>
</h:panelGrid>
<table>
<tr>
<td> </td>
<td> </td>
<td><%if(session.getAttribute("supervisor")!=null && session.getAttribute("supervisor").toString().equals("Y")){%>*<h:commandButton value="Delete" id="deleteEntry" action="#{CDBean.deleteFromCDMaster}" onclick="return insure()" />* <h:commandButton value="Submit" action="#{CDBean.modifyDetail}"/> <%}%></td>
<td><h:commandButton value="Cancel" action="#{CDBean.getAllCDs}" immediate="true" onclick="setDateFieldBlank()"/></td>
</tr>
</table>
</h:form>
</f:view>
</body>function hideDeleteButton(){
if(document.forms['editForm'].elements['editForm:cd_number'].value="")
document.z('viewForm:deleteEntry').style.visibility = "hidden";
This script will not work -
How reset Acrobat form field using javascript API
How reset Acrobat form field using javascript API
There are several ways:
resetForm(["Text1"]);
or
getField("Text1").value = getField("Text1").defaultValue;
George -
How to get SharePoint Groups using Javascript in SP2013 ?
How to get SharePoint Groups using Javascript in SP2013 , not JSOM please
Here is the code that worked for me:
<script type="text/javascript">
var requestUri = _spPageContextInfo.webAbsoluteUrl + "/_api/web/sitegroups";
var requestHeaders = { "accept" : "application/json;odata=verbose" };
$.ajax({
url : requestUri,
contentType : "application/json;odata=verbose",
headers : requestHeaders,
success : onSuccess,
error : onError
function onSuccess(data, request){
var s='';
for (var i = 0; i < data.d.results.length; i++)
s +=data.d.results[i].LoginName+'\n';
alert(s);
function onError(error) {
alert("error");
</script> -
I know nothing about javascript and all that ive been using so far has been stuff ive found on here (thank you everyone).
Using the action builder seems like its gonna be very tedious to do since i have so many subforms that hide, would it be esier to use javascript?I know nothing about javascript myself but I just created a form with about 10 different subform that show or hide depending on what the user chooses from a drop down list and I used Action Builder. If we don't know javascript, how can we use it? But Action Builder did a fine job of hiding/showing wherever I needed it. And Action Builder can do more than one thing by clicking that + sign when you are building an action.
For instance, I needed to place a button in each subform that would close both the field that the person was working in and also the subform on the next page where the information was going into floating fields in a text block that was only visible thru a drop down list text select. I could have never figured out how to do that based on my knowledge of javascript. Thank Adobe for including Action Builder in this version of LiveCycle and I use it all the time. I find it extremely easy to use but it takes a little mental training to think thru the steps of how you can use the menu in Action Builder to make your form do what you need it to do.
And if all else fails, ask this forum. I struggle for just so long before I come here and ask for help. I always get the answer I need. I hope you will too.
Good luck,
Jeanette -
How can I call actionListener using JavaScript
Dear Programmers
I have to use javascript in order to call a specific actionListener when a window is close. Therefor I inserted the following code to the jsp:
<script type="text/javascript">
window.onunload = function(){......};
</script>
But how can call a specific actionListener? I saw that I can use submit(), but this method doesn't perform any actionListener. I didn't find where the actionListener is specified after doing "view source" on the browser.
Please help meHello,
I think you can do this:
<h:form id="formId">
<h:commandButton id="buttonId" actionListener="..." />
Then you can call:
document.forms.formId['formId:buttonId'].click();
to invoke the action listener. If you don't want to display the commandButton on screen, you may apply a css style to hide it.
Billy -
How to disable the ribbon using javascript
when open a PDF document using acrobat X, there is a Tool ribbon in the top right side (there is also a comment ribbon and share ribbon), how to disable or remove the Tool ribbon using javascript?
I try to use app.listToolbarButtons() and app.hideToolbarButton(...) but not working.
Any ideas?Not possible.
-
How to call a url using javascript
Hi friends
Iam a newbie i have a requirement
i have to call some n number of URL using javascript i have all my url in one table .... i have to call all the url from that table ... and the output of the url should be saved in a flat file...The output of the url is in XML format... can any one please suggest me in doing my task ... and one more thing in which tool can i run the javascript coding...please give me ur suggestion and idea how it can be done ....
My URL for example ll be like this as shown below wen i run this url it ll give me an XML format output
HTTP://www.myserver.com/ev_api.action?user_id=<username>l&password=<password>&statevar=history&cutoff=<date>&id=<id>
Thanks in advance
Thilibanthilib wrote:
In this OTN is there is javascript forum can please give me the link for it
Thanks
thilibJust to rephrase Walter's reply: there is no javascript forum in OTN! -
How to manipulate pdf files using javascript in action wizard
Respected all ,
I am a software programmer from india and i want to make a programe which can do below described things :
I want to know that how can i achive this kind of steps using javascript in acrobat XI :
for ex. if i have 4 pdf files : 800123-001.pdf , 800123-002.pdf and 800555-001.pdf , 800555-002.pdf
then i want to do using javascript
step 1 : pdf to ps , output should be : 800123-001.ps , 800123-002.ps , 800555-001.ps , 800555-002.ps
step 2 : ps to pdf (acrobat distiller ) : 800123-001.pdf , 800123-002.pdf , 800555-001.pdf , 800555-002.pdf
step 3 : pdf merge : 800123.pdf - > which contains both : 800123-001.pdf and 800123-002.pdf
and 800555.pdf -> which contains both : 800555-001.pdf and 800555-002.pdf
----------END------------
Is it possible using javascript in acrobat or any other way ?i can not access adobe site .. can you plz replay me on my personal e
mail.. [removed personal contact info, please send a forum message instead]
On Wed, Jun 19, 2013 at 1:16 AM, Test Screen Name
Message was edited by: sinious -
How to set readOnly property using javascript
Hi Folks,
How do I make an inputtext readOnly using javascript?
I have tried the following
var textComp = AdfPage.PAGE.findComponent("textId");
textComp.setProperty('readOnly', 'true');
var textComp = AdfPage.PAGE.findComponent("textId");
textComp.readOnly = true;
var textComp = AdfPage.PAGE.findComponent("textId");
textComp.setAttribute('readOnly', 'true');None of the above works. Any idea?
Thanks
Vishalhttp://docs.oracle.com/cd/E12839_01/apirefs.1111/e12046/oracle/adf/view/js/component/rich/input/AdfRichInputText.html#getReadOnly__
Get function for attribute for 'readOnly'. This attribute is secured. You may get it, but you may not set it. Any changes to this attribute will not be transmitted to the server.
Setting readOnly inputText value using javascript. -
How to give dropdownlist validation using javascript
I have a sharepoint list, In that list i have a dropdown field,in that field i have values <--select-->,ram, raj like this, when user selected the <--select--> value and then click on savs button, it has to show the validation message like user
need to select the value like that,using javascript or jquery i need to validate that.Hi ,
add the following code in by editing page.
<script src="http://code.jquery.com/jquery-1.11.2.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function () {
$("input[value='Save']").click(function(){
var value = $("select[title='dropdown column name'] option:selected").text();
if(value!="1"){
alert(value);
return false;
https://social.technet.microsoft.com/Forums/security/en-US/4cd9429a-2261-4446-87d4-188ad10ae6c1/how-to-put-validation-in-sharepoint-list-item-for-dropdown-value-that-user-cannot-jump-from-first-to?forum=sharepointdevelopment
http://sharepoint-2010-world.blogspot.in/2013/11/validate-dropdownlist-using-jquery.html
Regards,
Rajendra Singh
If a post answers your question, please click Mark As Answer on that post and Vote as Helpful
http://sharepointundefind.wordpress.com/ -
How to hide the field using internalname or directly without using SPD
Hi there,
I like to customize my form and hide some fields using the InternalName; it would be great if you can provide me tips / instructions.
PS: I dont have SharePoint Designer access; so please provide suggestions without using SPD 2010
Thanks
DMlvYou can do it using jquery based on Title attribute of the field by adding content editor webpart on the form and writing your jquery there. Will that be fine with you ?
If yes below are the pointers
http://social.msdn.microsoft.com/Forums/sharepoint/en-US/50aa6f8d-f742-4400-82f3-7949ab1c215e/need-help-manipulating-form-fieldsrows-using-jquery?forum=sharepointdevelopmentprevious#802d9d4d-c19b-4752-a4fb-e38f40f50c51
http://ptsharepoint2010.blogspot.in/2010/04/hide-fields-from-newformaspx-and.html
http://sachinvkatkar.blogspot.in/2013/02/hide-fields-from-sharepoint-newform.html
Geetanjali Arora | My blogs | -
How can I set CameraRAWOpenOptions using Javascripts in Photoshop CS6?
I have been unable to set CameraRAWOpenOptions in scripts that worked fine for me in Photoshop CS5 but now do not work in Photoshop CS6. There are no error messages when I run the scripts, and they appear to finish okay, but the images come out unadjusted. Below is the essence of how I'm trying to do it. When I run these scripts in Extendscript (CS5 or CS6 does not make a difference), Photoshop CS6 simply uses its own default (saved) settings, but CS5 would allow the overrides. I did change the default settings in CameraRAW in CS6 to use the default lens correction profiles available from the EXIF data, and I'm wondering if that rendered the script unable to change any of the rest of the settings.
Here's how I have the code:
var RawOptions = new CameraRAWOpenOptions;
RawOptions.settings=CameraRAWSettingsType.CUSTOM;
RawOptions.exposure=+2.00;
RawOptions.vignettingAmount = 0;
RawOptions.vignettingMidpoint = 0;
RawOptions.contrast = 50;
RawOptions.saturation = 0;
RawOptions.shadows = 0;
RawOptions.luminanceSmoothing = 0;
var JPGopts = new JPEGSaveOptions;
JPGopts.quality = JPEGquality;
//Perform the loop through the files
app.open(testListing[0], RawOptions, false);
app.activeDocument.close(SaveOptions.DONOTSAVECHANGES);
for (var nfile = nstart; nfile < nstop; nfile++)
app.open(testListing[nfile], RawOptions, false);
FnameSave = new File(SavePath+"/"+testListing[nfile].name);
app.activeDocument.saveAs(FnameSave, JPGopts, false, Extension.UPPERCASE);
app.activeDocument.close(SaveOptions.DONOTSAVECHANGES);I would collapse and expand the toolbar windows by using the double arrow icon?
Doing this will almost give you your full screen?
Or you can hit 'Tab' and it hides your tools when you don't need them?
Maybe you are looking for
-
My contact setting is default for Netherland and want to resync with *228 but because of I'm not active account holder with Verizon, they can't reset it for me. I bought it from other people and I checked the ESN , its clean one with no contract. Wha
-
Fb50 - document type is not appearing
Dear all, what is the procedure to view fb50 document type it is not appearing in production server development server i can view that document type please guide Thanks & Regards, satishkumar.m
-
Page not found error - Session Termination
Hi We are using SSL termination at web dispatcher (version 720 - patch 85). The link is like User < https> WD < http> Consumer Portal <https> WD <http> Producer Portal <https> WD <http> Backend ABAP system MSS > team > performance management and when
-
Can we modify a query to add negative sign '-' in one field ?
Hi All, I have created a query from SQVI by linking VBRK and VBRP. I know we cannot delete tables from the query but can we add a negative sign to all the quantities when the type is 'RE' in query ? Thanks, Vimal
-
Material which give the features VC CE7.1
Hello all, can anybody share the material which give the features VC CE7.1, or any links related to it. looking forward for your reply. Thanks in advance. Santhosh Guptha N.