Quantcast
Channel: Adobe Community : All Content - LiveCycle Designer
Viewing all articles
Browse latest Browse all 5571

Insert data from database

$
0
0

Hi,

I have a database that I am getting data into my PDF form. I have a button "Populate" that populates the fields with the selected data from a list box. I am using Formcalc and usiing a click event script for the button:

 

---------------------------------------------------------------------- ----------------------------------

var oDC = Ref($sourceSet.Axess.clone(1))

oDC.#command.query.commandType = "text"

 

oDC.#command.query.select.nodes.item(0).value = Concat("SELECT Ordhuvud.Nummer, Ordhuvud.Kundnamn, Ordrad.Rad, Ordrad.Produktben, Ordrad.Kommentar, Ordhuvud.Levnamn, Ordhuvud.Levadress, Ordhuvud.Levpostadress FROM Ordhuvud LEFT JOIN Ordrad ON Ordhuvud.Nummer = Ordrad.Nummer WHERE (((Ordrad.Rad)=1) AND ((Ordhuvud.Nummer)=",ordernummer.rawValue,"))")

 

oDC.open()

 

//work around

levtext = Concat(Levnamn.rawValue, "\u000a", Levadress, "\u000a", Levpostadress.rawValue)

Table1..Row1.beskrivning.rawValue = Concat(Produktben, "\u000a", Kommentar)

---------------------------------------------------------------------- -----------------------------------

 

I want to populate one field with Levnamn + Levadress + Levpostadress. Can you do that directly without go via my hidden fields?

 

Kind regards / Magnus


Viewing all articles
Browse latest Browse all 5571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>