Scripting Assistance Needed
I'm working on a form. What I need it to do is this:
The end user will check a box to add comments. The comments field is NOT visable until the check box is checked. Once the checkbox is checked then a text box will appear directly underneath it.
Thank you in advance!
SRenae
do you mean where are the textbox and checkbox located on my form or in the hierarchy?
I have the checkbox and textbox in their own subform.
if
(Checkbox1.rawValue==1) Textfield1.presence="visible"
elseTextfield1.presence
="hidden"
Sorry that I'm being a pain! I'm not well-versed in scripting if that isn't obvious! ;-)
Similar Messages
-
Script Assist in Actions Panel
In the Flash MX Professional I do not have the option of
activating the Script Assist function. I'm not well-versed in
actionscript and need the assistance to make my projects
functional. I work on a Mac using OS X Panther. Has anyone else run
into this problem and, if so, how did you resolve it? TxHEY! SCREW OFF! i was trying to help you out you ******* -
and providing a little levity from the title you've posted - i
thought it was a great title and a fun way to ask - apparently you
didn't see the 'just kidding - wink" - i thought that was exactly
the answer you were looking for but didn't know what to call it -
so SCREW OFF YOU PR!CK!
you don't know what you talking about - if all you saw was
comics dipsh!t, you didn't look around or notice anything else -
not to mention that i script for a living and none of those were
'web comics' - I've got more abilities than you will ever have!
to call someone a '****' in your second post! holy crap -
what an *** - don't come around here anymore, you don't have any
business even thinking about trying to code ... LMFAO! -
Ihave created a script, i need to email in pdf format.
Hi Experts,
There are 2 criterias...
1. criteria
I have created a script, i need to mail it. Please give me a step by step guide to perform it .. . Please give the comments in all the functional module to be used.
Do we have to write a separate program to send email or in the same program. i'll post my program along with this mail. I'm using this program to display report after delivery on that particular date.
REPORT ZREPORTTOEMAIL LINE-SIZE 400.
data : count, i type i.
TABLES : VBFA, "Sales Document Flow
VBAK,
KNA1,
VBKD,
VBAP,
LIPS,
LIKP,
KONP,
KOMK,
KOMP,
zkna1,
konv.
data : l_vbeln like vbfa-vbeln,
l_posnr like vbfa-posnn,
l_KNUMV like vbak-KNUMV,
L_BILL_ITEM LIKE vbfa-posnn ,
l_netwr like vbrp-netwr,
l_MWSBP like vbrp-mwsbp.
DATA: BEGIN OF TKOMV OCCURS 50.
INCLUDE STRUCTURE KOMV.
DATA: END OF TKOMV.
DATA: BEGIN OF TKOMVD OCCURS 50.
INCLUDE STRUCTURE KOMVD.
DATA: END OF TKOMVD.
TYPE-POOLS: SLIS.
DATA: FIELDTAB TYPE SLIS_T_FIELDCAT_ALV,
HEADING TYPE SLIS_T_LISTHEADER,
LAYOUT TYPE SLIS_LAYOUT_ALV,
EVENTS TYPE SLIS_T_EVENT,
REPNAME LIKE SY-REPID,
F2CODE LIKE SY-UCOMM VALUE '&ETA',
G_SAVE(1) TYPE C,
G_EXIT(1) TYPE C,
G_VARIANT LIKE DISVARIANT,
GX_VARIANT LIKE DISVARIANT.
DATA: GT_LIST_TOP_OF_PAGE TYPE SLIS_T_LISTHEADER.
CONSTANTS: FORMNAME_TOP_OF_PAGE TYPE SLIS_FORMNAME VALUE 'TOP_OF_PAGE'.
DATA: BEGIN OF itab occurs 0,
kunnr like likp-kunnr, "ship to party
NAME2 LIKE KNA1-NAME1, "text
ORT01 LIKE KNA1-ORT01, "City
BSTNK LIKE VBAK-BSTNK, "customer P O
BSTDK LIKE VBAK-BSTDK, "date
vbeln like likp-vbeln, "delivery
ernam like likp-ernam, "person
vstel like likp-vstel, "shipping point
vkorg like likp-vkorg, "sales org
lfdat like likp-lfdat, "delivery date
kunag like likp-kunag, "sold to party
NAME1 LIKE KNA1-NAME1, "text
bil_to like VBAK-KUNNR,
name3 like kna1-name1,
traid like likp-traid, "transport/vehicle no
BOLNR LIKE LIKP-BOLNR,
wadat_ist like likp-wadat_ist, "good mov. date
posnr like lips-posnr, "item
matnr like lips-matnr, "material
arktx like lips-arktx, "item text
matkl like lips-matkl, "mat group
werks like lips-werks, "plant
lgort like lips-lgort, "stoage location
lfimg like lips-lfimg, "del qty
MEINS LIKE LIPS-MEINS,
vrkme like lips-vrkme, "sales unit
UMVKZ LIKE LIPS-UMVKZ,
UMVKN LIKE LIPS-UMVKN,
charg like lips-charg, "batch
vgbel like lips-vgbel, "reference doc
mtart like lips-mtart, "mat type
vkbur like lips-vkbur, "sales office
vkgrp like lips-vkgrp, "sales group
vtweg like lips-vtweg, "Distribution Channel
spart like lips-spart, "division
billno like vbak-vbeln,
basic like komvd-kwert,
budat like bkpf-budat,
fin_amt like vbrp-NETWR,
END OF itab.
data : begin of jtab occurs 0,
kunnr like likp-kunnr,
name2 like kna1-name2,
vbeln like likp-vbeln,
zkunnr like zkna1-zkunnr,
zname like zkna1-zname,
end of jtab.
SELECTION-SCREEN SKIP 1 .
SELECTION-SCREEN BEGIN OF BLOCK BLOCK1 WITH FRAME TITLE TEXT-003.
SELECT-OPTIONS : ABC FOR LIKP-WADAT_IST DEFAULT SY-DATUM
NO INTERVALS .
SELECT-OPTIONS : S_MATNR FOR LIPS-MATNR NO INTERVALS .
SELECT-OPTIONS : S_VKORG FOR LIKP-VKORG NO INTERVALS.
SELECT-OPTIONS : S_VSTEL FOR LIKP-VSTEL NO INTERVALS.
SELECT-OPTIONS : S_VKBUR FOR LIKP-VKBUR NO INTERVALS.
SELECT-OPTIONS : S_VKGRP FOR LIPS-VKGRP.
SELECT-OPTIONS : S_SPART FOR LIPS-SPART.
SELECT-OPTIONS : S_VBELN3 FOR LIKP-VBELN.
SELECT-OPTIONS : S_MATKL FOR LIPS-MATKL NO INTERVALS,
S_KUNAG FOR LIKP-KUNAG.
SELECTION-SCREEN END OF BLOCK BLOCK1.
select * from likp into corresponding fields of itab
WHERE WADAT_IST IN ABC
AND VBELN IN S_VBELN3
AND VKORG IN S_VKORG
and VSTEL in S_VSTEL
AND VKBUR IN S_VKBUR
and lfart like 'Z%'
AND VBTYP = 'J'
AND KUNAG IN S_KUNAG.
select * from lips into corresponding fields of itab
WHERE VBELN = ITAB-VBELN
AND MATNR IN S_MATNR
AND MATKL IN S_MATKL
AND VKBUR IN S_VKBUR
AND VKGRP IN S_VKGRP
AND SPART IN S_SPART.
IF ITAB-VRKME = 'RM' AND ITAB-MEINS = 'KG'.
ITAB-LFIMG = ITAB-LFIMG * ( ITAB-UMVKZ / ITAB-UMVKN ).
ITAB-VRKME = 'KG'.
ENDIF.
SELECT SINGLE BSTNK BSTDK INTO (ITAB-BSTNK,ITAB-BSTDK) FROM VBAK
WHERE VBELN = ITAB-VGBEL.
SELECT SINGLE NAME1 ORT01 FROM KNA1 INTO (ITAB-NAME2,ITAB-ORT01)
WHERE KUNNR = ITAB-KUNNR.
SELECT SINGLE NAME1 FROM KNA1 INTO ITAB-NAME1
WHERE KUNNR = ITAB-KUNAG.
*select single vbeln POSNN into (itab-billno,L_BILL_ITEM) from vbfa where VBELV = itab-vbeln
*and POSNV = itab-posnr and VBTYP_N in ('M','U').
select vbeln POSNN from vbfa up to 1 rows into (itab-billno,L_BILL_ITEM) where VBELV = itab-vbeln
and POSNV = itab-posnr and VBTYP_N in ('M','U') order by vbeln DESCENDING .
endselect.
select single * from vbfa where vbelv = itab-billno and posnv = l_bill_item and
vbtyp_n = 'N'.
if sy-subrc = 0.
clear : itab-billno, l_bill_item.
endif.
select single budat from bkpf into itab-budat where xblnr = itab-billno and
blart = 'RV'.
select single NETWR MWSBP into (l_netwr, l_MWSBP) from vbrp where vbeln = itab-billno
and posnr = l_bill_item.
itab-fin_amt = l_netwr + l_MWSBP.
clear : l_netwr, l_MWSBP.
select single kunnr from vbpa into itab-bil_to where
vbeln = itab-BILLNO and PARVW = 'RE'.
select single name1 into itab-name3 from kna1
where kunnr = itab-bil_to.
*select single VBELV POSNV from vbfa into (l_vbeln,l_posnr)
*where VBELN = itab-vbeln and
*POSNN = itab-posnr and VBTYP_N = 'J'.
*select single VBELN POSNN from vbfa into (l_vbeln,l_posnr)
*where VBELV = itab-vbeln and
*POSNV = itab-posnr and VBTYP_N = 'M'.
select VBELN POSNN from vbfa up to 1 rows into (l_vbeln,l_posnr)
where VBELV = itab-vbeln and
POSNV = itab-posnr and VBTYP_N = 'M' order by vbeln DESCENDING.
endselect.
select single * from vbfa where vbelv = l_vbeln and posnv = l_posnr and
vbtyp_n = 'N'.
if sy-subrc = 0.
clear : l_vbeln, l_posnr.
endif.
if sy-subrc = 0.
*select single KNUMv into l_KNUMv from vbak where vbeln = l_vbeln
select single KNUMv into l_KNUMv from vbRk where vbeln = l_vbeln
select * from konv where knumv = l_knumv and kposn = l_posnr and
kschl in ('ZR00','ZR01','ZR02','ZOBC').
itab-basic = itab-basic + KONV-KBETR.
ENDSELECT.
else.
*select single KNUMv into l_KNUMv from ekko where ebeln = itab-vgbel.
*select single KBETR from konv into itab-basic where knumv = l_knumv
*and kposn = itab-posnr and kschl = 'P101'.
select single KNUMv into l_KNUMv from VBRK where VBELN = itab-BILLNO.
select * from konv where knumv = l_knumv and kposn = l_BILL_ITEM AND
kschl in ('ZR00','ZR01','ZR02','ZOBC').
itab-basic = itab-basic + KONV-KBETR.
ENDSELECT.
*zkna1-zkunnr = itab-kunnr.
*insert zkna1.
endif.
clear : l_vbeln, L_BILL_ITEM, L_POSNR.
APPEND ITAB.
clear : itab-basic, itab-lfimg.
ENDSELECT.
clear : itab.
ENDSELECT.
<b>perform zscript.</b>
*& Form zscript
text
--> p1 text
<-- p2 text
FORM zscript .
CALL FUNCTION 'OPEN_FORM'
EXPORTING
APPLICATION = 'TX'
ARCHIVE_INDEX =
ARCHIVE_PARAMS =
DEVICE = 'PRINTER'
DIALOG = 'X'
FORM = 'ZREPORT2EMAIL'
LANGUAGE = SY-LANGU
OPTIONS =
MAIL_SENDER =
MAIL_RECIPIENT =
MAIL_APPL_OBJECT =
RAW_DATA_INTERFACE = '*'
SPONUMIV =
IMPORTING
LANGUAGE =
NEW_ARCHIVE_PARAMS =
RESULT =
EXCEPTIONS
CANCELED = 1
DEVICE = 2
FORM = 3
OPTIONS = 4
UNCLOSED = 5
MAIL_OPTIONS = 6
ARCHIVE_ERROR = 7
INVALID_FAX_NUMBER = 8
MORE_PARAMS_NEEDED_IN_BATCH = 9
SPOOL_ERROR = 10
CODEPAGE = 11
OTHERS = 12
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
LOOP AT ITAB.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
ELEMENT = 'MANU'
FUNCTION = 'SET'
TYPE = 'BODY'
WINDOW = 'MAIN'
IMPORTING
PENDING_LINES =
EXCEPTIONS
ELEMENT = 1
FUNCTION = 2
TYPE = 3
UNOPENED = 4
UNSTARTED = 5
WINDOW = 6
BAD_PAGEFORMAT_FOR_PRINT = 7
SPOOL_ERROR = 8
CODEPAGE = 9
OTHERS = 10
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDLOOP.
CALL FUNCTION 'CLOSE_FORM'
IMPORTING
RESULT =
RDI_RESULT =
TABLES
OTFDATA =
EXCEPTIONS
UNOPENED = 1
BAD_PAGEFORMAT_FOR_PRINT = 2
SEND_ERROR = 3
SPOOL_ERROR = 4
CODEPAGE = 5
OTHERS = 6
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. " zscript
The above one is first criteria just to understand how to send mail to the customers.
<b>Second criteria</b> is i have to send the mail to the particular customer with only their details, the process should continue until it sends to all the customers with their details for that particular date.
Please help me out.
I have seen so many posts in the sdn but not able to understand the functional modules, how they declare that and how does it works...
Please provide me a good material to understand the functional module and to declare them.
Please solve this query i'll reward them with very good points.
Thanks in advance.
A.Rafique.Hi babar haroon,
Thanks for the link.....
I went through that link, i created smart form but i was not able to get the results because the pgm gets terminated after executing. I'll show u the code, the code is active. Please check out and tell me if i have missed anything in the code...
*& Report ZZZ_TEST3
REPORT ZZZ_TEST3.
*internal table declarations
data: i_otf type itcoo occurs 0 with header line,
i_tline type table of tline with header line,
i_receivers type table of somlreci1 with header line,
i_record like solisti1 occurs 0 with header line,
*Objects to send mail.
i_objpack like sopcklsti1 occurs 0 with header line,
i_objtxt like solisti1 occurs 0 with header line,
i_objbin like solisti1 occurs 0 with header line,
i_reclist like somlreci1 occurs 0 with header line,
*workarea declaration.
w_objhead TYPE soli_tab,
w_ctrlop TYPE ssfctrlop,
w_compop TYPE ssfcompop,
w_return TYPE ssfcrescl,
w_doc_chng typE sodocchgi1,
w_data TYPE sodocchgi1,
w_buffer TYPE string,"To convert from 132 to 255
Variables declarations
v_form_name TYPE rs38l_fnam,
v_len_in LIKE sood-objlen,
v_len_out LIKE sood-objlen,
v_len_outn TYPE i,
v_lines_txt TYPE i,
v_lines_bin TYPE i.
call function 'SSF_FUNCTION_MODULE_NAME'
*call function '/1BCDWB/SF00000105'
exporting
formname = 'ZZZ_TEST2'
importing
fm_name = v_form_name
exceptions
no_form = 1
no_function_module = 2
others = 3.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
w_ctrlop-getotf = 'X'.
w_ctrlop-no_dialog = 'X'.
w_compop-tdnoprev = 'X'.
CALL FUNCTION '/1BCDWB/SF00000105'
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB = itab1
ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS =
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
OUTPUT_OPTIONS =
USER_SETTINGS = 'X'
IMPORTING
DOCUMENT_OUTPUT_INFO =
JOB_OUTPUT_INFO = wa
JOB_OUTPUT_OPTIONS =
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION v_form_name
EXPORTING
control_parameters = w_ctrlop
output_options = w_compop
user_settings = 'X'
IMPORTING
job_output_info = w_return
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
i_otf[] = w_return-otfdata[].
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
format = 'PDF'
max_linewidth = 132
IMPORTING
bin_filesize = v_len_in
TABLES
otf = i_otf
lines = i_tline
EXCEPTIONS
err_max_linewidth = 1
err_format = 2
err_conv_not_possible = 3
OTHERS = 4.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
Convert PDF from 132 to 255.
LOOP AT i_tline.
Replacing space by ~
TRANSLATE i_tline USING '~'.
CONCATENATE w_buffer i_tline INTO w_buffer.
ENDLOOP.
Replacing ~ by space
TRANSLATE w_buffer USING '~'.
DO.
i_record = w_buffer.
Appending 255 characters as a record
APPEND i_record.
SHIFT w_buffer LEFT BY 255 PLACES.
IF w_buffer IS INITIAL.
EXIT.
ENDIF.
ENDDO.
Refresh: i_reclist,
i_objtxt,
i_objbin,
i_objpack.
clear w_objhead.
Object with PDF.
i_objbin[] = i_record[].
DESCRIBE TABLE i_objbin LINES v_lines_bin.
Object with main text of the mail.
i_objtxt = 'Find attached the output of the smart form.'.
APPEND i_objtxt.
DESCRIBE TABLE i_objbin LINES v_lines_txt.
i_objtxt = 'Regards,'.
APPEND i_objtxt.
i_objtxt = 'J.Jayanthi'.
APPEND i_objtxt.
DESCRIBE TABLE i_objtxt LINES v_lines_txt.
Document information.
w_doc_chng-obj_name = 'Smartform'.
w_doc_chng-expiry_dat = sy-datum + 10.
w_doc_chng-obj_descr = 'Smart form output'.
w_doc_chng-sensitivty = 'F'. "Functional object
w_doc_chng-doc_size = v_lines_txt * 255.
Pack to main body as RAW.
Obj. to be transported not in binary form
CLEAR i_objpack-transf_bin.
Start line of object header in transport packet
i_objpack-head_start = 1.
Number of lines of an object header in object packet
i_objpack-head_num = 0.
Start line of object contents in an object packet
i_objpack-body_start = 1.
Number of lines of the object contents in an object packet
i_objpack-body_num = v_lines_txt.
Code for document class
i_objpack-doc_type = 'RAW'.
APPEND i_objpack.
Packing as PDF.
i_objpack-transf_bin = 'X'.
i_objpack-head_start = 1.
i_objpack-head_num = 1.
i_objpack-head_num = 0.
i_objpack-body_start = 1.
i_objpack-body_num = v_lines_bin.
i_objpack-doc_type = 'PDF'.
i_objpack-obj_name = 'Smartform'.
CONCATENATE 'Smartform_output' '.pdf'
INTO i_objpack-obj_descr.
i_objpack-doc_size = v_lines_bin * 255.
APPEND i_objpack.
Document information.
CLEAR i_reclist.
e-mail receivers.
i_reclist-receiver = '[email protected]'.
i_reclist-receiver = '[email protected]'.
i_reclist-express = 'X'.
i_reclist-rec_type = 'U'. "Internet address
APPEND i_reclist.
Sending mail.
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = w_doc_chng
put_in_outbox = 'X'
TABLES
packing_list = i_objpack
object_header = w_objhead
contents_hex = i_objbin
contents_txt = i_objtxt
receivers = i_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 <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Please reply me back, it is very urgent..
Thanks and regards.
A.Rafique -
My BB9810 refuse to load OS7.1 software on my phone after the download has completed. My phone has freezed/stucked since morning. Pls urgent help/assistant needed as I can not access/use my phone for over 24hrs now.
Hi there,
Use the method described in the link below to get back up and running:
http://supportforums.blackberry.com/t5/Device-software-for-BlackBerry/How-To-Reload-Your-Operating-S...
I hope this info helps!
If you want to thank someone for their comment, do so by clicking the Thumbs Up icon.
If your issue is resolved, don't forget to click the Solution button on the resolution! -
Java Script Assistant in xMII 12.0
Hi All,
Kindly help me to find out the "Java Script Assistance in xMII 12.0" version.
Thanks
Rajesh Sivaprakasam.
Edited by: Rajesh Sivaprakasam on Nov 27, 2008 12:05 PMHelo Rajesh,
the Productivity Wizards are available under SDN->Downloads->for Manufacturing->xMII 12.0 Sample Projects and Tools.
Link:
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/webcontent/uuid/e0171f05-98c6-2a10-f5a0-8f2ec79d10a4
Regards
Pedro -
UCCX 8.5.1 Scripting Assistance - Set Priority
Hello,
I am trying to configure the priority in my script similar to how they did this in the below discussion.
https://supportforums.cisco.com/discussion/11892936/uccx-851-basic-scripting-assistance-set-priority
When I put the "set priority" in the script it errors out and callers hear the message that the system is experiencing problems. The script runs fine without the "set priority". Any assistance would be greatly appreciated.Chris,
I attempted to validate the script and did get an error with the "Set Enterprise Call Info" step. What's odd is that without the priority step the script still does not validate, but actually works fine. As soon as I add the priority step to it though it breaks.
I removed the "Set Enterprise Call Info" step and the priority works as expected now. Thank you for your assistance.
Jared -
Hello please forgive me as I am new to this but really need assistance. I have a form created in html on a site and have tried numerous tutorials on creating a php script which would be linked to this html form, but each one I try either doesn't work or it seems as if it goes through but then I never recieve the mail in my mailbox. I used my yahoo account as well as another account and didn't get anything , can anyone please assist as to what I should do here is what I have so far.
Thank you in advance for any assistance provided.
HTML:
<form name="contactform" method="post" action="mailer.php">
Name <input type="text" name="name"/><br/><br/>
Email <input type="text" name="email"/><br/><br/>
Address <input type="text" name="address"/><br/><br/>
City <input type="text" name="city"/><br/><br/>
When to Contact <select name="dropdown">
<option value="Morning">Morning</option>
<option value="Afternoon">Afternooon</option>
<option value="Evening">Evening</option>
</select><br/><br/>
Purpose of Contact <br/><textarea name="commment" rows="6" cols="40">
</textarea><br/> <br/><input type="submit" value="Submit Form Now" name="submit"/>
</form>
Here is the script that I am using :
<?php
if(isset($_POST['submit'])) {
$to = "[email protected]";
$subject = "Inquiry Form";
$name_field = $_POST['name'];
$email_field = $_POST['email'];
$address_field = $_POST['address'];
$city_field = $_POST['city'];
$comment= $_POST['comment'];
$dropdown = $_POST['dropdown'];
foreach($_POST['check'] as $value) {
$check_msg .= "Checked: $value\n";
$body = "From: $name_field\n E-Mail: $email_field\n $check_msg Option: $option\n Drop-Down: $dropdown\n Message:\n $message\n";
echo "Data has been submitted to $to!";
mail($to, $subject, $body);
} else {
echo "Form not Submitted!";
?>Hello thank you for responding... yes I believe it is , I have used a drag and drop flash component with a php script for another project I had worked on not too long ago and it worked fine. Im pretty sure it is running.
Does the code and script that I provided look correct to you? -
Custom Calculation Script Help Needed
I need to make a script that Sums a column of fields based on whether or not information found in another column of fields is the same or specific text. Please see below screenshot of what I would like it to do.
I would like a Sum of all Amounts that have the Code A...You can use this script as the custom calculation script of "SumOfA":
var total = 0;
for (var i=0; i<=2; i++) {
if (this.getField("p1TC."+i).value=="Code A")
total+=Number(this.getField("p1RecIn."+i).value);
event.value = total;
You can easily adjust it for the other field as well. -
Can't get ATV working with Onkyo TX-SR605-URGENT ASSISTANCE NEEDED!!
I'm hoping someone will be able to give me some advice, as I've now spent way too much time trying to figure out what's going wrong. I've just purchased the Onkyo receiver, which in itself is an extremely daunting piece of equipment after my very straightforward Rotel stereo amp!
I have only 1 HDMI connection available on my 32" Panasonic LCD TV & have, to date, had my ATV connected to it. With my ATV also connected to my amp (via RCA cable), I've been happily viewing/listening to all my iTunes content this way. I understand from reading elsewhere in this forum that I should be able to maintain my HDMI connection to ATV, connect into the receiver using optical, and by so doing, obtain the same results (if not better, thanks to the optical connection) as was previously the case. So far, I've been unable to do this. The only way I've been able to get any audio happening through the speakers is by reconnecting the RCA cable. The optical cable I purchased by the way is a good quality one so I doubt this is where the problem lies - although I guess it's possible.
The 1st problem I encountered when endeavouring to set the system up was that I was unable to get any onscreen information, as I couldn't find an AV input that responded to the receiver's 'setup instructions'. I assumed this would come via the TV's HDMI AV option, given the ATV is the means of connecting to the TV & that's connected via HDMI, but no joy. However, I did some of the basic setup w/o the onscreen visuals, and proceeded to see if I could access my iTunes content with the connections I referred to earlier. As I said before ... no go w/o the RCA cable connected and even then, no sound through the speakers if I reverted to just watching the TV.
I'm driving myself crazy here, and am now at the point where I can see no value in continuing to read & re-read the Onkyo manual. Although I can accept that it's likely to take me some time to learn how to properly drive this beast and get the most out of it, I don't think (from what I've read elsewhere here) that it should be this hard to get what I'm wanting up and running.
Please HELP and save my sanity!
[Thanks in advance to anyone who comes to the rescue ]jrmccoy, thank you so much! I have never used an optical connection until now, & so was not aware of the necessity to get the 'snap' happening in order to get a good connection. With some trepidation, I applied the required force to the connection to the ATV - sure enough, it 'snapped' in. I tried to get the receiver connection to snap as well, but had no luck there - it seems to be a very 'sloppy' rather than tight connection that slips out with very little effort. However, after pushing really hard on the cable & getting no better connection, I gave up & tried it as was. The result was that , yipee, I now have it all working as I'd anticipated it should. The only thing I still don't have, is the TV sound coming through the speakers - I thought that with the ATV providing the conduit between the TV & the receiver, I wouldn't need any other connection from the receiver to the TV. I suspect now that that was an incorrect assumption! Thought it was all a bit too easy ... sigh.
Once again Apple Discussions have come to my rescue - I honestly don't know what I'd do without the assistance of all you generous people out there with so much & such wide-ranging knowledge! -
Hyperlink Scripting Solution Needed
Perhaps there is already a way to do this that I am missing that doesn't involve scripting, but I will post here nonetheless. I am in need of a script or extension that takes all the product numbers I have on a page (they can easily be found with GREP..are usually ISBNs) and attaches the appropriate URL to them so they will be linked to products on our website. I have the current data source with each product, product number, and it's URL in Excel format.
Any suggestions would be appreciated as I have been copying and pasting for quite some time and I still have 200 pages to go. Thanks in advance!What you could try is:
Find with a GREP all product numbers. Change (also with GREP) to the
full URL that you need -- I presume this is simply a question of adding
some sort of URL prefix to the product number.
Then run InDesign's automatic "Create hyperlinks" command.
Then GREP out the URL part again, leaving only the original product
number (easy to do if you gave it a different color or something initially).
If that doesn't work, sounds like you would need a script. -
Syslinux Installer / Update Script - Testers Needed
For those who don't follow the ML that closely....
Hello Community,
Over the last few weeks I have been working on Syslinux support for the installer. With the help Thomas and Dieter I am nearing the completion of this project. As part of this project, I have written a script that will help install and update Syslinux (similar to that of grub-install).
Some key features of the script: syslinux-install_update.sh
* Install Syslinux to the FS + Partition Boot Loader (extlinux --install /boot/syslinux)
* Install Syslinux MBR
* Detect and optionally set the boot flag on the boot partition
* Update Syslinux – copy files and execute (extilnux --update /boot/syslinux)
* Support for GPT disks
* Support for RAID configurations
The goal is to include this script in the official Syslinux package. Therefore we need your help to test it.
syslinux-install_update.sh -i -a -m ..... install Syslinux, set the boot flag (if needed), and install the MBR
We need tests for the following setups:
/ + /boot on the *same* partition
/ + /boot on the *same* partition - RAID
/boot + root on *separate* partition
/boot + root on *separate* partition - RAID
All of the above using but using the GPT partition layout
NOTE: This is an alpha/beta stage script. The script modifies the first 440 bytes of the disk (using dd) and the partition table (using either sfdisk or sgdisk). Although the script should be safe to run, I am not responsible for any data loss that may occur.
Let us know the following:
* Did the script work for you?
* What was your partition setup? (see above)
* What version did you use?
* If the script did not work, please provide as much information as possible
Get the script here: https://gist.github.com/772138
Syslinux Sample Config File: http://projects.archlinux.org/svntogit/ … slinux.cfg
The Syslinux package in testing includes the above configuration file.
Cheers,
pytherAs Thomas puts it:
Thomas wrote:Syslinux is way more flexible and extensible than grub or lilo, actively developped (by someone who knows what he is doing and is always willing to fix bugs like yours) and feature-rich.
http://mailman.archlinux.org/pipermail/ … 17368.html
In regards to bootloaders in core
Pierre wrote:
ATM. we have grub1 in core/base and install that by default. The problem is that this project is virtually dead for a long time now and also not available on x86_64. Technically it has to be in the multilib repo.
Grub2 is currently in extra. Upstream development is still in flux. Imho its quite heavy and complex. An alternative successor would be extlinux from the syslinux package. It's very simple, easy to configure, actively maintained and reliable. Sure, it only supports booting from ext* and btrfs afaik but to be honest, if you use any other FS you should have a separate /boot even when using grub.
http://mailman.archlinux.org/pipermail/ … 18445.html
Why I like it:
* It is simple and easy to understand (see https://wiki.archlinux.org/index.php/Sy … t_Process)
* The devs are willing to help you out (they have helped me understand the Syslinux boot process and write this script)
* It is modular in nature and the Hardware Detection Tool (HDT) com32 module is cool
* Configuration is simple
* KISS (IMHO)
* GPT Support
Disadvantages:
* Can't boot from LVM volumes
* only ext2/3/4, btrfs, vfat file systems supported
Last edited by pyther (2011-01-16 21:56:41) -
Assistance Needed With Creating a Dynamic Query
I am attempting to rename several of my primary key/foreign key constraints from the default "SYS" names to something actually meaningful. I have several "semi-dynamic" queries that look something like this:
SELECT 'ALTER TABLE L_ROLE RENAME CONSTRAINT ' || CONSTRAINT_NAME || ' TO NN_ROLE_ID; ' FROM USER_CONSTRAINTS WHERE CONSTRAINT_TYPE ='C' AND TABLE_NAME='L_ROLE' AND search_cond(constraint_name)='"ID" IS NOT NULL';
Unfortunately, I have to capture the output of this script and run THOSE statements to get anything done.
I would like to convert this to simply use EXECUTE IMMEDIATE or if necessary a stored procedure. Unfortunately, I'm a bit confused on what the end result would look like. Any assistance would be appreciated.
Jason
p.s."search_cond" is a custom function defined as follows:
create function search_cond( p_cons_name in varchar2 ) return varchar2
as
l_search_condition varchar2(4000);
begin
select SEARCH_CONDITION into l_search_condition
from user_constraints
where constraint_name = p_cons_name;
return l_search_condition;
end;
For some reason, just running the query outside the function doesn't work.OK, try this. Please note that I commented out the actual exec immediate line and instead just dbms_output the commands that will get executed. This way you can try this first to make sure it produces what you expect. Then just put the exec immediate back in when you are ready.
DECLARE
TYPE cur_typ IS REF CURSOR;
v_cursor cur_typ;
v_query VARCHAR2(1000);
v_exec VARCHAR2(1000);
BEGIN
v_query := 'SELECT ''ALTER TABLE ''||uc.table_name||'' RENAME CONSTRAINT '' || uc.constraint_name ||
'' TO NN_''||ucc.column_name||'' '' thequery
FROM user_constraints uc,
user_cons_columns ucc
WHERE uc.constraint_name = ucc.constraint_name
AND uc.constraint_type =''C''
AND search_cond(uc.constraint_name)=''"ID" IS NOT NULL''
AND uc.constraint_name LIKE ''SYS%'' ';
DBMS_OUTPUT.PUT_LINE(v_query);
OPEN v_cursor FOR v_query;
LOOP
FETCH v_cursor INTO v_exec;
EXIT WHEN v_cursor%NOTFOUND;
--EXECUTE IMMEDIATE (v_exec);
dbms_output.put_line(v_exec);
END LOOP;
CLOSE v_cursor;
END;
/Greg -
Urgent Assistance needed on this
Hi, I am fairly new to Java and this assignment is way over my knowledge, if anyone able to assist me on the whole coding, that would be great. Thanks all.
I am thinking on using array and the file heading on hardware.dat can be omitted.
Task-
Imagine that you are an owner of a hardware store and need to keep an inventory that can tell you what different kind of tools you have how many of each you have on hand and cost of each one.
Now do the following:
(1) Write a program (Tool.java) that,
(1.1) Initializes (and creates) a file ?hardware.dat?
(1.2) lets you input that data concerning each tool, i.e. the program must ask the user for input and each of the user input is written back in the file.
The file must have the following format:
Record# Tool Name Qty Cost per item (A$)
1 Electric Sander 18 35.99
2 Hammer 128 10.00
3 Jigsaw 16 14.25
4 Lawn mower 10 79.50
5 Power saw 8 89.99
6 Screwdriver 236 4.99
7 Sledgehammer 32 19.75
8 Wrench 65 6.48
(1.3) Exception handling that must be taken into account-
(1.3.1) User must not input incorrect data
(1.3.2) Cost of the item must be a number
(2) Write another program (ListToolDetails.java) that,
(2.1) lets you list all the tools, i.e. it will read the data from ?hardware.dat? in a proper manner (you can choose the display format), File name should not be hard coded.
(2.2) lets you delete a record for a tool, as an example- you can delete all the details pertaining to the tool ? Wrench. Once you delete the information, records must be updated in the ?dat? file.
(2.3) List the total price(rounded to two decimal places) of each tool, as an example, the total price of all the Hammers is A$128 * 10 = A$1280.00
(2.4) Exception handling that must be taken into account-
(2.3.1) In case user inputs an incorrect file name
(2.3.2) In case user inputs incorrect Tool name (when the user wants to delete something)
Bonus Task
This task deals with the inclusion of Javadoc comments and generation of documentation pages.
Task-
Your task is to add meaningful javadoc comments in all the programs and generate HTML documentation pages.Hi, I am fairly new to Java and this assignment is
way over my knowledge, if anyone able to assist me on
the whole coding, that would be great. Thanks all.
I am thinking on using array and the file heading on
hardware.dat can be omitted.
Task-
Imagine that you are an owner of a hardware store and
need to keep an inventory that can tell you what
different kind of tools you have how many of each you
have on hand and cost of each one.
Now do the following:
(1) Write a program (Tool.java) that,
(1.1) Initializes (and creates) a file
?hardware.dat?
(1.2) lets you input that data concerning each tool,
i.e. the program must ask the user for input and each
of the user input is written back in the file.
The file must have the following format:
Record# Tool Name Qty Cost per item (A$)
1 Electric Sander 18 35.99
2 Hammer 128 10.00
3 Jigsaw 16 14.25
4 Lawn mower 10 79.50
5 Power saw 8 89.99
6 Screwdriver 236 4.99
7 Sledgehammer 32 19.75
8 Wrench 65 6.48
(1.3) Exception handling that must be taken into
account-
(1.3.1) User must not input incorrect data
(1.3.2) Cost of the item must be a number
(2) Write another program (ListToolDetails.java)
that,
(2.1) lets you list all the tools, i.e. it will read
the data from ?hardware.dat? in a proper manner (you
can choose the display format), File name should not
be hard coded.
(2.2) lets you delete a record for a tool, as an
example- you can delete all the details pertaining to
the tool ? Wrench. Once you delete the information,
records must be updated in the ?dat? file.
(2.3) List the total price(rounded to two decimal
places) of each tool, as an example, the total price
of all the Hammers is A$128 * 10 = A$1280.00
(2.4) Exception handling that must be taken into
account-
(2.3.1) In case user inputs an incorrect file name
(2.3.2) In case user inputs incorrect Tool name (when
the user wants to delete something)
Bonus Task
This task deals with the inclusion of Javadoc
comments and generation of documentation pages.
Task-
Your task is to add meaningful javadoc comments in
all the programs and generate HTML documentation
pages.First of all , If its your assignment you are ment to do it your self !!
if u have a problem understanding stuff ask your tutor or prof.
they are paid to teach u this stuff....
second : break the problem in to small task as suggested before, it will help u understand the stuff better
Last thing : No one here is gona do your home work for u
so better start doing some research and if u have an implementation or a logic problem then post them here, sure people will help.
now from what i read i think u need to start looking up on
1) get data from the user : u need some thing like bufferedreader
2) validate the input : check with the upper and lower bounds
3) File handing : research on how to write to a file there are a milion pages there on the web teaching you this stuff -
Report Script Help Needed - Data Extract
Hi,
I have a cube with 11 dims: Account, Period, Resource, Facility, SSSS, CCCC, Activity, Years, Version, Scenario, Charges
I need a report script that will extract data for a certain year and scenario only. I have not written a report script in a long time and have the following thus far. However it's not extracting data that I know exists. Can anyone help? Thanks is advance. This runs but I just get a blank screen or file....
//ESS_LOCALE English_UnitedStates.Latin1@Binary
// This report script extracts data from cube
"FY11"
{DECIMAL 4}
{NAMEWIDTH 25}
{SUPCOMMAS}
{SUPBRACKETS}
{SUPPAGEHEADING}
{NOINDENTGEN}
{SUPMISSINGROWS}
{SUPZEROROWS}
{TABDELIMIT}
{SUPFEED}
{ROWREPEAT}
"JAN"
"FEB"
"MAR"
//"APR"
//"MAY"
//"JUN"
//"JUL"
//"AUG"
//"SEP"
//"OCT"
//"NOV"
//"DEC"
"BUDGET"
// This is the members of the CCCC dimension to extract
// This is the members or the ACCOUNT dimension to extract
!Hello -
You can try/modify the code below and see if this works -
//ESS_LOCALE English_UnitedStates.Latin1@Binary
{ SUPMISSINGROWS }
{ SUPZEROROWS }
{ SUPFEED, SUPBRACKETS, SUPCOMMAS }
{ NOINDENTGEN }
{ DECIMAL 4}
{ NAMEWIDTH 30 }
{ ROWREPEAT }
{ TABDELIMIT }
{MISSINGTEXT "-" }
<PAGE ("Scenario", "Resource", "Facility" ,"SSSS", "Activity", "Version", "Charges")
"Budget"
"Resource"
"Facility"
"SSSS"
"Activity"
"Version"
"Charges"
<COLUMN ("Year","Period")
"FY11"
"Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"
<ROW ("Account", "CCCC")
<LINK (<DESCENDANTS ("ACCOUNT") AND <LEV("ACCOUNT",0))
<LINK (<DESCENDANTS ("RT9_CCCC") AND <LEV("CCCC",0))
Here you may want to change teh combination in the Page dimensions for eg -
I know for Scenario you want Budget
But for Version should it be "Version" or may be "Working" Or "Final" or any other version dimension member ...?
Same way modify the dimension memebres for other dimensions.
Regards
Edited by: Rosi on Aug 24, 2009 10:01 AM
Edited by: Rosi on Aug 24, 2009 10:02 AM -
TCL script help needed on Nexus7000 !
Does anyone know how to create a TCL script on Nexus7000 switch for following scenario ? Need urgent help here.. :-
Here is what I am trying to do :-
1. Whenever following log on "show log log" prints out :-
testnexus7000 %PIXM-2-PIXM_SYSLOG_MESSAGE_TYPE_CRIT:
2. Print out the output of show system internal pixm errors
And look for following line :-
[102] pixm_send_msg_mcast(1208): MTS Send to LC X failed >> where X is 0 based
and this error can occur multiple times for different LCs too.
4. Reload line card (s) X and syslog " task done"
Regards
VijayaHi,
Vijaya I found same post on support cisco forums So people helped someone in same question !!!!!!
Please read it ....
https://supportforums.cisco.com/thread/2128886
Yes plus if u can help me in ......Cisco ASA same security problem than that will be good for me .....I will contact u and will be great help for me if u help
Hope that link help u .....
Bye,
Maybe you are looking for
-
Firefox will not open. If I click the icon I get a less than oe second flash of Firefox on the bar and then its quickly changes to Finder. I have tried many different User names/Passwords that I no longer know which one is used. Please I have spent h
-
Magic Mouse not recognizing on MacBook Pro with Snow Leopard 10.6.2
I've tried everything I know how to do and now I'm asking for help. I just purchased the Magic Mouse yesterday and successfully paired it to my MacBook Pro. Left click and Right click both work fine, but I can't scroll or use any gestures with it. I
-
Hey Gang, I'm creating a video/film take sheet in numbers. Being somewhat new to Numbers, I would like to be able to just punch in timecode numbers and have the colon automatically appear(12051509 would be 12:05:15:09). Could anyone help with this ty
-
Hi, I have the following problem: I need to write a String to a file. The string is encoded in Windows-1250 code page. I use RandomAccessFile.writeBytes(String) method but for special characters (Polish letters) there are written some Ascii signs (0-
-
Third party emulators with Logic Pro X
I recently got Studio Devils Virtual Guitar Amp II. Its got some pretty awesome tube amp sounds that I want to use and record. Is It possible to use a third party emulator as an input to Logic Pro X?