Scripting Multiple Behaviors for One Button
Dear Jimmy,
This question is similar but different to the ones you helped me with a few weeks ago but different enough I need some assistance. Posted this last week, no one has yet to answer. Hope your on line today.
I now need to replalce the text that read "Invalid until Submitted" and then changed and read "Submitted and Valid" after the Submit Button has been clicked to something a little different.
I now need text to read "Draft for Review" on the form until the submit button is clicked. This text "Draft for Review" needs to disappears or become invisible after the email button has been clicked on the form.
Additionally, I need a date on the form to be filled in before the form user can email the form out.
I now need the form to:
(1) require a date field entry in a date/time box in order to submit the form by email.
(2) take the serial number from a field and put it in the email submect line.
and (3) make the text "Draft for Review" text disappear or become invisible,
ALL 3 need to happen, when the submit button is clicked. (Which is a button, not an email button now).
Can you tell me why the scripting I have below will give the message when the button is clicked. I want, "Please enter the date the Silver Coverage Inclusions were explained" if the date is not entered. However, without a date being entered, proceed to open email without making form user enter the date after they click OK when the request message to enter the date come up? This allows the form to be sent WITHOUT the form user really entereing the date because the email opens up next.
Fortunately, my "Draft for Review" text disappears.
The Scripting being used is (combination of some you gave):
if(T100.rawValue == null)
app.alert("Please enter date selling dealer explained Silver Level Coverage Inclusions.");
xfa.host.setFocus("T100");
StaticText3.presence = "invisible";
var emailSubject = serialNumber.rawValue;
var myDoc = event.target;
myDoc.mailDoc(
false,
"[email protected]",
"[email protected]",
"[email protected]",
emailSubject,
"Email body goes here."
Can you tell me how to make all three work together correctly and in the 1,2,3, order from above?
Thank you,
Victoria Holt
To post a message, compose your text in the box below, then click on Post (below) to send the message.
A blank line starts a new paragraph
Dear Jimmy,
Thank you! This worked.
Your really really GREAT at this.
I have several very specific questions I need answered to make a couple of other forms work.
I need help with a similar but different submit button.
I also need assistance with formatting a few numeric and alpha numeric fields.
I thought you might work with Adobe but later this afternoon soon a link with an email that seemed to indicate you might be affiliated with Pac Bell.
My questions is since I need some more specific help rather quickly would you it be alright with you and ethically correct for me to comission you to help me by telephone and email on our off hours tonight and some Saturday?
I do hope so. If you would be as kind please let me know how you would like to exchange phone numbers and/or email.
Thank you again. I do look forward to a reply. I hope you can help.
Best regards,
Victoria HOlt
Similar Messages
-
Mutiple Behaviors from one button
How can i set multiple behaviors to one button? I want a
popup window to close when I click Submit, and also change the main
page to a different website. Any help with this will be
appreciated.Write a script that does it, activate the script with the
button.
"B3CARL" <[email protected]> wrote in
message
news:ea9at5$anv$[email protected]..
> How can i set multiple behaviors to one button? I want a
popup window to
> close when I click Submit, and also change the main page
to a different
> website. Any help with this will be appreciated. -
How do i scan multiple pages for one attachment
I know how to scan but I don't know how to scan multiple pages for one attachement....Help please
Hi dagda24,
You can scan multiple pages into a single document with the scan to PDF option. Use the following steps to do so:
1. Open MP Navigator.
2. Click One Clcik.
3. Click Save to PC.
4. Change the File Type from PDF to PDF (multiple pages).
5. Make any other changes as needed, then click scan.
Did this answer your question? Please click the Accept as Solution button so that others may find the answer as well. -
Multiple functions in one button
Good evening,
Is it possible to run multiple functions with one button?
For example: With a button to open and close an object?
ThanksHi Rinku,
This is an example for you:
A Piano Key Control in C#
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Can you have multiple users for one account?
Can you have multiple users for one account? if so how do you set it up.
We are using it for our department and it would be great to see who created what form instead of it being all one name.Each person should have their own account. You can easily share the forms with other people in your department. You will be able to see who the author of the form is.
More information on how to share :
http://forums.adobe.com/docs/DOC-2462
Information on how to copy a forms to a different account :
http://forums.adobe.com/docs/DOC-1390
Hope this helps
Gen -
How to open multiple sessions for one user?
Sorry for the silly question but I couldn't find it googling or searching through this forum, so I started wondering whether it's possible in SQL Developer to open multiple sessions for one user. I'm fairly new to SQL Developer and databases in general.
When I open SQL Developer and connect to a schema, a worksheet opens named MYSCHEMA. If I disconnect then connect, another worksheet opens, named MYSCHEMA~1. I assumed these were different sessions, but if I enter into one worksheet:
select col1 from my_table where row_id = 1
-- shows result is 1
update my_table set col1 = 0 where row_id = 1
select col1 from my_table where row_id = 1
-- shows result is 0and then enter into the second worksheet:
select col1 from my_table where row_id = 1
-- shows result is 0I would have expected the second worksheet to report 1 because the first worksheet did not issue a COMMIT. Thus, I'd guess both worksheets are the same session? Is that right? If so, how do I have two sessions open simultaneously (opened by same user)?
I'm trying to implement the code at the bottom of this post, for which testing requires at least two sessions:
Re: Help with Procedure
Edited by: tem on Apr 18, 2012 6:44 AMThanks Jim,
Ctrl-Shift-N doesn't do anything for me. I'm on a mac -- by experimenting it looks like command-N does what you're looking for. This appears to be the same as left-clicking on the "New" icon in the top left corner of SQL Developer, or selecting from the pull-down menu, File > New.
This opens "Create a New" window that appears to be a wizard. What would I select at this point? Options are: Database Connection, Table, View, Package, ...
I don't see an option for "Worksheet".
UPDATE:
OK, I found that if I select "SQL File", a worksheet becomes available. Perhaps this is what you intended. However, when I issue the command
select col1 from my_table where row_id = 1;it still returns 0 instead of 1. Hmm, maybe my initial assumption was wrong -- if this is a second (e.g. different) session, should I expect the changes made in the first session in SQL Developer (the UPDATE command) WITHOUT a commit, to be observed in this second session? I thought that changes made in one session were not viewable in a different session until these changes are committed in the first session? If so, how to show this in SQL Developer? I must be missing something basic here.
Or, is SQL Developer issuing some sort of "auto-commit" without my knowledge?
Edited by: tem on Apr 18, 2012 8:00 AM -
Multiple Values For one Condition in Choose From List
I have used one Business Partner Choose From List in my form but i want to give condition in that choose from list on GroupCode .But the condition will have multiple values like 100,102,104 then how i will write the code to incorporate multiple values for one single condition.
Hi,
Check this thread
How to set a Multiple condition in a single CFL
Hope that helps,
Vasu Natari. -
Can anybody tell me if it is possible to produce multiple labels for one order. For example a customer orders 4 units. A standard package holds 3 units so an additional package is required for the fourth unit. As a result two packing labels are required. Does OM 11i support this?
Hi Aj
Thanks for your quick response. I was think on the same lines and you have confirmed that we will have to split the line into several lines on sales order.
I am trying to do that now in our ECC box i.e item 10 with payer 1 and item 2 with payer 2. But as soon as I try to change the payer on item 2, i get the following error message which relates to credit management being active.
I am assuming once we decativate CM, we should be good to go. PLease confirm. Also once its time for billing, will SAP automatically split the billing into different invoices per sales order line item based upon number of payers on the line items?
PLease confirm your thoughts.
Regards
Jai -
Multiple currency for one vendor
Hi,
Is there any way to have multiple currency for one Vendor?Hi Siva,
Yes, It is possible to maintain multiple currency for one vendor. How ? The procedure as follows.
During vendor creation using T-code XK01 and currency enter input data screen select Extra option on the top of the screen click and display 'Add Purchasing Data' option click opened new screen and give input data plant, tick mark of the option Data retent.at plant level allowed and tick for OK.
After that, you have enter multiple currency for the same vendor during vendor creation time, then you will create PO using T-code ME21N the currency field you have fill as you required currency by default first currency of vendor created will be display.
Hope, it is useful for you.
Regards,
K.Rajendran -
Multiple choose for one parameter
Hi, does Oracle Report support the multiple choose for one parameter? i used a IN statement inside my WHERE conditions as following
Select ....
where ....
content.style IN (:p_style)
(content.style is a column in table "content", and "p_style" is a bind variable)
i want user can have multiple choises on p_style value. but in the parameter form i only can make one choise. Does any one know how to do the multi choise from parameter form? if you do, please help me. Thank you very much.
Li<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by whl:
Hi, does Oracle Report support the multiple choose for one parameter? i used a IN statement inside my WHERE conditions as following
Select ....
where ....
content.style IN (:p_style)
(content.style is a column in table "content", and "p_style" is a bind variable)
i want user can have multiple choises on p_style value. but in the parameter form i only can make one choise. Does any one know how to do the multi choise from parameter form? if you do, please help me. Thank you very much.
Li<HR></BLOCKQUOTE>
you can do that by flowing the stap
at first you will write a select statement
select ...
From ...
where Style (colomn name) = &style1
then you create a user parameter soupose wich name is P_style and which valus is x, y, and z you should enter another value soupose that name is 'All' (All means x + y + Z)
then you write in after parameter form trigger...
IF :P_style = 'All' then
:style1 := null;
Else :style1 := 'and style (style means your column name) = :P_style;
end if;
null -
Multiple Vendors for one Document Number in BW
Hello All,
We are getting Multiple Vendors for one document in BW. In R/3, standard table and RSA3, we are able to see correct vendor where as when it is coming into BW it is showing incorrect vendor in PSA and Data Target.
All issues are coming for Process Key 1 only.
*For Example:*
Document: 9400000007
Schedule Line:1
Doc Item: 1
Vendor:
0010019229 - Incorrect Vendor
0010018962 - Correct Vendor
Committed Quantity: 0
Doc Type:
ZNB
ZNPP
Process Key: 1
Not sure how to upload screen shot.
Please suggest.
Thanks,
VijayHi ,
Are you loading for the first time ? If yes have you checked Transaction BF11 settings.
Regards
Rahul Bindroo -
Multiple payers for one sold to party
Hi All,
Can we have multiple payers for one sold to party?
ThanksHi
Yes, you can have multiple PAYER for one Sold-to-party (only in the Customer master).
This Partner relationship is maintained in two places. They are,
> Customer master ( sales area data > partner function tab )
> Sales documents (at Header level and Item level)
In Customer master data, you can have multiple partners ( e.g, multiple Payers) for one Partner function( e.g, SH,BP,PY).
But in Sales document, you can have only one Partner for one Partner function.
So, you can have only in Customer master data multiple pertners. So, first create the different Payers through XD01 ,choosing Account group "Payer".
Then assign all those PAYERS in the master data of the Sold-to-party by going in the change mode XD02 and save it.
When you create the Billing document, system will give a pop-up of those list of Payers and you have to choose one . You can have only one Payer in one Billing document. -
my post processing times have tripeled and the develop tasks take multiple seconds for one adjustment, Please Help. . . .
my post processing times have tripeled and the develop tasks take multiple seconds for one adjustment, Please Help. . . .
-
On my contact list I have multiple names for one person
On my contact list I have multiple names for one person.
The Account Owner can see the call/text logs for all lines on the account, but each line needs its own My Verizon account for messaging and backups. Those lines will be listed as Account Members and will have limited info. available to them regarding the account.
-
Menu Button in ALV toolbar (multiple choices for a button)
Hi abapers,
I would like to have a button with multiple choices in the toolbar;
at the moment I have created a menu button with just one function.
Here is my code:
CLASS lcl_event_receiver (Definition)
CLASS lcl_event_receiver DEFINITION.
PUBLIC SECTION.
METHODS:
handle_toolbar
FOR EVENT toolbar OF cl_gui_alv_grid
IMPORTING e_object e_interactive.
ENDCLASS. "lcl_event_receiver DEFINITION
CLASS lcl_event_receiver (Implementation)
CLASS lcl_event_receiver IMPLEMENTATION.
METHOD handle_toolbar.
DATA: ls_toolbar TYPE stb_button.
*Separator
CLEAR ls_toolbar.
MOVE 3 TO ls_toolbar-butn_type.
APPEND ls_toolbar TO e_object->mt_toolbar.
*Button
CLEAR ls_toolbar.
MOVE 1 TO ls_toolbar-butn_type.
MOVE 'EDIT' TO ls_toolbar-function.
MOVE icon_change TO ls_toolbar-icon.
MOVE ' Modifica'(l02) TO ls_toolbar-text.
MOVE ' ' TO ls_toolbar-disabled.
MOVE 'Modifica' TO ls_toolbar-quickinfo.
APPEND ls_toolbar TO e_object->mt_toolbar.
ENDMETHOD. "handle_toolbar
ENDCLASS. "lcl_event_receiver IMPLEMENTATIONhi,
check this code and reward me if it helps you..
TYPE-POOLS : slis,icon.
*Structure declaration for tcodes
TYPES : BEGIN OF ty_table,
tcode TYPE tcode,
pgmna TYPE progname,
END OF ty_table.
*Structure for tocde text
TYPES : BEGIN OF ty_itext,
tcode TYPE tcode,
ttext TYPE ttext_stct,
sprsl TYPE sprsl,
END OF ty_itext.
*Structure for output display
TYPES : BEGIN OF ty_output,
tcode TYPE tcode,
pgmna TYPE progname,
ttext TYPE ttext_stct,
END OF ty_output.
*internal table and work area declarations
DATA : it_table TYPE STANDARD TABLE OF ty_table INITIAL SIZE 0,
it_output TYPE STANDARD TABLE OF ty_output INITIAL SIZE 0,
it_ittext TYPE STANDARD TABLE OF ty_itext INITIAL SIZE 0,
wa_table TYPE ty_table,
wa_output TYPE ty_output,
wa_ittext TYPE ty_itext.
*Class definition for ALV toolbar
CLASS: lcl_alv_toolbar DEFINITION DEFERRED.
*Declaration for toolbar buttons
DATA : ty_toolbar TYPE stb_button.
Data declarations for ALV
DATA: c_ccont TYPE REF TO cl_gui_custom_container, "Custom container object
c_alvgd TYPE REF TO cl_gui_alv_grid, "ALV grid object
it_fcat TYPE lvc_t_fcat, "Field catalogue
it_layout TYPE lvc_s_layo, "Layout
c_alv_toolbar TYPE REF TO lcl_alv_toolbar, "Alv toolbar
c_alv_toolbarmanager TYPE REF TO cl_alv_grid_toolbar_manager. "Toolbar manager
*Initialization event
INITIALIZATION.
*Start of selection event
START-OF-SELECTION.
*Subroutine to get values from tstc table
PERFORM fetch_data.
*subroutine for alv display
PERFORM alv_output.
CLASS lcl_alv_toolbar DEFINITION
ALV event handler
CLASS lcl_alv_toolbar DEFINITION.
PUBLIC SECTION.
*Constructor
METHODS: constructor
IMPORTING
io_alv_grid TYPE REF TO cl_gui_alv_grid,
*Event for toolbar
on_toolbar
FOR EVENT toolbar
OF cl_gui_alv_grid
IMPORTING
e_object.
ENDCLASS. "lcl_alv_toolbar DEFINITION
CLASS lcl_alv_toolbar IMPLEMENTATION
ALV event handler
CLASS lcl_alv_toolbar IMPLEMENTATION.
METHOD constructor.
Create ALV toolbar manager instance
CREATE OBJECT c_alv_toolbarmanager
EXPORTING
io_alv_grid = io_alv_grid.
ENDMETHOD. "constructor
METHOD on_toolbar.
Add customized toolbar buttons.
variable for Toolbar Button
ty_toolbar-icon = icon_generate.
ty_toolbar-butn_type = 0.
ty_toolbar-text = 'Button1'.
APPEND ty_toolbar TO e_object->mt_toolbar.
ty_toolbar-icon = icon_voice_output.
ty_toolbar-butn_type = 0.
ty_toolbar-text = 'Button2'.
APPEND ty_toolbar TO e_object->mt_toolbar.
ty_toolbar-icon = icon_phone.
ty_toolbar-butn_type = 0.
ty_toolbar-text = 'Button3'.
APPEND ty_toolbar TO e_object->mt_toolbar.
ty_toolbar-icon = icon_mail.
ty_toolbar-butn_type = 0.
ty_toolbar-text = 'Button4'.
APPEND ty_toolbar TO e_object->mt_toolbar.
ty_toolbar-icon = icon_voice_input.
ty_toolbar-butn_type = 0.
ty_toolbar-text = 'Button5'.
APPEND ty_toolbar TO e_object->mt_toolbar.
Call reorganize method of toolbar manager to
display the toolbar
CALL METHOD c_alv_toolbarmanager->reorganize
EXPORTING
io_alv_toolbar = e_object.
ENDMETHOD. "on_toolbar
ENDCLASS. "lcl_alv_toolbar IMPLEMENTATION
*& Form fetch_data
text
--> p1 text
<-- p2 text
FORM fetch_data .
Select the tcodes upto 200 rows from TSTC
SELECT tcode
pgmna
FROM tstc
INTO CORRESPONDING FIELDS OF TABLE it_table
UP TO 200 ROWS
WHERE dypno NE '0000'.
*Select the tcode textx
IF it_table[] IS NOT INITIAL.
SELECT ttext
tcode
sprsl
FROM tstct
INTO CORRESPONDING FIELDS OF TABLE it_ittext
FOR ALL ENTRIES IN it_table
WHERE tcode = it_table-tcode
AND sprsl = 'E'.
ENDIF.
Apppending the data to the internal table of ALV output
LOOP AT it_table INTO wa_table.
wa_output-tcode = wa_table-tcode.
wa_output-pgmna = wa_table-pgmna.
For texts
READ TABLE it_ittext INTO wa_ittext WITH KEY tcode = wa_table-tcode.
wa_output-ttext = wa_ittext-ttext.
APPEND wa_output TO it_output.
CLEAR wa_output.
ENDLOOP.
ENDFORM. " fetch_data
*& Form alv_output
text
--> p1 text
<-- p2 text
FORM alv_output .
*Calling the ALV
CALL SCREEN 0600.
ENDFORM. " alv_output
Calling the ALV screen with custom container
On this statement double click it takes you to the screen painter SE51.Enter the attributes
*Create a Custom container and name it CC_CONT and OK code as OK_CODE.
*Save check and Activate the screen painter.
Now a normal screen with number 600 is created which holds the ALV grid. PBO of the actual screen , Here we can give a title and *customized menus
*& Module STATUS_0600 OUTPUT
text
MODULE status_0600 OUTPUT.
SET PF-STATUS 'xxxxxxxx'.
SET TITLEBAR 'xxx'.
ENDMODULE. " STATUS_0600 OUTPUT
calling the PBO module ALV_GRID.
*& Module ALV_GRID OUTPUT
text
MODULE alv_grid OUTPUT.
*create object for custom container
CREATE OBJECT c_ccont
EXPORTING
container_name = 'CC_CONT'.
*create object of alv grid
CREATE OBJECT c_alvgd
EXPORTING
i_parent = c_ccont.
create ALV event handler
CREATE OBJECT c_alv_toolbar
EXPORTING
io_alv_grid = c_alvgd.
Register event handler
SET HANDLER c_alv_toolbar->on_toolbar FOR c_alvgd.
Fieldcatalogue for ALV
PERFORM alv_build_fieldcat.
ALV attributes FOR LAYOUT
PERFORM alv_report_layout.
CHECK NOT c_alvgd IS INITIAL.
Call ALV GRID
CALL METHOD c_alvgd->set_table_for_first_display
EXPORTING
is_layout = it_layout
CHANGING
it_outtab = it_output
it_fieldcatalog = it_fcat
EXCEPTIONS
invalid_parameter_combination = 1
program_error = 2
too_many_lines = 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.
ENDMODULE. " ALV_GRID OUTPUT
*& Form alv_build_fieldcat
text
<--P_IT_FCAT text
FORM alv_build_fieldcat.
DATA lv_fldcat TYPE lvc_s_fcat.
CLEAR lv_fldcat.
lv_fldcat-row_pos = '1'.
lv_fldcat-col_pos = '1'.
lv_fldcat-fieldname = 'TCODE'.
lv_fldcat-tabname = 'IT_OUTPUT'.
lv_fldcat-outputlen = 8.
lv_fldcat-scrtext_m = 'TCODE'.
APPEND lv_fldcat TO it_fcat.
CLEAR lv_fldcat.
lv_fldcat-row_pos = '1'.
lv_fldcat-col_pos = '2'.
lv_fldcat-fieldname = 'PGMNA'.
lv_fldcat-tabname = 'IT_OUTPUT'.
lv_fldcat-outputlen = 15.
lv_fldcat-scrtext_m = 'PROGNAME'.
APPEND lv_fldcat TO it_fcat.
CLEAR lv_fldcat.
lv_fldcat-row_pos = '1'.
lv_fldcat-col_pos = '3'.
lv_fldcat-fieldname = 'TTEXT'.
lv_fldcat-tabname = 'IT_OUTPUT'.
lv_fldcat-outputlen = 60.
lv_fldcat-scrtext_m = 'Description'.
APPEND lv_fldcat TO it_fcat.
CLEAR lv_fldcat.
ENDFORM. " alv_build_fieldcat
*& Form alv_report_layout
text
<--P_IT_LAYOUT text
FORM alv_report_layout.
it_layout-cwidth_opt = 'X'.
it_layout-zebra = 'X'.
ENDFORM. " alv_report_layout
PAI module of the screen created. In case we use an interactive ALV or
*for additional functionalities we can create OK codes
*and based on the user command we can do the coding.
*& Module USER_COMMAND_0600 INPUT
text
MODULE user_command_0600 INPUT.
ENDMODULE. " USER_COMMAND_0600 INPUT
thanks,
gupta
Maybe you are looking for
-
Computer still taking a long time to boot
I have a late 2013 21.5" iMac (Model: ME087LL/A) with a 1TB hard drive (5400 rpm). I just switch from Windows to Mac, so I tried to keep everything as simple as possible on the transfer of files. I had only added Kaspersky Antivirus and Western Dig
-
I want to scan a blank form and fill in data in the resulting file. The PDF form
When UI download a form in PDF format, I am not allowed to fill in the blanks in the form eg. my name, ss#, address etc.
-
Java Stored Proc error.
Hi, I wrote a Java class to do a LDAP lookup.Loaded the class into the database and on trying to call it in SQL Plus got the error 'Cannot Instantiate Class:com.sun.jndi.ldap.LdapCtxFactory'. Please let me know what I am missing here. Thanks.
-
Can I show metadata date format in DD/MM/YY rather than MM/DD/YY?
Being a UK user I want to see any date shown in the metadata in DD/MM/YY format rather than the MM/DD/YY . Is this possible, even if I have to edit the XML schema by hand?
-
HT2090 What if the Camera is undetected?
Hey sorry to be a bother, My camera was working excellent, and was really happy and impressed my the photo booth (camera whore was the term they gave me). But three weeks and my camera stopped working! I tried to restart, update, and configure my set