AUTO Populate a Form's Field with MySQL Table Field(s) Data
Hi,
I can easily make forms that add, edit/update, delete.
But I want to be able to populate a form field (usually a popup field) with a selection of records from a specific table.
Say I have a table: CARS
That has fields: MODEL, MANUFACTURER, PRICE
I want to populate the form field named Model with all the CARS:MODEL values in the table.
...and some times...
I want to populate the form field named Model with all the CARS:MODEL values in the table where CARS:PRICE < 20,000
Now, I am fine with the whole HTML, MySQL, PHP programming and can do this all by long-hand coding.
But I'd like to speed it all up and use Dreamweaver! :-)
AND I'd like the edit/update forms to also selected the current records value and make it SELECTED whilst also holding all the other values..., using Dreamweaver.
I can do this all by long-hand coding, but I'd like to speed up my development (and colleagues) and use Dreamweaver! :-)
I hope all we need is a pointer to which menu items to use for this way of working within Dreamweaver...
Thank you,
Take a look at DW's Dynamic Form Elements server behaviors.
Similar Messages
-
How to compare table's date field with dropdown year field
Hi All,
I have one requirement to display the selected rows from a database table based on the selection of drop down.
Here, I have one dropdown of year(like 2009,2010,....) and I have one database table which contains one field with "DATE".
Now, I want to compare table's DATE field with my dropdown field.
Problem is that table's DATE field is of type "DATS" and dropdown is of type INTEGER(or) STRING ...
How to compare this fields?
Can any one please give me solution for this...!
Thanks in Advance!Hi sreelakshmi.B,
try the following:
DATA lt_dats TYPE TABLE OF dats.
DATA l_dat_i TYPE i.
DATA l_dat_c_4(4) TYPE c.
DATA l_dat_c_12(12) TYPE c.
DATA l_dats_from TYPE dats.
DATA l_dats_to TYPE dats.
*Move Date from Integer to Char
l_dat_c_4 = l_dat_i = 2005.
*Create Date From use in WHERE-Clause
CONCATENATE '01.01.' l_dat_c_4 INTO l_dat_c_12.
CALL FUNCTION 'CONVERT_DATE_TO_INTERNAL'
EXPORTING
date_external = l_dat_c_12
IMPORTING
date_internal = l_dats_from
EXCEPTIONS
date_external_is_invalid = 1
OTHERS = 2.
IF sy-subrc <> 0.
ENDIF.
*Create Date To use in WHERE-Clause
CONCATENATE '31.12.' l_dat_c_4 INTO l_dat_c_12.
CALL FUNCTION 'CONVERT_DATE_TO_INTERNAL'
EXPORTING
date_external = l_dat_c_12
IMPORTING
date_internal = l_dats_to
EXCEPTIONS
date_external_is_invalid = 1
OTHERS = 2.
IF sy-subrc <> 0.
ENDIF.
* Select records in range
SELECT *
FROM [DBTAB]
INTO TABLE [ITAB]
WHERE [DATE] BETWEEN l_dats_from
AND l_dats_to.
Regards
REA -
I'm creating textboxes in a form where multiple users will fill out their contact info. As I fill in the text box the lines below a given column automatically populate with the information above. So if in line 1 I filled out John Smith for name When I began typing for line 2 John Smith would auto populate. I'm not sure because the PDF was created before I started my current job but I think it was a PDF created from a word doc. Any advice would be much appreciated, thanks.
If the field names are the same, this is the behavior that you will get. So if you want to avoid this, simply give the fields unique names.
-
I have a group of 3 Check Boxes for user to select their Work Shift: The check boxes are set up to be mutually exclusive (same name: "EMP_Shift", different Export Values: Day, Evening, Night).
Form Field properties name: EMP_Shift (for all 3 check boxes)
Acrobat edit panel field names: EMP_Shift#0, EMPShift#1, EMPShift#2
Export Values: Day, Evening, Night (chose these only because they are descriptive)
I need to Auto-populate a Text Field named EMP_WorkShift with "Day" if EMP_Shift#0 is selected, "Evening" if EMPShift#1 is selected, or "Night" if EMPShift#2 is selected.
Is there a script I can use to accomplish this in Acrobat Pro X.The simplest is to set up the text field to be calculated using the following custom Calculate script:
// Get the value of the check box
var v = getField("EMP_Shift").value;
// Set this field value
event.value = v !== "Off" ? v : "";
You'd normally set the text field to be read-only, but if you want the user to be able to edit the text field, you can instead use the following script in the Mouse Up event of each check box:
// Get the value of the check box
var v = event.target.value;
// Set the value of the text field
getField("EMP_Workshift").value = v !== "Off" ? v : ""; -
How to auto populate a column/SharePoint list with Current Date?
I have a SharePoint list and I created a column called ‘CurrDate’.
I need this column to;
Display the current date,
Auto populate all rows with the current date in the SharePoint list
Dynamically update with the current date
I first tried creating the column using the default SharePoint interface Date Time but it’s not doing any of the steps listed above:
I even tried entering =[Today] in the Calculated Value field.
Still nothing…
So, I’m sure you will toss out a code snippet to make this work, which is great.
However, I’m a total noob with SPD, where the heck do I insert this snippet?
Always in need of help.Hi ,
I understand that you want to add a column to a list to hold current date. Here is a workaround:
Add a single line of text column to the list. Name the list as Today.
Add a calculated column to the list. Use the [Today] as the formula. Set the calculated column to be Date and Time type.
Delete the Today column from the list.
Thanks,
Entan Ming
TechNet Subscriber Support in forum
If you have any feedback on our support, please [email protected]
Entan Ming
TechNet Community Support -
Linking a select field with a text field in a DW form.....
I did try to search for this but nothing came to my attention. Apologies if it is already in the forum.
Is it possible to have a "select field" link with a "text field"? In other words The select field will provide different venues to choose from, in this case "Blog, Trade Show, Friend, Photo Magazine" and then after the choice is made a text field appears that allows you to provide details re. your choice. For example if you choose "Trade Show" from the select field the text field will then appear and prompt you to detail WHICH Trade Show. Something along those lines. Any assistance will, as always, be appreciated.
-G-You need scripts for this. Try this jQuery tutorial
http://anthonygthomas.com/2010/03/14/display-form-fields-based-on-selection-using-jquery/
Nancy O. -
Form email submission with limited locked fields
Hello,
I've been reading through forum after forum and piece-mealing together what I need isn't working. I'm COMPLETELY unexperienced with any kind of JavaScript changes or additions to forms in Adobe (I do not have or use LiveCycle), so I'm struggling a bit. I have a lot of relatively complex forms, but only complex in how many different fields/types of fields. So, what I need is this:
Form #1:
I need to create a submit button at the bottom of the form that will do two things:
Lock all editable fields
Email the locked PDF (preferably without having to be saved and then attached to an email)
Submit button should disappear
Form #2:
Different individuals need to complete different sections of the form, but there are no signature fields. Here's the order of what I need to happen after the first person completes their sections and clicks a "submit" button:
Specific fields (not all) need to be locked
The form needs to attached to an email (without having to save and then attach)
Submit button needs to disappear
After the receivers (Persons 2 and 3) complete the final field it needs to lock and email to the final person in the chain.
(For clarity; the final field is a field that will be text, and will not be able to be completed without all the other information)
If someone could assist me with the specific script, as well as confirm what selections I need to make for the button (ie Mouse Up, Mouse Enter, etc.) and other fields that control locking, that would be tremendously helpful. Thank you.Check if you have any hidden fields on the form which are required..
If not, some how the disabled may not be working as expected..
If you still have issues, you can send your form to [email protected] so I can have a look at it..
Thanks
Srini -
Generic Extraction By Using function Module with Three Table fields?
Hi,
I need to bring the data from three tables by using function module.
Tables: VBAK, VBAP, VBUK.
Fields are: VBELN, ERDAT, NETWR, WEARK, POSNR, MATNR, FKART, FKTYP.
i referred some of the documents in SDN, it explained by using two table fields.
Please help me.hi, the below pseudo code should help you on creating the logic. It's based on the how to paper. So i just used the parts of intrest. You need to copy the rest form the document. Please notice that this is pseudo code. if you just copy/paste, it will not work.
IF s_counter_datapakid = 0.
OPEN CURSOR WITH HOLD s_cursor FOR
SELECT fields FROM table1 WHERE condition
ENDIF. "First data package ?
* Fetch records into interface table.
* named E_T_'Name of extract structure'.
FETCH NEXT CURSOR s_cursor
INTO TABLE e_t_data
PACKAGE SIZE s_s_if-maxsize.
IF sy-subrc EQ 0.
SELECT fields FROM table2 WHERE condition into itab2 for all entries in e_t_data
SELECT fields FROM table3 WHERE condition into itab3 for all entries in e_t_data
loop at e_t_data
read itab2. move corresponding fields to e_t_data
read itab3. move corresponding fields to e_t_data
collect e_t_data.
endif.
IF sy-subrc <> 0.
CLOSE CURSOR s_cursor.
RAISE no_more_data.
ENDIF.
s_counter_datapakid = s_counter_datapakid + 1.
ENDIF. "Initialization mode or data extraction ? -
Problem with modifying table field with SQL
In a particular table, there are some values that end with a null character (ascii(0)) and we don't want them null-terminated. I've been trying to use the following SQL statement to find those fields and then remove the null character from the end (each record has a 'field_id' field and the 'value' field which holds the actual value of that field_id):
update num_data
set value = substr(value,1,instr(value,ascii(0))-1)
where field_id = 'FIELD1'
select field_id
from num_data
where ascii(substr(value,length(value),1)) = 0
All it does is execute for several minutes before I just have to interrupt it, and no changes are made.I see I messed up; the query should have been:
update num_data
set value = substr(value,1,instr(value,ascii(0))-1)
where field_id in
select field_id
from num_data
where ascii(substr(value,length(value),1)) = 0
But since I wrote this note, I ran that query again, and it worked as I wanted it to; maybe our DB was running slow at that time, though I waited a few minutes for results.
I appreciate you two taking the time to respond. -
Expression with qualified table fields
Hi all!
I have 2 doubts concerning the free-form search and expressions using qualified table.
We're implementing SRM-MDM Catalog. Here is the scenario
The search is done in the Main Table (Products). The qualified table (Contract) has the following fields:
Contract ID: Non-Qualifier
Contract Item: Non-Qualifier
Contract Category: Non-Qualifier
Lower Bound: Non-Qualifier
Amount: Qualifier
Currency: Qualifier
Obsolete: Qualifier
There are 2 records in the Contract table assigned to the Product in main table:
123-1-Normal-1-100-BRL-False
456-1-Normal-1-250-BRL-True
1st doubt:
Using the free-form search, if I set the field Contract-Amount to be less than 150, only the record 123-1-Normal-1-100-BRL is listed in the result, which is ok. But if I enter in the expression option the formula Contract.AMOUNT<150, both records are listed:
123-1-Normal-1-100-BRL
456-1-Normal-1-250-BRL ???
Is this formula wrong?
2nd doubt:
The Contract info isn't a mandatory information. It's ok to have a product in the main table without a contract assigned to it. This can happen for example if all contracts for a product are obsolete. In the named search, if I select all products where obsolete equals to 'FALSE', only the records of the main table that have at least one valid contract are listed. As the contract info isn't mandatory, I was expecting a different behavior. Also the records that don't have a valid contract should be listed, but the contract information should be blank. Is there a way to do that?
Thanks!check out these tables,
VBAK Header Data
VBAP Item Data
VBAG Release Data by Schedule Line in Sch.Agrmt.
VBUK Header Status and Administrative Data
VBUP Item Status
VBRL SD Document: Invoice List
VBPA Partner
VBKD Business Data
VBKA Sales activities
VBEP Schedule Line Data
VBRK Billing: Header Data (invoice)
VBRP Billing: Item Data (invoice)
VBFA Sales Document Flow
VTTP Shipment item
regards,
seenu -
Sum quantity field with 5 key fields
How to sum quantity field with 5 key fields
try this out.
loop at <itab>.
at new <field>.
sum.
endat.
endloop. -
hi!
can someone help me in finding the following fields from vendor tables:
confirmed sales order quantity
on order sales order quantity
open PO quantity
moving average price
outstanding delivery PO
thanks,
Srikanth.check out these tables,
VBAK Header Data
VBAP Item Data
VBAG Release Data by Schedule Line in Sch.Agrmt.
VBUK Header Status and Administrative Data
VBUP Item Status
VBRL SD Document: Invoice List
VBPA Partner
VBKD Business Data
VBKA Sales activities
VBEP Schedule Line Data
VBRK Billing: Header Data (invoice)
VBRP Billing: Item Data (invoice)
VBFA Sales Document Flow
VTTP Shipment item
regards,
seenu -
Problem with fetching table field
Hi all, im explaining the problem, please provide me the query.
i am having the follong tables
1)location table contains one PK(loc_id)and authorization field, etc.
2)accont table contain one FK(loc_id) and hrid , attuid fields etc
3)LINE table contains INTERLATA_PIC_FREEZE & INTRALATA_PIC_FREEZE and some more fields.
4)TRUNK table contains INTERLATA_PIC_FREEZE & INTRALATA_PIC_FREEZE and some more fields.
5)NODAL_TSG table contains INTERLATA_PIC_FREEZE & INTRALATA_PIC_FREEZE and some more fields.
6)REMOTE_CALL_FWD table contains INTERLATA_PIC_FREEZE & INTRALATA_PIC_FREEZE and some more fields.
7)Order2misc table contains FK(SER_LOC_ID) of Location table
PIC means INTERLATA_PIC_FREEZE/INTRALATA_PIC_FREEZE
PLOC means INTERLATA_PIC_FREEZE/INTRALATA_PIC_FREEZE
i need to send an authorization field value to another interface.
condition
===========
if(LOCATION.AUTHORIZATION using Account.loc_id is not null and LINE.INTERLATA_PIC_FREEZE not equal to 'F' and LINE.INTRALATA_PIC_FREEZE not equal to 'F' and similaraly for TRUNK, NODAL_TSG and REMOTE_CALL_FWD table fields)
else
fetch the authorization field from
LOCATION.AUTHORIZATION using Order2misc.ser_loc_id
=======
please provide me the query.
thanks in advanceHI thanks for ur reply
i tried lmy best.
im able to put that into 2 queries, but i need to join both of them in single query
query-1
======
Select l.authorization
from location l JOIN ACCOUNT a on a.loc_id = l.loc_id
and l.authorization is not null
where not exists
select * from Line where INTERLATA_PIC_FREEZE = 'F' or INTRALATA_PIC_FREEZE = 'F'
union all
select * from trunk where INTERLATA_PIC_FREEZE = 'F' or INTRALATA_PIC_FREEZE = 'F'
union all
select * from NODAL_TSG where INTERLATA_PIC_FREEZE = 'F' or INTRALATA_PIC_FREEZE = 'F'
union all
select * from REMOTE_CALL_FWD where INTERLATA_PIC_FREEZE = 'F' or INTRALATA_PIC_FREEZE = 'F'
query--2
=======
Select l.authorization
from location l JOIN order2misc o on o.ser_loc_id = l.loc_id
and l.authorization is null
where exists
select * from Line where INTERLATA_PIC_FREEZE = 'F' or INTRALATA_PIC_FREEZE = 'F'
union all
select * from trunk where INTERLATA_PIC_FREEZE = 'F' or INTRALATA_PIC_FREEZE = 'F'
union all
select * from NODAL_TSG where INTERLATA_PIC_FREEZE = 'F' or INTRALATA_PIC_FREEZE = 'F'
union all
select * from REMOTE_CALL_FWD where INTERLATA_PIC_FREEZE = 'F' or INTRALATA_PIC_FREEZE = 'F'
================
i need a single query. and correct me if the above query's are wrong -
Hi There,
In SAP GRC 10.0, our team had an issue where we could not add duplicate fields from separate table (see ERROR: Select Currency/UoM field for the selected analyzed fields). This was resolved by the SAP Note 1904313/ 1904314 (http://service.sap.com/sap/support/notes/1904313).
We upgraded our system to SAP GRC 10.1 SP05 and could now add the duplicate fields from separate tables. SAP Note 1904313/ 1904314 was part of SAP GRC 10.1 SP03 so it makes sense that we, in a higher version (SP05), would be able to do this.
The issue now is when we add the duplicate fields from different tables and run the Ad-hoc Query to test if the data source works correctly, the No Data Selected warning persists. This means that the data source provides no data for analysis, which is required to write our business rules.
Below is an example:
Basic data source with just one currency reference field EBAN-WAERS.
When you run the Ad-Hoc Query you receive data.
Basic data source with second currency reference field EKKO-WAERS.
When you run the Ad-Hoc Query no data is found.
Please also make reference to the following thread logged by my colleague (ERROR: Select Currency/UoM field for the selected analyzed fields)
Any assistance to receive data with duplicate fields from separate tables will be highly appreciated.
Thanking you in advance.
Regards
Gary KhanHi
following are the error messages from dump
hrtText
There is already a line with the same key.
hat happened?
Error in ABAP application program.
The current ABAP program "SAPLCKMS" had to be terminated because one of the
statements could not be executed.
This is probably due to an error in the ABAP program.
rror analysis
You wanted to add an entry to table "\FUNCTION-POOL=CKMS\DATA=T_DYN_CKMLCR",
which you declared
with a UNIQUE KEY. However, there was already an entry with the
same key.
This may have been in an INSERT or MOVE statement, or within a
SELECT ... INTO statement.
In particular, you cannot insert more than one initial line into a
table with a unique key using the INSERT INITIAL LINE... statement.
rigger Location of Runtime Error
Program SAPLCKMS
Include LCKMSF01
Row 226
Module type (FORM)
Module Name DYNAMIC_PERIOD_CLOSING
Source code where dump ocured
222
223 APPEND ht_ckmlpp TO t_add_ckmlpp.
224 APPEND LINES OF ht_ckmlcr TO t_add_ckmlcr.
225 INSERT ht_ckmlpp INTO TABLE t_dyn_ckmlpp.
>>>> INSERT LINES OF ht_ckmlcr INTO TABLE t_dyn_ckmlcr.
227 ENDWHILE.
Also I guess there is problem with material ledger in R/3 side
I have never worked on material ledger before so dont hav idea of Tcode and tables in SAP R/3 for material ledger.
Thanks
Navneet -
Adding fields to database table and copying data from other fields
Hi All,
I am having a database table where in I am having a column 'FIELD1'.
My requirement is that I want to add two more fields in the table 'FIELD2' and 'FIELD3'.
I then want to copy all the data in field1 to field2 and field3. then I want to delete the original field1.
for Ex.
lets say FIELD1 = 100.
now I want to add FIELD2 and FIELD3 in the table and make FIELD2 = 100 AND FIELD3 = 100. The FIELD1 will be deleted from table.
Please suggest the methods to do so.
It is urgent.Hi Gaurav,
do this way ...
data : begin of it_ztab occurs 0 with header line,
fld1 like ztab-fld1,
fld2 like ztab-fld2,
fld3 like ztab-fld3,
end of it_ztab.
data : wa_ztab like it_ztab.
it_ztab-fld1 = '100'.
append it_ztab.
clear it_ztab.
loop at it_ztab.
wa_ztab-fld2 = it_ztab-fld1.
wa_ztab-fld3 = it_ztab-fld1.
wa_ztab-fld1 = ' '.
* Make sure that the structure of internal table/ workarea and database table shoud be same
modify ztab from wa_ztab.
endloop.
Maybe you are looking for
-
Hi, Has anybody seen the issue below showing in the logs? The time for the logs messages switch from the real time (17:57) to some random time (10:55). There seem to be a disconnect with the time. I noticed right when the status message while logging
-
Issue in using custom event from outreach
Hi I have created a custom event and executed a scenario successfully for this custom event from ACC. But when I try to configure the same event from Outreach(BCC), I am able to see this custom event in the list of available events, but after selecti
-
Current date in BO queries with Universe built on Infocube
Hi dear experts, We are facing the following issue : - we built a universe on top of a multiprovider (with 2 infocubes) since we don't want to manage BW Queries. - we need to restrict data on WebI queries using current date or system date (to compare
-
I plan to hook my MacBook to my plasma TV. I assume I need a display adapter plus a VGA cable and audio cables. I would like to know if this will work and how long the cables can be. Thanks
-
Hi all, Im doing an File to Proxy scenario, in the R/3 side im getting the error as "Entry point is not defined", can anyone suggest as what to do to resolve this issue. Regards Archanaa