Unix Technical Forum

programming with Symix provided smartlocal query and smart browser

This is a discussion on programming with Symix provided smartlocal query and smart browser within the pgsql Databases forums, part of the PostgreSQL category; --> I have a smart local query and a smart browse that have identical query statements: FOR EACH custom.maintreq NO-LOCK, ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Databases

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-09-2008, 11:52 PM
rwn102
 
Posts: n/a
Default programming with Symix provided smartlocal query and smart browser

I have a smart local query and a smart browse that have identical query
statements:

FOR EACH custom.maintreq NO-LOCK,
FIRST symix.notes WHERE symix.notes.key = custom.maintreq.key
OUTER-JOIN NO-LOCK,
FIRST symix.item WHERE symix.item.item = custom.maintreq.item
NO-LOCK:

With this as is, the browse works fine.

Now, I want the browse to only show those records that do not have a
job-closed date. I remember reading in the SL training that you should
never put a where phrase in the smart local query. So I added a where
phrase to the smart browse making it look like this:
EACH tt.tt-maintreq
WHERE tt.tt-maintreq.close-date = ? NO-LOCK,
FIRST tt.tt-notes WHERE tt.tt-notes.key = tt.tt-maintreq.key
OUTER-JOIN NO-LOCK,
EACH tt.tt-item WHERE tt.tt-item.item = tt.tt-maintreq.item
NO-LOCK

When I compile and run this browse, the browse is showing records with
and without close dates but only records that have hits to the notes
table.

I have also tried to use a state set up in the smart local query with
the default state checking the close-date in tt-maintreq with the same
results.

Any thoughts?

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-09-2008, 11:52 PM
mpowell_esq
 
Posts: n/a
Default Re: programming with Symix provided smartlocal query and smart browser


Which ADM? ADM(1) OR ADM 2.
As a Progress proffesional this is simple, though I am confused to you
use of local-query

--
mpowell_es
-----------------------------------------------------------------------
mpowell_esq's Profile: http://www.progresstalk.com/member.p...nfo&userid=508
View this thread: http://www.progresstalk.com/showthre...?threadid=8126

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-09-2008, 11:52 PM
rwn102
 
Posts: n/a
Default Re: programming with Symix provided smartlocal query and smart browser

Well, I can certainly understand your confusion. Confusion has become
a natural state for me.

I was introduced to progress programming and the SYMIX/MAPICS product
last June. Before that, the majority of my 25 plus year career was
spend working with IBM midrange systems and programming in RPG.

I am trying to learn progress and the SYMIX twists by trial and error,
some old Syteline programming guides, and those kind enough to respond
to my questions posted here and at PEG.com. In particular, I have been
working with the GUI developer, because plans are to update the SYMIX
version to 6.0 which is reported to be more GUI oriented. When this
happens, we want to update our in-house functions to GUI as well.

To answer your question, we are using ADM(1), Symix 4.00 and progress
8.1.

mpowell_esq wrote:
> Which ADM? ADM(1) OR ADM 2.
> As a Progress proffesional this is simple, though I am confused to

your
> use of local-query.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-09-2008, 11:52 PM
rwn102
 
Posts: n/a
Default Re: programming with Symix provided smartlocal query and smart browser

I got it to work.

If you were to ask me how, I probably couldn't give you an answer that
made any sense. That is one of the problems with trial and error. I
am pretty sure that what finally worked this time was something that I
had tried several days ago in one the earliest attempts.

I am going to now go back over my notes, (that is being really
generous), and see if I can't put together some kind of a guide for the
next time.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 02:35 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com