How to Set "DateOnly" property in DateTimeControl using Javascript.
How to Set "DateOnly" property in DateTimeControl using JavaScript.
Is there any specific reason you want to set it through JavaScript ? You can directly set the DateOnly property in the markup itself.
<SharePoint:DateTimeControl runat=server id="dtControl" DateOnly="true"></SharePoint:DateTimeControl>
Please can you elaborate on what exactly is the requirement for setting this through javascript?
Geetanjali Arora | My blogs |
Similar Messages
-
How to set a form element value using javascript?
Hello,
I have been using the following two functions in AS 9.0.2 to set form values in javascript and it works correctly. However, the same code does not work in AS 10.1.2.0.2. Would appreciate if someone could let me know how to set form elements using Javascript(onchange of a field).
function set_item_value(p_field_name, p_value)
var v_index, v_full_name;
for(v_index=0; v_index<document.forms[0].length; v_index++)
v_full_name = document.forms[0].elements[v_index].name.split
if (v_full_name[2] == p_field_name)
document.forms[0].elements[v_index].value = p_value;
function get_item_value(p_field_name)
var v_index, v_full_name, v_return="";
for(v_index=0; v_index<document.forms[0].length; v_index++)
v_full_name = document.forms[0].elements[v_index].name.split
if(v_full_name[2] == p_field_name)
if(document.forms[0].elements[v_index].type != "radio")
v_return = document.forms[0].elements[v_index].value;
else
if(document.forms[0].elements[v_index].checked)
v_return = document.forms[0].elements[v_index].value;
if(v_return == " ")
v_return = "";
return v_return;
Thanks
DevThis is not the best way to write JavaScript in Portal environment!
You can't be sure that a form is the first in the html source!
In Portal you change the order of your portlets, and also you can have several instances of the same portlet on the same page!!!
You should use qualified form and field names!
Please check the following JPDK methods:
UrlUtils.htmlFormName
HttpPortletRendererUtil.portletParameter -
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. -
I cannot figure out how to set my apple id to use: itunes (two of accounts), apps store and itunes store. How do I make one password that will be recognized by all these devices? My apple id is constantly not working.
Hi Lrwill,
If the apps that are on your son's iPad were purchased under his Dad's Apple ID, then signing your Apple ID onto the iPad will not help you with updating those apps.
Also, if the iPad was sync'd with his Dad's iTunes library, then hooking it up to your computer/iTunes library, will require you to reset the iPad, and everything that was loaded under the other Library and Apple ID will be wiped out.
Can you provide a little more info about what was set up under which Apple ID and what iTunes library the iPad was sync'd with?
Cheers,
GB -
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 -
How to set the full screen mode using setClip method
hi all,
how to set the full screen mode using setClip in that softkeys should not be used insteat on that need to create a own softkeys using commands.
thanks & regards
Bala.In CS5 there are changes made to how the screen mode is reported. In CS3-CS5 the screen mode has a corresponding number. So for instance if the ScreenMode is set to "Preview Off" and you ask indesign CS3 or CS4 to display the screen mode, it will report "1936552047", while in CS5 it will report "PREVIEW_OFF".
try executing this simple command in respectively CS3, CS4 and CS5 and you will see what I am talking about:
alert(app.activeWindow.screenMode);
there is no difference if you do:
alert(app.activeDocument.layoutWindows[0].screenMode);
The CS5 solution is rather awkward to work with, unless I am missing something? PREVIEW_OFF is not a string, nor is it a number.
Example - doing:
myScreenMode=app.activeDocument.layoutWindows[0].screenMode;
and then trying to reset screenMode by something like:
app.activeDocument.layoutWindows[0].screenMode= myScreenMode
does not work in CS5 of course. It will throw an error. Neither will this line work:
app.activeDocument.layoutWindows[0].screenMode=ScreenModeOptions.myScreenMode;
Any way of working around this? -
How to Set cookie in AIR with HTML/Javascript
Can someone explain or post example code as to how I can go
about setting a cookie in AIR using HTML and Javascript?
I have an AIR app that requires the user to login on a form
that lives in a non-applicationSandbox. I know how to
create/modified/delete cookies using JS and a web browser, but the
same code returns a cookie with a null value. I'm sure I'm just
missing one line/word of code to make this happen.
The stripped down basics of setting and reading a cookie
using Javascript:
document.cookie("myCookie = yummy");
var taste = document.cookie;
What am I doing wrong?quote:
Originally posted by:
anirudhs
> So if I want to use cookies in AIR html/javascript the
end user will need to have http access, whether it be from a public
or private server?
Yes.
Though I am curious to why you are using cookies to store
state on the client? This is AIR and you have access to the
filesystem, local SQLite DB, encrypted local store, etc.
Thanks for your previous answer anirudhs. Finally got a
cookie thru Air! :P
Some scenario's do require login via cookies for our webapps
(in my case, chat w/ nicks which also logs users by serverside js +
php, thereby allowing the same access method for web-browser login
to the same chat rooms). It might be a bit of a stretch for some of
us to attempt to code filesystem/SQlite/localStore updater for our
web-users via js + php, although I know we could perhaps embed a
hidden flash to do the localStore, and pass data back and forth
from js, but that's lot of extra lifting, whereas browser cookies
are naturally designed for such logins.
I'm confused by the safari wording thou.. does the webkit
security model in Air only work via user activated http (ie.
clicking links), or is there some way Air can initiate an http
connection (say using loader) to set or get cookies? It seems a
pain to need to force the Air user to click and open a dead link
just to activate a cookie session, even if it's only to a hidden
frame. -
How can I hide figures or characts. using javascript in wad report BI NW 7
Hi,
How can I hide figures or characteristics using javascript or command in wad report ( BI NW 7).
I have read the documentation for WEB API, but it doesn't provide some info on that area.
Thank you.
Edited by: Sergey Antonov on Jul 29, 2011 3:08 PMYou can use REMOVE_DRILL_DOWN in WAD to remove characteristic..to remove a keyfigure with a button you could a variable with that button, which makes an invalid selection of the keyfigure though it is 2000, e.g. set CALYEAR = 1900.
Hope it helps,
Christian -
How to get inputtext's inputvalue by using javascript
how to get inputtext's inputvalue by using javascript?
and how to judge whether its be filled or empty stringWhy do you want to use javascript..? Why not action listener..? You can check whether its an empty string by checking
if(str != null && !str.equals("")) {..}
where str is the variable for inputText value.
If this is not helpful, do provide more details on which version of JDev you are using and what are you trying (your usecase).
regards,
~Krithika -
How to validate an text field item using javascript for numbers only.
hi,
how to validate an text field item using javascript for numbers only.please help me on this urgent
please mail me solun if posible on [email protected]Hi,
Page HTML header
<script>
function onlyNum(evt) {
// Usage: onKeyPress="return onlyNum(event)"
evt = (evt) ? evt : window.event;
var charCode = (evt.which) ? evt.which : evt.keyCode;
if (charCode > 31 && (charCode < 48 || charCode > 57)) {
var status = 'This field accepts numbers only!';
alert(status);
return false;
var status = '';
return true;
</script>Item HTML Form Element Attributes
onKeyPress="return onlyNum(event)"Br,Jari -
How to Set JMS property and Read JMS property in BPEL using JMS adapter
Does any one know how to set or read more than one JMS property in BPEL using JMS adapter. My queue server is Oracle JMS server.
Any help and sample is well appreciatedHi Van
I have noted that only the attribute "type" is missing. It seems that when you create a "string" property, the attribute "type" is droped from the XML. If you use another type (as "integer" or "double") it stays there.
If you try to read your properties, except for the "type" attribute, you should be successful, as I am. If you need, please tell me your email, I can send you my code.
Source Code:
in ASSIGN activity (process which SENDS the JMS message):
<assign name="TESTES">
<copy>
<from expression="'string'"/>
<to variable="HeaderJms" part="outboundHeader"
query="/ns5:JMSOutboundHeadersAndProperties/ns5:JMSOutboundProperties/ns5:Property[1]/@type"/>
</copy>
<copy>
<from expression="'name'"/>
<to variable="HeaderJms" part="outboundHeader"
query="/ns5:JMSOutboundHeadersAndProperties/ns5:JMSOutboundProperties/ns5:Property[1]/@name"/>
</copy>
<copy>
<from expression="'value1'"/>
<to variable="HeaderJms" part="outboundHeader"
query="/ns5:JMSOutboundHeadersAndProperties/ns5:JMSOutboundProperties/ns5:Property[1]/@value"/>
</copy>
<bpelx:append>
<bpelx:from>
<Property name="" type="" value=""
xmlns="http://xmlns.oracle.com/pcbpel/adapter/jms/"/>
</bpelx:from>
<bpelx:to variable="HeaderJms" part="outboundHeader"
query="/ns5:JMSOutboundHeadersAndProperties/ns5:JMSOutboundProperties"/>
</bpelx:append>
<copy>
<from expression="'string'"/>
<to variable="HeaderJms" part="outboundHeader"
query="/ns5:JMSOutboundHeadersAndProperties/ns5:JMSOutboundProperties/ns5:Property[2]/@type"/>
</copy>
<copy>
<from expression="'name2'"/>
<to variable="HeaderJms" part="outboundHeader"
query="/ns5:JMSOutboundHeadersAndProperties/ns5:JMSOutboundProperties/ns5:Property[2]/@name"/>
</copy>
<copy>
<from expression="'value2'"/>
<to variable="HeaderJms" part="outboundHeader"
query="/ns5:JMSOutboundHeadersAndProperties/ns5:JMSOutboundProperties/ns5:Property[2]/@value"/>
</copy>
</assign>
in ASSIGN activity (process which READS the JMS message)
<assign name="Assign_1">
<copy>
<from variable="Variable_1" part="inboundHeader"
query="/ns3:JMSInboundHeadersAndProperties/ns3:JMSInboundProperties/ns3:Property[10]/@name"/>
<to variable="temp"/>
</copy>
<copy>
<from variable="Variable_1" part="inboundHeader"
query="/ns3:JMSInboundHeadersAndProperties/ns3:JMSInboundProperties/ns3:Property[10]/@value"/>
<to variable="temp"/>
</copy>
<copy>
<from variable="Variable_1" part="inboundHeader"
query="/ns3:JMSInboundHeadersAndProperties/ns3:JMSInboundProperties/ns3:Property[12]/@name"/>
<to variable="temp"/>
</copy>
<copy>
<from variable="Variable_1" part="inboundHeader"
query="/ns3:JMSInboundHeadersAndProperties/ns3:JMSInboundProperties/ns3:Property[12]/@value"/>
<to variable="temp"/>
</copy>
</assign>
Note that I do not try to read the "type" attribute, otherwise it will fail.
Here is the JMS Header Message received:
<inboundHeader>
<JMSInboundHeadersAndProperties xmlns="http://xmlns.oracle.com/pcbpel/adapter/jms/">
<JMSInboundHeaders>
<JMSCorrelationID>
bpel://localhost/pi_lms-c001e/BpelPiAtualizacaoC001E~1.0/3200025-BpInv0-BpSeq1.6-2
</JMSCorrelationID>
<JMSDeliveryMode>2</JMSDeliveryMode>
<JMSExpiration>0</JMSExpiration>
<JMSMessageID>ID:467DFA1FA1ED459EBF37F51F596C3F12</JMSMessageID>
<JMSPriority>4</JMSPriority>
<JMSRedelivered>false</JMSRedelivered>
<JMSType>com.mercurio.lms.integration.c001eip.c001EIntegrationPoint</JMSType>
<JMSTimestamp>1201552046253</JMSTimestamp>
</JMSInboundHeaders>
- <JMSInboundProperties>
<Property name="JMSXDeliveryCount" type="integer" value="1"/>
<Property name="JMSXRecvTimestamp" type="long" value="1201552046698"/>
<Property name="JMSXUserID" value="lms_dev_int_v1_user"/>
<Property name="JMS_OracleDeliveryMode" value="2"/>
<Property name="JMS_OracleTimestamp" type="long" value="1201552046253"/>
<Property name="JMS_OracleDelay" type="long" value="0"/>
<Property name="JMSXState" type="integer" value="0"/>
<Property name="IAS_VERSION" value="10.1.3"/>
<Property name="JMS_OracleDeliveryMode" value="2"/>
<Property name="name" value="value1"/> ("type" attribute was droped!!!)
<Property name="JMS_OracleTimestamp" type="long" value="1201552046253"/>
<Property name="name2" value="value2"/> ("type" attribute was droped!!!)
</JMSInboundProperties>
</JMSInboundHeadersAndProperties>
</inboundHeader>
Regards
Marcelo -
How to set photometricInterpretation property while storing TIFF using JAI?
I am converting JPG Grey Sale image in to bilevel image and saving in TIFF format with Group IV compression.
When I view the output TIFF, some applications displaying it properly and some others by inverting the image.
After a long time, I found that photometricInterpretation property is used to control this property of White_on_Black or Black_on_White in TIFF files.
In web I have found that, if we use IndexColorModel, then there is no problem. But, I am not using it and I don't know how to set color model of RenderedOp to IndexColorModel. Did anybody know it?
Is there any other way to set the PHOTOMETRICINTERPRETATION property ?
Any solution or suggestions are welcome...
Edited by: baskaraninfo on Nov 20, 2007 7:20 AMTo view the solution :
http://www.javaworld.com/javaforums/showflat.php?Cat=2&Number=70133&an=0&page=0#Post70133 -
How to set tabstops in MS Word using the LabVIEW Report Generation Toolkit
Using the Report Generation Toolkit of LabVIEW, I need to set multiple tabstops that very in distance in MS Word. I also have different sets of tabstops that I use and re-use at different times in the same report. Is there a way to set the tabstops under program control? I searched through the various VIs and found that there is a property ("Tabstops", "Word.Tabstops") in the _ParagraphFormat property node that refers to tabstops. I found it in the Word Format Paragraph (adv) VI. Unfortunately, I could not determine how to use it. Any suggestions? Is this an operational element?
Bluebell,
Sounds like you've already done some fantastic work to expose the various properties and methods of MS Word. It took me about 20 min before I could find the specific property that you were talking about! I found it under Word.Document>>Paragraphs>>Tabstops>>Add. There is a position, alignment and leader parameter that you can set from this property node. I've found that the best way to discover what these parameters do is to simply experiment. You could also try using the macro recorder in Word, perform the specific task, and then look at the code generated. I'm guessing that position sets the position of the tabstop itself. It sounds like your application is really specific. For such a specific task, I think I'd write a macro and call that macro from LabVIEW.
Chris Cilino
National Instruments
LabVIEW Product Marketing Manager
Certified LabVIEW Architect -
How to set MQ message header properties using JMS adapter? (10.1.2)
Hello,
I am trying to send MQ messages from a BPEL process. We are using OAS 10.1.2 and JMS MQ adapter. Could you please let me know how to set the message descriptors like message format, type, report and reply to queue properties and queue open options (in jmsAdapterOutboundHeader).
Regards,
Geratayyaput something like this
<activationAgents>
<activationAgent className="oracle.tip.adapter.fw.agent.jca.JCAActivationAgent" partnerLink="PARNERLINKNAME">
<property name="clusterGroupId">SOMEUNIQUEVALUE</property>
<property name="portType">PARTNERLINK_PORTTYPE</property>
</activationAgent>
</activationAgents> -
How to set cursor property from "snap-to-plot" to free?
dear all,
is there any one know how to set a cursor property from "snap-to-plot" to "free"?
this cursor is in a XY graphy
i couldn't find coresponding property in the XY graph property node
thank you
JackIt looks like there are different property names depending on your labview version.
You need to select the ActCrsr and then use the Cursor.Lockstyle property in LV7.1
You need to select the ActCrsr and then use the Cursor.CursorMode property in LV8.2.
Maybe you are looking for
-
Need help to install and launch adobe reader XI and accept the ender license agreement
I do not know where to select accept launch adobe reader ender license agreement on a macbook pro
-
How to insert a new step type into a submenu?
Hi! I'm inserting a step type into the MyTypes.ini file with c++. With the code below I managed to put it into a menu (in the step type menu editor it is called "Group"). But I want a sub menu. How can I put it into a sub menu (in c++)? Who can help
-
IPhoto sharpenss parameter - Jean Paul Ker Rault ( Today 10:41 am) I am using iPhoto 5.0.4 (263) but when I use the modofication tool, the sharpness parameter (Neetness, Clearness???) is not save when I am changing of photo. All other modified parame
-
A 'Hidden article' in the finished content
Is there a way of hiding an article? I'd like to have a 'bonus' story in the folio but I don't want to be able to qwipe to it, only 'click' on it and the user will be taken to that article. I've hidden it from the contents (like an advertsiment) and
-
Analog conference phone on digital PBX?
It won't work on a DIGITAL line, but most Digital PBX had options for analog ports, and you can swap into that port just like you were hanging a fax line.