Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently December 22nd, 2024, 6:12 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: setting up publication database tab
PostPosted: March 22nd, 2013, 6:31 pm 
Offline

Joined: April 13th, 2010, 10:38 am
Posts: 15
Hi All

I have looked at Robin Garett's posts on Databases and found them most helpful, BUT I still don't understand how to set up the database tab in the publication. I feel very stupid having to ask for help with this, but if anyone out there can help I would be most grateful.

bizzybee


For this message bizzybee has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Re: setting up publication database tab
PostPosted: March 24th, 2013, 12:48 pm 
Offline
Godlike
Godlike

Joined: November 12th, 2005, 1:56 am
Posts: 1474
Location: SFBay Area
Opus: OpusPro v9.0x, & Evol.
OS: Vista32
System: Core 2 duo 2Ghz, RAM 3GB, Nvidia Go 7700 - laptop
It has been a while since I played with Access database in Opus. I think mainly what you are asking is how to set-up the DB connection. Part of the set-up is done in Publication Properties >>> Database tab. And depending on what options you select there, you may need to establish a DB connector in Windows Control Panel (as administrator).

I think you need to provide more information if you want specific help.
viewtopic.php?f=6&t=3514

Several people have posted related questions on the forum previously, and those threads can be found by searching. Terms that might help: database connection ODBC Access Excel (or some combination of those)

_________________
_good things come to those who wait(0)_


For this message Lar_123 has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Re: setting up publication database tab
PostPosted: March 25th, 2013, 8:31 pm 
Offline

Joined: April 13th, 2010, 10:38 am
Posts: 15
Many thanks for your response. I have made some progress; I can read from and write to my access database, but have struggled for hours (to no avail) to be able to edit / delete records. Are there any scripting examples of this. I'm rapidly going grey. Thanks for listening.


For this message bizzybee has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Re: setting up publication database tab
PostPosted: March 25th, 2013, 10:49 pm 
Offline
Godlike
Godlike

Joined: November 12th, 2005, 1:56 am
Posts: 1474
Location: SFBay Area
Opus: OpusPro v9.0x, & Evol.
OS: Vista32
System: Core 2 duo 2Ghz, RAM 3GB, Nvidia Go 7700 - laptop
Quote:
to be able to edit / delete records (using scripting)
How well do you know SQL? What is your skill level, comfort level with scripting (ECMA/opusscript)?

Let me try to help a bit, but really I would ask you post your current question fresh over in the Advanced section. Good to add a note and link at the end of this thread so people can jump over there to. This will keep the Tutorial area clean, and maybe the Mods can move this thread too.

So one little 'gotcha' in Opusscript that sometimes bites me in the ass. Just when I think some coding I wrote is fairly simple and direct -- and should work, but does not -- I find I have used a variable where a numerical value is expected by the command or function, but the contents of the variable is a string value e.g. 1, 2, 34. And there is a related situation where I add what I think are numbers
Code:
var mytest = var1 + var2 + var3 ;
however with the numbers above as an example, I get concatenation result: 1234 rather than a sum: 37.
The solution to these nuances is twofold.
1) use Debug.trace( "Here is the result of my addition: " + mytest +"\n")
In other words, monitor results as various points of progress. You actually need to be clever to check whether you have a string or a number value.
2) add extra code to force a variable to be a numeric value.
Code:
//exaggerated example:
var mytest = parseInt(var1) + parseInt(var2) + parseInt(var3) ;


You'll have to Search
delete record
or
edit record
...and see what Threads pop up. Others here may readily recall where the desired script is, but I myself do not work with Access or Excel through Opus.

I'll continue to try to help, but please do bring your Profile up and follow other posting guidelines.
Cheers.

_________________
_good things come to those who wait(0)_


For this message Lar_123 has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Re: setting up publication database tab
PostPosted: March 26th, 2013, 10:00 am 
Offline

Joined: April 13th, 2010, 10:38 am
Posts: 15
Thanks once again for your quick response. I will follow your advice and see if I can beat this problem.


For this message bizzybee has been thanked by : mackavi


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 13 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group