Index or alphabetization on a form
Hello and thank you, is there a way to index or alphabetize entry's on a page that is written in Adobe?
So i decided to partition the index as well.
Problem 1)
If I decided to parition locally by user_id, 1 to 1
mapping. But i don't think there is any increase in
performance (i have not try yet) as i am searching by
user_id, every partition in the index or table will
still be read by oracle. You mean create a local index on user_id? A local index is more appropriate if you have other predicates which prune your queries down to selected partitions. Performance, and whether the optimizer will use it in the first place, will depend on how selective user_id is.
Problem 2)
If i decided to partition the index globally, i can
only do it by range, again it would be useless as my
userid is in the form of [email protected]
Global index partition by range (or hash) can still be quite useful for queries via user_id, again depending on how selective user_id is.
My developer want to do a select last10 purchase
record from purchase table where useR_id =
[email protected];
and smoetimes they will do
select * from purchase where purchase_id = 12345; Sometimes only? It's unclear what your subpartitioning actually is - you could try subpartitioning by purchase_id, plus partitioned (global?) index on user_id? Or vice versa.
It all depends on what your priority queries are, for now. You also need to keep in mind the purging requirements as the table grows bigger in future.
Similar Messages
-
How to get the index of subform in dynamic Forms??
We are creating a Dynamic Form in which there is a field "PAN number" in a block. With the Script, we are replicating the blocks. Suppose there are 10 blocks (hence 10 PAN number fields will be there) and if the user wants to enter the PAN number in any of the blocks, how can we get the index of the block on which a value has been entered?
Are you sure you are using JTree? (I couldn't find a method named getIndex at all!)
As I couldn't quite understand what you are getting at, one thing that would be helpful is if you refer to "How to use Trees" in The Java Tutorial:
http://java.sun.com/docs/books/tutorial/uiswing/components/tree.html -
Undefined index error in checkbox update form
Hi!
i have a problem with my update form
Notice: Undefined index: accepte_oiseaux in C:\wamp\www\weziwezo\voiturier\mod_vehicule.php on line 96
Notice: Undefined index: accepte_chien in C:\wamp\www\weziwezo\voiturier\mod_vehicule.php on line 97
i need to display checkbox checked if "checked=\"checked\"";} = 1
here is my code
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="right">Accepte oiseaux:</td>
<td><input type="checkbox" name="accepte_oiseaux" value="" <?php if (!(strcmp($row_rsRecupAuto['accepte_oiseaux'],1))) {echo "checked=\"checked\"";} ?> /></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="right">Accepte chiens:</td>
<td><input type="checkbox" name="accepte_chien" value="" <?php if (!(strcmp($row_rsRecupAuto['accepte_chien'],1))) {echo "checked=\"checked\"";} ?> /></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="right"> </td>
<td><input type="submit" value="Mettre à jour l'enregistrement" /></td>
</tr>
thank you for your helpIt is a Notice, saying that $row_rsRecupAuto array has no "accepte_oiseaux" element in it.
Simpler terms: there is no $row_rsRecupAuto["accepte_oiseaux"],
which might be important or unimportant in your case.
Where is $row_rsRecupAuto coming from? If from a database, check if you are pulling the correct fields.
PHP notices are not fatal errors, and can be ignored if necessary and if your code works as expected.
You can suppress notices by altering the php.ini or just put this code at the top of the page:
<?php
error_reporting(E_ALL ^E_NOTICE);
?> -
Trouble with E-Mail button on a form designed in ES
I installed an form with an e-mail button but af
ter I posted the form to the intranet the button does not work at all within Adobe Rea
der 9.0. I have set the form to submit as a PDF and the control type as Submit. I read in another post the I can download the LC Reader Extension but for the life of me, I cannot find it.
Please help.Hi,
The problem is that your form is not Reader Enabled, so users with Reader cannot save the form. This is required for a 'submit as PDF' button.
You could change the submit type to 'submit as XML', which will work in a form that has not been Reader Enabled. You would then need to import the XML back into the form when you receive responses. This is probably the least expensive route.
LC Reader Extensions is a server product and there are additional costs involved in enabling a form through LC Reader Extensions. You should contact your local Adobe rep or check out here: http://www.adobe.com/uk/products/livecycle/readerextensions/
You can reader enable a form in Acrobat Standard (v9 or above) or using Acrobat Professional (v8). However there are licensing restrictions. See EULA.
I have a summary of deployment options here, which shows what features are available in your form depending on what the user has, whether the form is enabled, and how it was enabled.
http://www.assuredynamics.com/index.php/category/portfolio/deploying-forms-in-acrobat-and- reader/
Hope that helps,
Niall -
Hello All
Is it possible to pass variable from a html textbox to a JSP? but they both are in the same page.
For this purpose, I have a created a index.html, which contain two frames, top.html and bottom.jsp. There is a textbox in the top.html, it collects 2 variables and use form action "POST" to call bottom.jsp to display a graph.
However after I run this page on Tomcat, it gave me error message in the bottom.html:
The server encountered an internal error () that prevented it from fulfilling this request.
Can anyone teach me how to solve this problem? Thanks a lot
Viola
index.html
===============================
(FRAME) top.html
<form action="bottom.jsp" method="post">
<input type="text" name="apple">
<input type="text" name="orange">
===============================
(FRAME) bottom.jsp
String apple = request.getParameter("apple");
String orange = request.getParameter("orange");
use those two variables to do something
and display a graphThe problem is that both pages are loaded @ the same time so when the getParameter gets executed the parameters are null and this is the probable cause of your error. Another problem is the action in form will cause the bottom to go into tops frame and not have anything to do with the other frame. If you want data to go from one frame to another while the user still sees them look @ DHTML, JavaScript and IFrames.
HTH,
J.Clancey -
Error in opening the PDF file created from the smart form output.
Hi All,
i have a simple smart form which takes 3 values like customer no, name and no of times customer called and gives an out like
Customer 0001000000 with name Ravi called 5 times today.
I have to send this output to mail as an attachment.
for this i am coding as below.
******Call the SSF Function module
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = Form name
VARIANT = ' '
DIRECT_CALL = ' '
IMPORTING
fm_name = lv_fmname
EXCEPTIONS
no_form = 1
no_function_module = 2
OTHERS = 3
lv_partner_number = '0001000000'.
lv_name_org1 = 'Ravi'.
lv_z_no_calls_day = '5'.
lw_ctrlop-getotf = 'X'.
lw_ctrlop-no_dialog = 'X'.
lw_compop-tdnoprev = 'X'.
lw_compop-tddest = 'LP01'.
*******Call the Form Function module and get the OTF of form output
CALL FUNCTION lv_fmname
EXPORTING
name_org1 = lv_name_org1
partner_number = lv_partner_number
z_no_calls_day = lv_z_no_calls_day
control_parameters = lw_ctrlop
output_options = lw_compop
user_settings = ' '
IMPORTING
job_output_info = w_return
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
i_otf] = w_return-otfdata[.
*********Now here if i look in to the OTF data i got in debug it has the data i aniticipated along with some other data.
the output is in the format
TDPRINTCOM(2) TDPRINTPAR(70)
ST XXXX.. customer 0001000000 with
name.....
i have my data in the above format spread in three lines of the output otf table where XXXX... is some number.
***********To convert to PDF Format
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
format = 'PDF'
max_linewidth = 132
IMPORTING
bin_filesize = lv_len_in
BIN_FILE =
TABLES
otf = i_otf
lines = i_tline
EXCEPTIONS
err_max_linewidth = 1
err_format = 2
err_conv_not_possible = 3
err_bad_otf = 4
OTHERS = 5
*********For testing purpose i created a file on the desktop with the the data in i_tline. it created PDF file but when i tried to open it it's giving an error.
i_objtxt = 'test with pdf-Attachment!'.
APPEND i_objtxt.
DESCRIBE TABLE i_objtxt LINES v_lines_txt.
READ TABLE i_objtxt INDEX v_lines_txt.
wa_doc_chng-obj_name = 'Smart Form'.
wa_doc_chng-obj_descr = 'Frequent Caller Alert_Day'.
wa_doc_chng-doc_size = ( v_lines_txt - 1 ) * 255 + STRLEN( i_objtxt ).
*********Creating the Entry for the document
CLEAR i_objpack-transf_bin.
i_objpack-head_start = 1.
i_objpack-head_num = 0.
i_objpack-body_start = 1.
i_objpack-body_num = v_lines_txt.
i_objpack-doc_type = 'RAW'.
APPEND i_objpack.
i_objbin] = i_tline[.
DESCRIBE TABLE i_objbin LINES v_lines_bin.
READ TABLE i_objbin INDEX v_lines_bin.
i_objhead = 'Frequentcaller list_Day.pdf'.
APPEND i_objhead.
************Creating the entry for the attachment.
CLEAR : i_objpack.
i_objpack-transf_bin = 'X'.
i_objpack-head_start = 1.
i_objpack-head_num = 1.
i_objpack-body_start = 1.
i_objpack-body_num = v_lines_bin.
i_objpack-doc_type = 'PDF'.
i_objpack-obj_name = 'ATTACHMENT'.
i_objpack-obj_descr = 'FCA'.
i_objpack-doc_size = v_lines_bin * 255 .
APPEND i_objpack.
CLEAR i_reclist.
i_reclist-receiver = 'mail id'.
i_reclist-rec_type = 'U'.
APPEND i_reclist.
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = wa_doc_chng
put_in_outbox = 'X'
commit_work = 'X'
TABLES
packing_list = i_objpack
object_header = i_objhead
contents_bin = i_objbin
contents_txt = i_objtxt
receivers = i_reclist
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
operation_no_authorization = 4
OTHERS = 99.
This is all i am doing.
It is sending a mail with the attachment but we are not able to open the attachment. it's giving an error like file is damaged and couldn't be repaired.
I serched in the forum but i couldn't get the answer.
I suspect there is a problem in getting the OTF data..
Please help me in resolving this issue....
Thanks in advance.
RKCheck the sample , and see where you made the mistake.
REPORT ZPDF_MAIl.
DATA:
w_fm_name TYPE rs38l_fnam,
w_bin_filesize TYPE i,
w_filesize TYPE i,
w_lines_txt TYPE i,
w_lines_bin TYPE i.
DATA:
wa_ctrlop TYPE ssfctrlop,
wa_outopt TYPE ssfcompop,
wa_objhead TYPE soli_tab,
wa_buffer TYPE string,
wa_doc_chng TYPE sodocchgi1.
DATA:
BEGIN OF t_mail_ids OCCURS 0,
mailid TYPE ad_smtpadr,
END OF t_mail_ids,
t_otfdata TYPE ssfcrescl,
t_otf TYPE itcoo OCCURS 0 WITH HEADER LINE,
t_pdf_tab TYPE tline OCCURS 0 WITH HEADER LINE,
t_objpack LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE,
t_objtxt LIKE solisti1 OCCURS 0 WITH HEADER LINE,
t_objbin LIKE solisti1 OCCURS 0 WITH HEADER LINE,
t_record LIKE solisti1 OCCURS 0 WITH HEADER LINE,
t_reclist LIKE somlreci1 OCCURS 0 WITH HEADER LINE.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = 'Z195_TEST'
IMPORTING
fm_name = w_fm_name
EXCEPTIONS
no_form = 1
no_function_module = 2
OTHERS = 3.
IF sy-subrc EQ 0.
ENDIF. " IF sy-subrc EQ 0.
wa_ctrlop-getotf = 'X'.
wa_ctrlop-no_dialog = 'X'.
wa_outopt-tdnoprev = 'X'.
CALL FUNCTION w_fm_name
EXPORTING
control_parameters = wa_ctrlop
output_options = wa_outopt
user_settings = 'X'
IMPORTING
job_output_info = t_otfdata
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
IF sy-subrc EQ 0.
ENDIF. " IF sy-subrc EQ 0.
t_otf[] = t_otfdata-otfdata[].
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
format = 'PDF'
max_linewidth = 132
IMPORTING
bin_filesize = w_bin_filesize
TABLES
otf = t_otf
lines = t_pdf_tab
EXCEPTIONS
err_max_linewidth = 1
err_format = 2
err_conv_not_possible = 3
err_bad_otf = 4
OTHERS = 5.
IF sy-subrc EQ 0.
ENDIF. " IF sy-subrc EQ 0.
LOOP AT t_pdf_tab.
TRANSLATE t_pdf_tab USING '~'.
CONCATENATE wa_buffer t_pdf_tab INTO wa_buffer.
ENDLOOP.
TRANSLATE wa_buffer USING '~'.
DO.
t_record = wa_buffer.
APPEND t_record.
SHIFT wa_buffer LEFT BY 255 PLACES.
IF wa_buffer IS INITIAL.
EXIT.
ENDIF.
ENDDO.
t_objtxt = ' To Change the COR, Use the Transaction ZCOR_CHANGE'.
APPEND t_objtxt.
t_objtxt = ' Check the Attached PDF file for COR'.
APPEND t_objtxt.
DESCRIBE TABLE t_objtxt LINES w_lines_txt.
READ TABLE t_objtxt INDEX w_lines_txt.
READ TABLE t_objtxt INDEX w_lines_txt.
wa_doc_chng-obj_name = 'COR Display'.
wa_doc_chng-expiry_dat = sy-datum + 10.
CONCATENATE 'COR' "w_cornr
'-' "w_stat_descr w_action_desc
INTO wa_doc_chng-obj_descr SEPARATED BY space.
wa_doc_chng-sensitivty = 'F'.
wa_doc_chng-doc_size = w_lines_txt * 255.
CLEAR t_objpack-transf_bin.
t_objpack-head_start = 1.
t_objpack-head_num = 0.
t_objpack-body_start = 1.
t_objpack-body_num = w_lines_txt.
t_objpack-doc_type = 'RAW'.
APPEND t_objpack.
t_objpack-transf_bin = 'X'.
t_objpack-head_start = 1.
t_objpack-head_start = 1.
t_objpack-head_num = 0.
t_objpack-body_start = 1.
DESCRIBE TABLE t_objbin LINES w_lines_bin.
READ TABLE t_objbin INDEX w_lines_bin.
t_objpack-doc_size = w_lines_bin * 255 .
t_objpack-body_num = w_lines_bin.
t_objpack-doc_type = 'PDF'.
t_objpack-obj_name = 'COR'.
t_objpack-obj_descr = 'COR Test'.
* concatenate 'COR' w_cornr into t_objpack-obj_descr
* separated by space.
APPEND t_objpack.
*LOOP AT t_mail_ids.
CLEAR t_reclist.
t_reclist-receiver = 'INTENATEMAIL'.
t_reclist-rec_type = 'U'.
APPEND t_reclist.
*ENDLOOP.
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = wa_doc_chng
put_in_outbox = 'X'
commit_work = 'X'
TABLES
packing_list = t_objpack
object_header = wa_objhead
contents_bin = t_objbin
contents_txt = t_objtxt
receivers = t_reclist
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4
parameter_error = 5
x_error = 6
enqueue_error = 7
OTHERS = 8.
IF sy-subrc EQ 0.
ENDIF. -
If users enter the secret_word which coincides with the
session.secretWord then the form can continue and do its
validating. If not the form stops and the cfelse message is shown.
The cfif code is here:
<cfif form.secret_word EQ #session.secretWord#>
Thank you for your message.
<cfelse>
Sorry, the secret word you entered in the field does not
match the word in the image
Please hit your back button</cfif>
My actionpage is here and I would be very greatful if someone
could show me where the cfif should go. Thanks:
<cfinclude template="topnav.cfm">
<!--- Must create this default structure or we pull an
error --->
<cfparam name="session.contact_nfo" default="">
<cfif NOT IsStruct(session.contact_nfo)>
<cfset session.contact_nfo = StructNew()>
</cfif>
<!-- Now we create default variable using cfparam -->
<cfparam name="Form.terms" default="NO">
<cfparam name="session.contact_nfo.Name" default="">
<cfparam name="Form.Country" default="">
<cfparam name="Form.City" default="">
<cfparam name="Form.Telephone" default="">
<cfparam name="session.contact_nfo.email" default="">
<cfparam name="session.contact_nfo.comments"
default="">
<!-- Now we clear the Session of any Values to allow us to
place our new form Values passed from our form page -->
<cfset StructClear(session.contact_nfo)>
<!-- Now we are placing our Form Values into the Session
-->
<cfset session.contact_nfo.terms= form.terms>
<cfset session.contact_nfo.Name= form.Name>
<cfset session.contact_nfo.email= form.email>
<cfset session.contact_nfo.comments= form.comments>
<!-- Now we are going to do our Error Checking first off
by creating a value of nothing for the variable we are calling
Errors -->
<cfparam name="errors" type="string" default="">
<!-- As we check for Errors if we find one we place it in
our List to display to our user making it easy for the end-user to
correct as they can see the error -->
<!-- Notice we are not validating the checkbox as it is
not a required form field -->
<cfif form.Name EQ "">
<cfset errors = errors & "<li>You Forgot to
enter your name!</li>">
</cfif>
<!-- Checking the email is a little more complicated so we
use a regular expression to check and see if there is a email
address and also is it formed properly -->
<cfif NOT
REFindnocase("^[-_!a-z0-9\.]+@([-_a-z0-9]+\.)+[a-z]{2,6}$",
email)>
<cfset errors = errors & "<li
class=""errors"">Your Email Address seems
incorrect?</li>">
</cfif>
<cfif form.comments EQ "">
<cfset errors = errors & "<li
class=""errors"">You Forgot to enter a comment!</li>">
</cfif>
<cfif errors NEQ "">
<!-- Here we are collecting the Error Message generated
by our code and placing them into a list for the user to see -->
<TABLE class="label1" WIDTH="300" BORDER="0"
CELLSPACING="0" CELLPADDING="0" ALIGN="Center">
<TR><P> <TD ALIGN="Left" VALIGN="Top">You
have some errors in your form submission, please try
again<br>
<cfoutput>#errors#</cfoutput></td></P>
</tr>
</table>
<!-- Also take note that the form action is now different
in that it is carrying the applications session with it which we
need to make our Application.cfm file work with the action. -->
<cfoutput>
<form method="post"
action="action_form.cfm?#session.UrlToken#">
<P><TABLE class="label1" WIDTH="300" BORDER="0"
CELLSPACING="0" CELLPADDING="0" ALIGN="Center">
<TR> <TD ALIGN="Left" VALIGN="Top">
<!-- This is how we place our session values into the
form field also important to note the because we used cfparam in
the start of this page to assign a default value of "" if there was
no value originally entered in the form than it will show no value
here. If we did not use the cfparam tag we would now show an error
as the session would go looking for a non-existant value -->
<P>Name: [*]<br>
<INPUT TYPE="Text" class="ftforminputsmall" NAME="Name"
SIZE="40" value="#session.contact_nfo.Name#"></P>
<P>Country:<br>
<INPUT TYPE="Text" class="ftforminputsmall" NAME="Country"
SIZE="40" value="#Form.Country#"></P>
<P>City:<br>
<INPUT TYPE="Text" class="ftforminputsmall" NAME="City"
SIZE="40" value="#Form.City#"></P>
<P>Telephone:<br>
<INPUT TYPE="Text" class="ftforminputsmall"
NAME="Telephone" SIZE="40" value="#Form.Telephone#"></P>
<P>E-mail: [*]<br>
<INPUT TYPE="Text" class="ftforminputsmall" NAME="Email"
SIZE="40" value="#session.contact_nfo.email#"></P>
</P>
<P>Comments: [*]<BR>
<textarea cols="40" size="40" class="ftforminputsmall"
rows="2"
name="comments">#session.contact_nfo.comments#</textarea></P>
<P>Booking dates:<br>
<P>From:
<select name="day" class="ftforminputsmall">
<cfloop from="1" to="31" index="i">
<option value="#i#"
selected="selected">#form.day#</option>
</cfloop>
</select>
<cfset monthList =
"January,February,March,April,May,June,July,August,September,October,November,December"
/>
<select name="month" class="ftforminputsmall">
<cfloop list="#monthList#" index="m"> <option
value="#m#"
selected="selected">#form.month#</option></cfloop>
</select>
<select name="year" class="ftforminputsmall">
<cfloop from="2006" to="2020" index="i">
<option value="#i#">#form.year#</option>
</cfloop>
</select>
</P>
<P>To:
<select name="dayto" class="ftforminputsmall">
<cfloop from="1" to="31" index="i">
<option value="#i#"
selected="selected">#form.dayto#</option>
</cfloop>
</select>
<cfset monthList =
"January,February,March,April,May,June,July,August,September,October,November,December"
/>
<select name="monthto" class="ftforminputsmall">
<cfloop list="#monthList#" index="m"> <option
value="#m#"
selected="selected">#form.monthto#</option></cfloop>
</select>
<select name="yearto" class="ftforminputsmall">
<cfloop from="2006" to="2020" index="i">
<option value="#i#"
selected="selected">#form.yearto#</option>
</cfloop>
</select>
<P>
<input name="Submit" type="submit"
CLASS="ftforminputsmall" value="Submit">
</P>
</table>
</form>
</cfoutput>
<!-- If no errors were detected we abort the previous code
and show the next code section -->
<cfabort>
</cfif></td></tr>Right I´ve put in the cfparams and the cfif at the top
of the page after the cfinclude.
However if the word is wrong the page still executes which it
shouldn´t. It is confusing with all the cfifs but if the
secret word is wrong the "sorry" message should be shown and the
page stops (maybe I need cfabort or cfexit?) The message is being
shown but the page continues. Here is the code:
<cfinclude template="topnav.cfm">
<cfparam name="session.secretWord" default="">
<cfparam name="Form.secret_word" default="">
<cfif form.secret_word EQ #session.secretWord#>
Thank you for your message.
<cfelse>
Sorry, the secret word you entered in the field does not
match the word in the image
Please hit your back button</cfif>
<!--- Must create this default structure or we pull an
error --->
<cfparam name="session.contact_nfo" default="">
<cfif NOT IsStruct(session.contact_nfo)>
<cfset session.contact_nfo = StructNew()>
</cfif>
<!-- Now we create default variable using cfparam -->
<cfparam name="Form.terms" default="NO">
<cfparam name="session.contact_nfo.Name" default="">
<cfparam name="Form.Country" default="">
<cfparam name="Form.City" default="">
<cfparam name="Form.Telephone" default="">
<cfparam name="session.contact_nfo.email" default="">
<cfparam name="session.contact_nfo.comments"
default="">
<!-- Now we clear the Session of any Values to allow us to
place our new form Values passed from our form page -->
<cfset StructClear(session.contact_nfo)>
<!-- Now we are placing our Form Values into the Session
-->
<cfset session.contact_nfo.terms= form.terms>
<cfset session.contact_nfo.Name= form.Name>
<cfset session.contact_nfo.email= form.email>
<cfset session.contact_nfo.comments= form.comments>
<cfparam name="errors" type="string" default="">
<cfif form.Name EQ "">
<cfset errors = errors & "<li>You Forgot to
enter your name!</li>">
</cfif>
<cfif NOT
REFindnocase("^[-_!a-z0-9\.]+@([-_a-z0-9]+\.)+[a-z]{2,6}$",
email)>
<cfset errors = errors & "<li
class=""errors"">Your Email Address seems
incorrect?</li>">
</cfif>
<cfif form.comments EQ "">
<cfset errors = errors & "<li
class=""errors"">You Forgot to enter a comment!</li>">
</cfif>
<cfif errors NEQ "">
<!-- Here we are collecting the Error Message generated
by our code and placing them into a list for the user to see -->
<TABLE class="label1" WIDTH="300" BORDER="0"
CELLSPACING="0" CELLPADDING="0" ALIGN="Center">
<TR><P> <TD ALIGN="Left" VALIGN="Top">You
have some errors in your form submission, please try
again<br>
<cfoutput>#errors#</cfoutput></td></P>
</tr>
</table>
<!-- basically the same form we used in form.cfm -->
<cfoutput>
<form method="post"
action="action_form.cfm?#session.UrlToken#">
<P><TABLE class="label1" WIDTH="300" BORDER="0"
CELLSPACING="0" CELLPADDING="0" ALIGN="Center">
<TR> <TD ALIGN="Left" VALIGN="Top">
<P>Name: [*]<br>
<INPUT TYPE="Text" class="ftforminputsmall" NAME="Name"
SIZE="40" value="#session.contact_nfo.Name#"></P>
<P>Country:<br>
<INPUT TYPE="Text" class="ftforminputsmall" NAME="Country"
SIZE="40" value="#Form.Country#"></P>
<P>City:<br>
<INPUT TYPE="Text" class="ftforminputsmall" NAME="City"
SIZE="40" value="#Form.City#"></P>
<P>Telephone:<br>
<INPUT TYPE="Text" class="ftforminputsmall"
NAME="Telephone" SIZE="40" value="#Form.Telephone#"></P>
<P>E-mail: [*]<br>
<INPUT TYPE="Text" class="ftforminputsmall" NAME="Email"
SIZE="40" value="#session.contact_nfo.email#"></P>
</P>
<P>Secret word: [*]<br>
<cfinvoke webservice="
http://www.easycfm.com/webservices/captcha.cfc?wsdl"
method="generateCaptcha"
returnvariable="easyCaptcha">
<cfinvokeargument name="height" value="100"/>
<cfinvokeargument name="YPos" value="20"/>
</cfinvoke> </P>
<P><cfset session.secretWord =
easyCaptcha.CAPTCHAWORD>
<cfoutput>
<img src="#easyCaptcha.IMAGE#"
border="0"></cfoutput></P>
<P><div="label1"> Please retype the Secret Word
in the field below. This is a simple security
matter to protect the information we receive through this
form.</div></P>
<P>
<INPUT TYPE="Text" class="ftforminputsmall"
NAME="secret_word" SIZE="40"></P>
<P>Comments: [*]<BR>
<textarea cols="40" size="40" class="ftforminputsmall"
rows="2"
name="comments">#session.contact_nfo.comments#</textarea></P>
<P>Booking dates:<br>
<P>From:
<select name="day" class="ftforminputsmall">
<cfloop from="1" to="31" index="i">
<option value="#i#"
selected="selected">#form.day#</option>
</cfloop>
</select>
<cfset monthList =
"January,February,March,April,May,June,July,August,September,October,November,December"
/>
<select name="month" class="ftforminputsmall">
<cfloop list="#monthList#" index="m"> <option
value="#m#"
selected="selected">#form.month#</option></cfloop>
</select>
<select name="year" class="ftforminputsmall">
<cfloop from="2006" to="2020" index="i">
<option value="#i#">#form.year#</option>
</cfloop>
</select>
</P>
<P>To:
<select name="dayto" class="ftforminputsmall">
<cfloop from="1" to="31" index="i">
<option value="#i#"
selected="selected">#form.dayto#</option>
</cfloop>
</select>
<cfset monthList =
"January,February,March,April,May,June,July,August,September,October,November,December"
/>
<select name="monthto" class="ftforminputsmall">
<cfloop list="#monthList#" index="m"> <option
value="#m#"
selected="selected">#form.monthto#</option></cfloop>
</select>
<select name="yearto" class="ftforminputsmall">
<cfloop from="2006" to="2020" index="i">
<option value="#i#"
selected="selected">#form.yearto#</option>
</cfloop>
</select>
<P>
<input name="Submit" type="submit"
CLASS="ftforminputsmall" value="Submit">
</P>
</table>
</form>
</cfoutput>
<!-- If no errors were detected we abort the previous code
and show the next code section -->
<cfabort>
</cfif></td></tr>
<!-- In this next section we can now take our form values
and do what ever we decide to do with them i.e. mailing them to
ourselves, placing them into a database, or a combination of both.
In this section it is wise to let the user know that his
information has been received as coldfusion has no way of letting
them know ---->
<cfmail server="" username="" password="" to="" from=""
subject="" type="">
<table><tr>
<td align="center" bgcolor="##006600"
class="ftbody"><span class="ftbody2"><strong
class="label1">Telephone:
</strong></span></td>
<td align="center" bgcolor="##006600"
class="ftbody"><span class="ftbody2"><strong
class="label1"><cfoutput>#Trim(FORM.name)#</cfoutput></strong></span></td>
</tr></cfmail> -
Using an ArrayCollection of a Class in form fields
So I've seen loads of examples of this with datagrids, But I'm looking for somoe advice to following a proper path to perform the following. Any advice would be great to help me minimize my experienting to get this right.
I have a simple Class I made with 10 or so different properties......
I have an arraycollection of data of the type of the class created above. ITs populated with data from an httpservice onload.
In FLEX, I have a form which allows the user to see and edit via textboxes each of the 10 or so properties per instance of the class, and a 'forward' and 'back', button that advances one record in the array collection (or back).
What i want is a way to directly BIND the textbox of each property in the form to the property name, and be able to index forward and back. If the user changes the data in a text box when a particular instance is up, the binding should update the correct arraycollection/property instance.
What is the best way to go about this index type binding in a form. I know this has got to be easy, as the datagrid does this? Just I want to do it to a different displayer (form fields)....
Any ideas would be great. Thanks!Ahh.. I see how this works.Thanks!However i noticed one problem.
I have a main application and a custom component that extends form.
The main application holds the arraycollection, and the form fields are in the compoent. (Excerts below). The problem I'm having is that it seems bindings don't reference back to the main application. I've seen other complaints about this online as well. Is there a way around this? Seems like a crippling drawback. how can I bind or pass in to a component an arraycollection from the main applciaiton.
When I run below I get nothing brought into the form... Get through Debug, the arraycollection is populated in the main app.... Help?
Main application:
[Bindable] public var subnetResults:ArrayCollection = new ArrayCollection;
--> Further down I populate this arraycollection with stuff via HTTPService.
The Class I built that is instances of the array collection. IN a seperate package:
package
public class Subnets
public function Subnets(
key:int,
subnet:String,
netmask:String,
next_server:String,
option_router:String,
subnet_mask:String,
option_nis_domain:String,
option_domain_name:String,
option_domain_name_server:String,
option_ntp_server:String,
default_lease_time:String,
max_lease_time:String,
action:String='')
this.key = key;
this.subnet = subnet;
this.netmask = netmask;
this.next_server = next_server;
this.option_router = option_router;
this.subnet_mask = subnet_mask;
this.option_nis_domain = option_nis_domain;
this.option_domain_name = option_domain_name;
this.option_domain_name_server = option_domain_name_server;
this.option_ntp_server = option_ntp_server;
this.default_lease_time = default_lease_time;
this.max_lease_time = max_lease_time;
this.action = action;
[Bindable] public var key:int;
[Bindable] public var subnet:String;
[Bindable] public var netmask:String;
[Bindable] public var next_server:String;
[Bindable] public var option_router:String;
[Bindable] public var subnet_mask:String;
[Bindable] public var option_nis_domain:String;
[Bindable] public var option_domain_name:String;
[Bindable] public var option_domain_name_server:String;
[Bindable] public var option_ntp_server:String;
[Bindable] public var default_lease_time:String;
[Bindable] public var max_lease_time:String;
[Bindable] public var action:String;
The Form component that uses the array collection: (Ignore the IPAddressValidator... Its a custom validator I use).
<mx:Form xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:com="val_classes.*">
<com:IPAddressValidator source="{next_server}" property="text" triggerEvent="change"
valid="{ parentDocument.subnetResults[ subnetSelectedIndex ].next_server = next_server.text};
{ parentDocument.subnetResults[ subnetSelectedIndex ].action = 'us'};"/>
<mx:FormItem label="Issued tFTP Server:">
<mx:TextInput id="next_server" maxChars="15" restrict="0-9."
text="{ parentDocument.subnetResults.getItemAt(subnetSelectedIndex).next_server }" />
</mx:FormItem>
</mx:Form> -
PDX index - how to remove absolute path to it?
I have a PDF and using File > Properties > Document Properties > Advanced tab have browsed to a Search Index, and added it to the PDF (I've added a big Search button that the user can press to search the entire, large, collection of PDFs).
The search index path that the Browse form puts in the Search Index: field points to a location on our network e.g. \\Server1\application\PDFs\index.pdx
This works fine when I'm running it locally, but when the PDF + index gets installed on a PC outside of our network the user gets a error telling them that it can't load the index.
I want to edit the path in the Search Index: field so that it is relative e.g. PDFs\index.pdx (the same location as the PDFs and the index file + folder), but the Search Index: field is greyed out and uneditable! I seem to be stuck with a useless absolute path.
Question: Is there any way of making the path to the PDF relative and not absolute? We need to put the PDF collection onto our software distribution DVD, and the customers will install it to their own PCs/network locations.
(I'm using Acrobat Pro X ver 10.1.8 on Windows 7 Ultimate SP 1, and the target audience will be using Acrobat Reader)I think the problem is kinda fixed.
I created the library and index on a network drive and created a "start PDF" file at the same location. I opened the "start" file and used Ctrl-D > Advanced > Search index to add the name of the .pdx file.
I emailed the "start file" to someone else on the network. They downloaded it and double clicked it.
* They happened to be using the new 2015 Pro DC version. The message about the index associated with this document (...) could not be located. appeared. The path was expecting the .pdx file to be below the download directory.
* I clicked OK.
* Pressed Ctrl-Shift-F for advanced search.
* Clicked Show more options (because that user had never used Advanced Search) - and the index file was displayed in the look in field.
* Entered a search term and it worked perfectly.
I retested it using a Dropbox location. Created the "start PDF" file and emailed another person, not on the same network, but sees the same Dropbox folder. They use Acrobay XI v.11.0.10.
* The file was downloaded and double-clicked.
* Pressed Ctril-Shift-F - same index could not be located message - and again the .pdx file was assumed to below the download directory. But nothing auto-magically fixed itself.
The only solution here is to provide user with a link to the .pdx file on their desktop. When they double clicked it, Acrobat opens with the index loaded.
(Depending on the user, the other alternative is to add the index to the index list.) -
Fetching internal table values in a Form
Hi,
In a function module, in table interface i have declared a table. In source code this table gets values. In source code one perform statement is there. In that form, this table is not present. How can i get this table values in that form?
Ezhil.Hi,
You can try using tables with perform statement like:
Perform append_heading TABLES T_Head " internal table declared
USING COUNT "variables
COUNT1
INDEX
FIELDCAT
FIELDCAT1.
Its form would be like,
FORM APPEND_HEADING TABLES T_HEAD structure T_HEAD
USING COUNT TYPE I
COUNT1 TYPE I
INDEX TYPE I
FIELDCAT type slis_t_fieldcat_alv
Fieldcat1 type slis_fieldcat_alv.
Hope it helps
Regards
Mansi -
Forms not run when loading from movie master
I have a movie called index loading two movies contain forms
into a movieclip, but not functionally correctly. Otherwise running
the SWF individually run correctly.
How fix this???sounds like you may have calls to either _root or _level0 in
your loaded files.
if they are to _root, you can solve by applying the _lockroot
property to the load target MCs. -
I want to create a form that I can change at an instance that will store the information without replacing it: Here are examples of what i have:
This is the form: The True/False in column B are actually check boxes
Date
Job Name
Start
End
Hours Worked
Per Diem
Wednesday, Mar 5, 2014
Duke University
7:30 PM
2:30 AM
7.00
Arellano, Paul
TRUE
Wednesday, Mar 5, 2014
Duke University
7:30 PM
2:30 AM
7.00
0.00
Blackwell, Zach
FALSE
Christian, Charles
TRUE
Wednesday, Mar 5, 2014
Duke University
7:30 PM
2:30 AM
7.00
0.00
Christian, John
FALSE
Currence, John
FALSE
Curtis, Brandon
FALSE
Hawkins, Tyre
FALSE
King, Corey
FALSE
Nunez, Jose
FALSE
Rangel, Antonio
FALSE
Rice, Eric
FALSE
Salgado, Ricardo
FALSE
and the sheet that the index to looks like:
Saturday, Mar 15, 2014
Rice, Eric
Providence College
9:00 AM
7:30 PM
10.50
1
Saturday, Mar 15, 2014
Rice, Eric
Virginia Beach
7:30 PM
2:30 AM
7.00
Saturday, Mar 15, 2014
Salgado, Ricardo
0.00
Sunday, Mar 16, 2014
Arellano, Paul
Providence College
7:00 AM
8:00 PM
13.00
1
Sunday, Mar 16, 2014
Blackwell, Zach
0.00
Sunday, Mar 16, 2014
Christian, Charles
0.00
Sunday, Mar 16, 2014
Christian, John
0.00
Sunday, Mar 16, 2014
Currence, John
Providence College
7:00 AM
8:00 PM
13.00
1
Sunday, Mar 16, 2014
Curtis, Brandon
0.00
I want to be able to fill out the form and it place itself into Sheet 1 without changing everytime. I can index the array from the form, but it changes everytime.You think it would be the other way around.
Just speculation, but forms probably came to iOS first because of likely use for data entry in the field that syncs back to the Mac. On a small screen with a touch interface, forms make inputing values easier.
On the Mac, with its bigger screen, typing directly into a data table often works well enough.
SG -
Does the forms developed in LiveCycle Designer ES -2 support i-pad ?
Hello All,
I have to develop a form which has 4-5 pages. The form should support Windows as well as i-pad also. Could anybody throw some light on my query or suggest some link ? I have never worked in Mac OS. So I am a bit skeptical.
Thanks.
Bibhu.Hi,
LiveCycle forms do not work on Apple's iOS devices (iPhone or iPad). See http://assurehsc.ie/blog/index.php/2010/05/xfa-forms-in-iphone-and-ipad/
A static form will open, but the user cannot interact with it. A dynamic XML form just will not open.
Forms worked perfectly on a Mac, provided the user opens the form in Adobe Reader and NOT the preinstalled viewer Apple Preview. Several threads on Apple Preview on this forum.
Niall -
Forms Developer Day - New Dates
Two new Forms Upgrade to the Web developer days in running in Africa this month. For more details visit http://www.oracle.com/technology/products/forms/index.html
Regards
Grant Ronald
Forms Product Managementrepost
-
Hi! I need help on RH x5 index.
Here's the problem:
After indexing about 75% of the files in the project, I tried
to publish and everything's working fine. After I indexed all of
the files, everything's messed up.
My primary layout is WebHelp. The first few index keywords
("$300,000" to "Forms") are displaying very well. However, index
keywords following the word "Forms" are all messed up - some are
not showing, some are displayed but parent keywords are missing.
Now, when I try to publish CHM, everything's showing, except
that they're not in alphabetical order. It shows "ZAP" on the top
of the index, and shows "$300,000" as the last entry.
What could be wrong? Is there a limit in file size? Or
probably the number of entries? The size of the HKK file is 469KB.
TIA.I'm no expert, but I've had my index "issues" over the years.
I think anyone wanting to help you will want to know whether you've
tried using the Binary Index setting in the Project Settings.
We have projects with much bigger HHK files than yours, so
that's not the problem.
Have you opened up the HHK file in Notepad (or other text
editor) and taken a look?
We had the type of problem you described when we imported
topics from a different project and
those topics had keywords saved in them (instead of in that
project's HHK file. This was caused by a bug in RH X5.
If you did that, I can give you the workaround we used.
(Sorry if the formatting below isn't ideal -- I'm just going to
paste the whole thing in from a different source.)
Warning: It is time-consuming if there are many keywords to
fix.
1. With the project closed, have someone with MS Access open
its .cpd file and print out KKeywordList. From this printout you
can see which keywords are causing the problem, because the
problem-causing keywords have a negative value.
2. Delete the .cpd file.
3. Make a backup copy of rhkkeyword.apj.
4. Using Notepad, open rhkkeyword.apj and add the problem
keywords manually in this format:
<keyword>
<name>Testing</name>
<keywords/>
</keyword>
Multi-level keywords are inserted as follows:
<keyword>
<name>first level keyword</name>
<keywords>
<keyword>
<name>FIRST subkeyword</name>
</keyword>
<keyword>
<name>SECOND subkeyword</name>
<keywords/>
</keyword>
</keywords>
</keyword>
Warning: The
<keywords/> tag occurs only once for each main
keyword, and it occurs after the last subkeyword, if any, as shown
above.
5. Save and close rhkkeyword.apj.
6. Reopen the project and click the Index tab. If RoboHelp
fails to open or crashes, then you know there are syntax errors in
rhkkeyword.apj. Delete the .cpd file, fix rhkkeyword.apj and try
again.
7. When RH's index is displaying properly, check for any
subkeywords whose main keywords are not defined. (These appear
bolded.) For example, if you have "batching\grouping" but not
"batching", add "batching" to a topic.
8. Recompile help and check it carefully.
Hope this helps.
Eileen
Maybe you are looking for
-
Error message when trying to install a new windows 7
Hi I am using a pavillion dv6 2140ei. My hard disk crashed so I bought a new one and now when I try to install windows I get a message saying "windows cannot be installed to this disk. This computers hardware may not support bootingh to this disk.
-
How to fill in a PDF file via data import
I have a situation where we need a PDF form filled out, but we cannot let the end user enter data directly into the form. We could enter it manually, but that isn't practical. I'm looking for a way that we can have the user complete an HTML form and
-
Using a digital certificate to send an encrypted email.
I want to send an e-mail through my i-pad using a digital certificate, that i have already configurated in my e-mail account. This e-mail i want to send also encrypted. Do i need to have a public certificate code from the person i´m sending the e-mai
-
I am relatively new to Final Cut Pro. Everything has been working fine until last night. I was trying to import a still picture into my project and when I selected the pic I got the spinning disk. It would take sometimes 10 minutes or more to import
-
Both ipad and iphone are not fetching new data in my mail accounts. "no connection to service" keeps popping up. Please advise.