Getting two session varibles into one hidden form field
In a hypothetical exaple, if my first session variable is kt_user_name and it's value is bestperson, and my second variable session is kt_exerreference and it's value is ex1a, I'd like have the value submitted in the hidden form field to be bestpersonex1a (without any spaces if possible). This is the code that I have for the hidden form field that submits the server variables:
<br />
<br />
<form>
<input type="hidden" name="exerreference" id="exerreference" value="<?php echo $_SESSION['kt_user_name'].$_SESSION['kt_login_user']; ?>" />
<br />
<br />But the form also has a php section above the head that seems to add the values to the databse. Here is the beginning of the code with the the first 4 values:
<br />
<br />// Add columns
<br />$ins_exer1->setTable("exer1");
<br />$ins_exer1->addColumn("user_name", "STRING_TYPE", "SESSION", "kt_user_name"."kt_login_user");
<br />$ins_exer1->addColumn("exerreference", "STRING_TYPE", "SESSION", "kt_user_name");
<br />$ins_exer1->addColumn("Shapes_present_with_target", "STRING_TYPE", "POST", "Shapes_present_with_target");
<br />
<br />My question is how do I also configure the code in the 2nd string of this "Add Columns" code to insert both server variables? When I put one server variable as the value in this code (0n line 2), it only inserted the one session varialbe value (not 2 as are in the form field). As you can see, I currently have "kt_user_name"."kt_login_user" which is givig me server errors.
<br />
<br />Here's another idea that didn't work yet:
<br />
<br />// Add columns
<br />$user = $_SESSION['kt_user_name'].$_SESSION['kt_login_user'];
<br />$ins_exer1->setTable("exer1");
<br />$ins_exer1->addColumn("user_name", "STRING_TYPE", "SESSION", "$user");
<br />$ins_exer1->addColumn("exerreference", "STRING_TYPE", "SESSION", "kt_user_name");
<br />$ins_exer1->addColumn("Shapes_present_with_target", "STRING_TYPE", "POST", "Shapes_present_with_target");
<br />
<br />Any ideas on the correct syntax?
<br />
<br />Thanks for any help.</form>
Günter,
<br />
<br />I think I did as you suggested. I put this as the form field:
<br />
<br />
<form>
<input type="hidden" name="exerreference" id="exerreference" value="<?php echo $_SESSION['kt_user_name']; ?><?php echo $_SESSION['kt_login_user']; ?> <br />" />
<br />
<br />and changed back the Add columns section to this:
<br />
<br />// Add columns
<br />$ins_exer1->setTable("exer1");
<br />$ins_exer1->addColumn("user_name", "STRING_TYPE", "SESSION", "kt_user_name");
<br />$ins_exer1->addColumn("exerreference", "STRING_TYPE", "SESSION", "kt_user_name");
<br />
<br />The form does submit now, but only the kt_user_name server varible is showing up in the exerreference field of the databaswe, not also the kt_login_user server variable.
<br />
<br />Any ideas on what to do to get it working right? Do I need to modify the exerreference string in the Add columns section?
<br />
<br />Thanks - Dale</form>
Similar Messages
-
Use two different Bapis into one interactive form
Hello. I'm creating a form in which I need the result from two different bapis, but the interactive form element in the layout of the view allows me only one data source node.
The form i want to create is one in which appears some data from one employee (so I use BAPI_EMPLOYEE_GETDATA). The problem is that I also want to show the qualifications shown as result of the BAPI_QUALIFIC_GETLIST bapi. Those qualifications should correspond to the employee.
I have one solution in my mind. That one is: I could create a node containing the structure with all the elements I need from the two bapis. Then I could copy there the results from the context nodes that are mapped to the bapis.
I believe this is a common situation. Not only to my specific example but to many other forms.So, I think there should be a way to do it without programming it myself. Or perhaps a better solution than mine. My worry comes to my mind because all the facilities Web Dynpro and LifeCycle offer to create interactive forms and common web applications.
Thanks to anyone with some answers.}
Of course, I'll reward for them!Hello Alejandro Monteverde,
There is one and only one data sink for an interactive form and that is the data source node for you. There is no possibility that we can define a second or third datasource node for our application. Having the above statement in mind, the only way we can fulfill our requirement is to have a common parent node as the datasource node which in turn may have any number of nodes (in your case you would probabaly think of segregating the results from two BAPIs to map to two different nodes). A third node can be added tomorrow if you need so.
The solution that you have mentioned will also work equally good. In your approach you will have all the related information will be contained within one node. Fair enough.
Its a matter of how do you want to best represent your data structure.
Thanking you,
Krishanu -
Insert PDF into new Adobe Form - merging two PDF files into one
Hi everyone,
I need to enable access to archive PDF files but within a new PDF file containing header and footer.
Request is not to change archived PDF files at all.
I use Web Dynpro application to upload PDF file and to display new PDF file.
I thought converting archive PDF files into JPG files and than using an 'Image Field' object to display those in a new PDF file.
I am dealing here with PDF version 1.3 files.
I am also having trouble converting these PDF files into JPG files. Any sugestions one this problem?
Does anyone have any suggestion on how to deal with this concerning the fact that archive PDF files can not be changed?
Is there some other way to merge two PDF files into one using Adobe Designer?
Regards,
AmelHello, Lukasz:
I am also facing similar requirement from my customer.
And I found one useful blog, hope this blog can help you.
http://wiki.sdn.sap.com/wiki/display/WDJava/CombinePDFfileswithWebDynproforJava
Best regards, Nick. -
How to merge two storage drives into one partition-help
THis is on an iPad-Please excuse for any typos
I Am working on a project of restoring a macbook pro from old parts that I found. It works!!! But the HDD that i salvadged is ancient and gets about .15 MBPS. Not good. Its an apple certified and apple branded toshiba HDD-500G at 5400RPM. Yeah. *****
I am considering buying a new hard drive as a 480GB SSD, and using OWC's Data doubler, adding a second HDD, for all the photos and vids i will be collecting through my work in video and photo. I am considering getting an SSHD (SSD+HDD in an SSD form factor) and using this as the second drive. its not much more expensive (like 10$ more) and itgetsme semi-SSD like performance on a mass scale of storage.
HOw can I combine these two drives into ONE partition? 480GB will take awhile to fill up, but this is a future proof wall to use.
I Will eventually invest in an external storage option (2-3 HDDS in one caddy for backups and storing 1080p video all under one roof. depends if the board im using actually has thunderbolt or usb that is fast enough-because of the crappy hdd i cant get it to boot into an OS or go through usb recovery without it freezing. I ahve tried re-applying thermal paste, still doesnt help)
HOw can i easily partition these two drives into one?
also, my friend needs a new HDD because bootup times in his macbook pro are at like 2 mins+ and hes running Core 2 Duo, with 8 G ram and 10.9 (Mav) should i recommend an SSHD or an ssd. (He doesnt want an HDD, hes had bad 'voodoo' with em'. Thanks!nithya_ram wrote:
Give me d source code for merging two img files into one img file\\
If you want someone to do your work for you, simply pay someone. However, if you have a question about code you're currently working on, feel free to ask a specific question here on the forum. -
Reg: Combining two display lists into one list
Dear All,
i want to combine two display lists into one display list. Please give the idea for this one issue.
*****************dispaly list 1 starting here*********************
*& Form F_006_DISPLAY_LIST
* text
* --> p1 text
* <-- p2 text
FORM F_006_DISPLAY_LIST.
* TABLES : LFA1 .
DATA : V_DEBIT_TOTAL TYPE P DECIMALS 2 ,
V_CREDIT_TOTAL TYPE P DECIMALS 2 ,
V_CLOSE_BAL TYPE P DECIMALS 2 .
DATA : V_CNT TYPE I .
SORT ITAB_OPG BY LIFNR.
LOOP AT ITAB_OPG.
NEW-PAGE.
* Displaying Vendor Name
SELECT SINGLE NAME1 FROM LFA1 INTO LFA1-NAME1 WHERE
LIFNR EQ ITAB_OPG-LIFNR .
FORMAT COLOR COL_POSITIVE INTENSIFIED ON.
WRITE:/2 'Vendor Code:' ,
ITAB_OPG-LIFNR ,
40 LFA1-NAME1 .
CLEAR : LFA1 .
WRITE :/(190) SY-ULINE .
* Displaying Opening Balance
FORMAT COLOR COL_NEGATIVE INTENSIFIED ON .
READ TABLE ITAB_OPG WITH KEY LIFNR = ITAB_OPG-LIFNR .
IF ITAB_OPG-BAL LE 0 .
WRITE :/2 'Opening Balance for Period' , (4) S_MONAT-LOW , ':' ,
171(18) ITAB_OPG-BAL .
ELSE.
WRITE :/2 'Opening Balance for Period' , (4) S_MONAT-LOW , ':' ,
151(18) ITAB_OPG-BAL .
ENDIF.
WRITE :/(190) SY-ULINE .
* Displaying Line Items
LOOP AT ITAB_DISPLAY WHERE LIFNR EQ ITAB_OPG-LIFNR.
V_CNT = SY-TABIX MOD 2.
IF V_CNT EQ 0.
FORMAT COLOR COL_NORMAL INTENSIFIED ON.
ELSE.
FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
ENDIF.
* Selecting Bank Name and Cheque Number
SELECT SINGLE CHECT HBKID INTO (PAYR-CHECT , PAYR-HBKID)
FROM PAYR WHERE
ZBUKR EQ P_BUKRS AND
VBLNR EQ ITAB_DISPLAY-BELNR AND
LIFNR EQ ITAB_DISPLAY-LIFNR .
SELECT SINGLE BANKS BANKL INTO (T012-BANKS , T012-BANKL) FROM
T012 WHERE BUKRS EQ P_BUKRS AND
HBKID EQ PAYR-HBKID.
SELECT SINGLE BANKA INTO BNKA-BANKA FROM BNKA WHERE
BANKS EQ T012-BANKS AND
BANKL EQ T012-BANKL .
WRITE :/2 ITAB_DISPLAY-BUDAT ,
14 ITAB_DISPLAY-BELNR ,
26 ITAB_DISPLAY-BLDAT ,
40 ITAB_DISPLAY-XBLNR ,
58(16) PAYR-CHECT ,
75 BNKA-BANKA ,
105(40) ITAB_DISPLAY-SGTXT ,
146(4) ITAB_DISPLAY-BLART .
* Determinig Debit or Credit
IF ITAB_DISPLAY-SHKZG EQ 'S'.
V_DEBIT_TOTAL = V_DEBIT_TOTAL + ITAB_DISPLAY-DMBTR.
WRITE:151(18) ITAB_DISPLAY-DMBTR ,
171(18) SPACE .
ELSEIF ITAB_DISPLAY-SHKZG EQ 'H'.
V_CREDIT_TOTAL = V_CREDIT_TOTAL + ITAB_DISPLAY-DMBTR.
WRITE:151(18) SPACE ,
171(18) ITAB_DISPLAY-DMBTR .
ENDIF.
CLEAR : T012 , BNKA , PAYR .
ENDLOOP.
FORMAT COLOR COL_TOTAL INTENSIFIED ON.
WRITE:/(190) SY-ULINE.
* Displaying Debit and Credit Totals
WRITE:/125 TEXT-001 ,
151(18) V_DEBIT_TOTAL ,
171(18) V_CREDIT_TOTAL .
WRITE:/(190) SY-ULINE.
* Displaying the Closing Balance
FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
V_CLOSE_BAL = ITAB_OPG-BAL + V_DEBIT_TOTAL - V_CREDIT_TOTAL .
IF V_CLOSE_BAL GT 0.
WRITE:/122 TEXT-002 ,
151(18) V_CLOSE_BAL NO-SIGN. " D00K909674
ELSEIF V_CLOSE_BAL LE 0.
WRITE:/122 TEXT-002 ,
171(18) V_CLOSE_BAL NO-SIGN. " D00K909674
ENDIF.
CLEAR : V_CLOSE_BAL.
ENDLOOP.
ENDFORM. " F_006_DISPLAY_LIST
*****************dispaly list 1 ending here*********************
*****************dispaly list 2 starting here*********************
*& Form F_006_DISPLAY_LIST1
* text
* --> p1 text
* <-- p2 text
FORM F_006_DISPLAY_LIST1 .
TABLES : KNA1 .
DATA : V_DEBIT_TOTAL1 TYPE P DECIMALS 2 ,
V_CREDIT_TOTAL1 TYPE P DECIMALS 2 ,
V_CLOSE_BAL1 TYPE P DECIMALS 2 .
DATA : V_CNT1 TYPE I .
SORT ITAB_OPG1 BY KUNNR.
LOOP AT ITAB_OPG1.
NEW-PAGE.
* Displaying Vendor Name
SELECT SINGLE NAME1 FROM KNA1 INTO KNA1-NAME1 WHERE
KUNNR EQ ITAB_OPG1-KUNNR .
FORMAT COLOR COL_POSITIVE INTENSIFIED ON.
WRITE:/2 'Customer Code:' ,
ITAB_OPG1-KUNNR ,
40 KNA1-NAME1 .
CLEAR : KNA1 .
WRITE :/(190) SY-ULINE .
* Displaying Opening Balance
FORMAT COLOR COL_NEGATIVE INTENSIFIED ON .
READ TABLE ITAB_OPG1 WITH KEY KUNNR = ITAB_OPG1-KUNNR .
IF ITAB_OPG1-BAL1 LE 0 .
WRITE :/2 'Opening Balance for Period' , (4) S_MONAT-LOW , ':' ,
171(18) ITAB_OPG1-BAL1 .
ELSE.
WRITE :/2 'Opening Balance for Period' , (4) S_MONAT-LOW , ':' ,
151(18) ITAB_OPG1-BAL1 .
ENDIF.
WRITE :/(190) SY-ULINE .
* Displaying Line Items
LOOP AT ITAB_DISPLAY1 WHERE KUNNR EQ ITAB_OPG1-KUNNR.
V_CNT1 = SY-TABIX MOD 2.
IF V_CNT1 EQ 0.
FORMAT COLOR COL_NORMAL INTENSIFIED ON.
ELSE.
FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
ENDIF.
* Selecting Bank Name and Cheque Number
SELECT SINGLE CHECT HBKID INTO (PAYR-CHECT , PAYR-HBKID)
FROM PAYR WHERE
ZBUKR EQ P_BUKRS AND
VBLNR EQ ITAB_DISPLAY1-BELNR AND
KUNNR EQ ITAB_DISPLAY1-KUNNR .
SELECT SINGLE BANKS BANKL INTO (T012-BANKS , T012-BANKL) FROM
T012 WHERE BUKRS EQ P_BUKRS AND
HBKID EQ PAYR-HBKID.
SELECT SINGLE BANKA INTO BNKA-BANKA FROM BNKA WHERE
BANKS EQ T012-BANKS AND
BANKL EQ T012-BANKL .
WRITE :/2 ITAB_DISPLAY1-BUDAT ,
14 ITAB_DISPLAY1-BELNR ,
26 ITAB_DISPLAY1-BLDAT ,
40 ITAB_DISPLAY1-XBLNR ,
58(16) PAYR-CHECT ,
75 BNKA-BANKA ,
105(40) ITAB_DISPLAY1-SGTXT ,
146(4) ITAB_DISPLAY1-BLART .
* Determinig Debit or Credit
IF ITAB_DISPLAY1-SHKZG EQ 'S'.
V_DEBIT_TOTAL1 = V_DEBIT_TOTAL1 + ITAB_DISPLAY1-DMBTR.
WRITE:151(18) ITAB_DISPLAY1-DMBTR ,
171(18) SPACE .
ELSEIF ITAB_DISPLAY1-SHKZG EQ 'H'.
V_CREDIT_TOTAL1 = V_CREDIT_TOTAL1 + ITAB_DISPLAY1-DMBTR.
WRITE:151(18) SPACE ,
171(18) ITAB_DISPLAY1-DMBTR .
ENDIF.
CLEAR : T012 , BNKA , PAYR .
ENDLOOP.
FORMAT COLOR COL_TOTAL INTENSIFIED ON.
WRITE:/(190) SY-ULINE.
* Displaying Debit and Credit Totals
WRITE:/125 TEXT-001 ,
151(18) V_DEBIT_TOTAL1,
171(18) V_CREDIT_TOTAL1 .
WRITE:/(190) SY-ULINE.
* Displaying the Closing Balance
FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
V_CLOSE_BAL1 = ITAB_OPG1-BAL1 + V_DEBIT_TOTAL1 - V_CREDIT_TOTAL1 .
IF V_CLOSE_BAL1 GT 0.
WRITE:/122 TEXT-002 ,
151(18) V_CLOSE_BAL1 NO-SIGN. " D00K909674
ELSEIF V_CLOSE_BAL1 LE 0.
WRITE:/122 TEXT-002 ,
171(18) V_CLOSE_BAL1 NO-SIGN. " D00K909674
ENDIF.
CLEAR : V_CLOSE_BAL1.
ENDLOOP.
ENDFORM. " F_006_DISPLAY_LIST1
*****************dispaly list 2 ending here*********************
Thanks,
Sankar MHi,
Can you post it as two halves ?
Regards,
Swarna Munukoti -
How do I combine two PDF files into one?
I want to merge two PDF files into one to make things easier when I take the file(s) to a professional printer.
Can I do this in Preview?
Thanks.You can't do in Preview.
You can combine individual PDFs into one PDF using one of these freeware utilities.
PDFMergeX @ http://www.malcom-mac.com/blog/pdfmergex/
joinPDF @ http://www.macupdate.com/info.php/id/16604
Combine PDFs @ http://www.monkeybreadsoftware.de/Freeware/CombinePDFs.shtml>
PDFLab (join & split) @ http://pdflab.en.softonic.com/mac
Cheers, Tom -
How can I combine two itunes accounts into one?
How can I combine two itunes accounts into one?
Items purchased from the iTunes Store are permanently associated with the account from which they were originally purchased. Apple provides no way to change this.
However, if you wish to put content from two accounts into a single iTunes library, you can easily do so. Use the command File > Add File (or Folder) to Library. -
For a brief time when iPhone 4, iOS 4 came out, many of us ended up with two Apple IDs. I want to know if anyone can please provide me with simple step-by-step instructions on merging two Apple IDs into one? It would make transferring purchases on iTunes much easier and reliable. I realize i desperately need an iOS update, but i had no laptop for over two years! I'm posting a cry for help on that in another community. Thank you all.
No,
Apple IDs cannot be merged. You should use your preferred Apple ID from now on, but you can still access your purchased items such as music, movies, or software using your other Apple IDs. -
How do I combine two slide shows into one?
I need to combine two slide shows into one and put the whole thing into a loop for a Kiosque. Can someone help?
Drag and drop the slides from the Thumbnail viewer (left side of the window) from one Keynote to the other. They should copy with all the Actions and Transitions still in place. Then go to Inspector>Document Tab and check the box that says to Loop slideshow.
-
Merge two PDF files into one with Adobe Reader
Does anyone know how to merge two PDF files into one with Adobe Reader. Is it even possible?
ThanksIf you've got a Mac and OSX you can do this in Preview. Make sure you can see the sidebar with the first PDF opened, and then drag the second PDF to the bottom of the last page in the sidebar. Also you can reduce the size of your saved file by selecting (or making) a Quartz filter to 'reduce file size'
Cheers -
Combining two sales documents into one billing document
Hi Friends,
I need to combine two sales document into one billing document. Header data is same in both sales document.
I have set factory calendar in the payer master.
Tried for data transfer rotine at copy control of item level. But was not sure which routine to be set.
Please let me know, what all settings are required to create one combine billing document.
Regards
SumanHi,
Is it delivery based billing or order based billing?
2 orders / 2 deliveries and 1 invoice.
For the above situation you need to write a routine which eliminates document number difference for Reference and Allocation.
If you do not have different customer purchase orders for these two sales orders and in your copy control from delivery to billing your assignment and reference numbers are blank then system will club these deliveries and create one sales order.
Else you need to eliminate these by writing a copy control routine and assign it at the header level.
Hope this helps. Pl. revert in case of further clarifications.
Thanks
Krishna. -
Search view : Combine two search views into one serch view
Hi ,
We have a requirement for combining two search views into one and display single result view consisting of some fields from One search and few fields from other search.
Ex. There are two seperate search views for Oppotunity and Quotation. Now we want to combine search views of both into one search view with selected fields and then display a single result view with combined fields from both result views .
Kindly suggest me the steps I can follow to achieve the same.
Thanks,
MadhuraHi,
This is possible by creating dynamic views in a window.
1)create views you required.
2)create a tray in the view 1 and a link and set the properties.
3)create an outbound plug for the view1 and save the application.
4)create one more link in the tray for view1 and set the properties and create one more outbound plug.
5)go the main view view and create 2nd tray and create a UI container element in it.
6) now embed view1 and view2 in the container .........................
<removed_by_moderator>
regards,
Muralidhar .C
Edited by: Stephen Johannes on Jan 26, 2010 7:53 AM -
Is it possible to combine two pivot report into one ?..
Is it possible to combine two pivot report into one ?..
Then trying to display a chart or table result.Thanks for the reply.
Let me explain it briefly. I am creating a Report 1 based on one fitler condition and second report is created based on second filter condition.
I have similar column (time periods) in the both report. Then measure column has to combine and show as single report.
This is my requirement. -
Merging two LDAP directories into one clean 10.4 server.
What I have now is two different OD masters. One is a 10.3.9 server and the other is a 10.4.9 server. What I want to do is combine the two Open Directories into one on a brand new Xserve 10.4.9 install, and make that my only master with several replicas.
I'm trying to do as much research as possible before attempting this feat. I haven't been able to find much on here via searching. I did however, find this link (http://www.afp548.com/article.php?story=20050615173039158&query=migrate), which should be quite helpful, but I was wondering if anyone on here had anymore input.
Thanks in advance.Hi Celia
I think you could achieve this using slapcat with a bit of ldapadd/ldapmodify? Manual pages should tell you more?
Not done it myself with 10.5 but I don't see why not? Export desired information as LDIF file(s). You could do it for for both LDAP Servers and then bring them in. They should just add to each other?
Worth a try?
Tony -
How Do I Display A Hidden Form Field On Executing A Button (Yes Again But In More Depth)
Hi,
Yes, I just asked this question but was not specific enough. Ive looking for code within a JavaScript that will enable a hidden form field within a PDF to be displayed.
What I am attempting to do is to display form field 'Text1" when the button is pushed executing a check of the system date. Im looking for the code to execute the following:
If the system date is equal to or greater then '2009/02/01' (yyyy,mm,dd), then display 'Text1'.
I'm using Adobe pro 8.
Thank You for any help.You could so something like the following in the Mouse Up event of the button:
// Get system date
var Now = new Date();
// Get cutoff date
var End = util.scand("yyyy/mm/dd", "2009/02/01");
// Set the visibilty of field Text1 based on the date
getField("Text1").display = (Now > End) ? display.visible : display.hidden;
George
Maybe you are looking for
-
Is it possible to create create user defined variables in report script?
-
My friend downloaded one season of a TV show (10+ episodes). They are in her downloads and taking forever to download due to the size of the files in both standard and HD versions. She has tried deleting them but every time she opens up iTunes the fi
-
Outlook 2007 crashes when using instant search
We have a problem that seems to be affecting some users. in Outlook 2007 they have attachable mailboxes to view the sent items of that mailbox. When they go to the sent items and try to search for an e-mail by subject or address or key word etc it cr
-
Disabling tooltip in Oracle ADF 11g
Dear All, Is there anyway to disable the Tooltip for the Application globally . As of now, we have this "shortDesc" attribute defined in all our component. Thanks in advance. Regards Deivee
-
I do not have my ipad connected to any other apple device and have forgotten my passcode. please help thank you