@Command([Compose] - From another database

I am attempting to compose a document from another database (Via View Button).

Database A (View Button) Below is code!

Temp1 := @DbLookup(“”; “”; “vwFldMgmt”; “Server”; 3);

Temp2 := @DbLookup(“”; “”; “vwFldMgmt”; “Folder and File Location”; 3);

@Command([Compose]; Temp1 : Temp2; “Feedback”)

What I need to do is pull the name of the database the View Button is in and place it on the form which the database form resides.

Any ideas?

Subject: @Command([Compose] - From another database

isn’t the answer to the question the same as the value of Temp 1 ?

Subject: @Command([Compose] - From another database

Scott,

Not really sure I understand your question.

You want to get the name of the database the button is in (the button you are about to press)???

If this is right, have a look at using @dbname (i think @subset;1) returns the database name)

Mike

Subject: RE: @Command([Compose] - From another database

Mike you are correct but since I am creating a document in the other database - How do I get the dbtitle to this database I’m creating the document in.

Subject: RE: @Command([Compose] - From another database

I think you want @DBTitle. That is the same as what you can see/change from Database Properties.