Mobile Project, uses TTY, Is there another way to....?

Posted by OctavioOlguin on 10-Feb-2015 18:47

Greetings!

I created a project to start developing mobile services. Using business entities, I want to reuse them.

For users of the same information, I want to make some traditional client server screens, but the AVM won't start as the proyect uses TTY.

I've thinking about this, but can't figure a directory structure that allows me to accomplish that 

I have something like this

C:.
├───.mobileapps
│   └───sch01
│       ├───bin
│       └───src
├───.services
│   ├───Consume
│   │   ├───lib
│   │   ├───resources
│   │   └───spring
│   └───Expose
│       ├───lib
│       ├───resources
│       ├───rest
│       │   └───AppServerService
│       └───spring
├───.settings
├───AppServer
│   ├───CLS
│   ├───DW
│   ├───func
│   └───procs
│       ├───inc
│       └───ven
├───PASOEContent
│   ├───META-INF
│   ├───static
│   │   ├───auth
│   │   ├───error
│   │   └───images
│   └───WEB-INF
│       ├───adapters
│       │   └───rest
│       │       └───_oepingService
│       └───classes
├───RESTContent
│   ├───META-INF
│   ├───static
│   │   ├───auth
│   │   └───error
│   └───WEB-INF
│       ├───adapters
│       ├───classes
│       └───lib
└───WebContent
The problem comes in the Appserver directory
DW are where the classes are stored, which are used by the appserver.
FUNC has some functions from current production system, which runs from other project, are utilities as I want to make this project independent from others.
PROCS has the procedures I want to make client-server for desktop users, but it won't let the AVM to spring-up,as documente in a video or a document, I don't recall, the appserver project needs to be in TTY mode...
Is there any advice around I can use?
Thank you in advance..

All Replies

Posted by Swathi Yellavaram on 11-Feb-2015 05:45

It is possible to change runtime of Appserver project. As files which get published to appserver are not UI files and also to compile files with tty runtime, default runtime is TTY for OpenEdge Appserver project. If you plan to work on windows only then you can modify the runtime from Project properties. Deselect Use TTY for runtime option in 'Progress OpenEdge' project properties page.

Thanks,

Swathi.

Posted by OctavioOlguin on 11-Feb-2015 08:37

I came to his:

c:\myApp
       \--- Appserver
       .      \.------cls
       \----DesktopClient
       .      \------w
     .      \------p

With projects on both dirs Appserver and DesktopClient.

To maintaing consistency, I want to use business entities that reside on /appserver/cls, from /descktopclient/w

is it good practices to, somehow

1) USE ../../appserver/cls/object1.cls     ?
     how would I instanteate one object?

2) Define External directory on propath of the second project?

3) It's completely out of consideration a batch file that nightly copy from project 1 to project2..

Or as Mr, Yellavaram kindly suggests, drop the "use tty" parameter on the project AppServer, and develop GUI inside of it?

What would be the best practices?  I'm trying to stick to OERA, but that "Use TTY" keeps in my way to fully understand it...

Hope to get some expert insight.

TIA.

Posted by Matt Baker on 11-Feb-2015 09:02

 
Normally you put common stuff like these BE classes into a “common” project and have the other projects that have UI or TTY specific code reference that.  The BE classes do not have UI code in them (frames or forms) so they are compiled cross UI (tty vs gui) compatible.
 
You would set this up using number 2 in your list. PDS is designed to handle PROPATHs from other projects.
 
 
 
[collapse]
From: OctavioOlguin [mailto:bounce-OctavioOlguin@community.progress.com]
Sent: Wednesday, February 11, 2015 9:38 AM
To: TU.OE.Development@community.progress.com
Subject: RE: [Technical Users - OE Development] Mobile Project, uses TTY, Is there another way to....?
 
Reply by OctavioOlguin

I came to his:

c:\myApp
       \--- Appserver
       .      \.------cls
       \----DesktopClient
       .      \------w[/collapse]

This thread is closed