Some Questions!

Ouch!! Open Source ERP & Compiere beginners WILL have Teething Pains. This is where you rumbled thru like Rasputin, cry like a babe, and grin like a chimp! :D

Moderators: lofx, neilg, moyses, hema

Some Questions!

Postby Help~a~Beginner » Wed Jan 25, 2006 5:21 pm

Hi EveryBody

this topic will be my little corner in this forum, and i'll ask all of my questions
here, everytime i'll have to, i hope the answers will help those who are readin'

By the way i wanted to thank Radhouane who's helpin' each one of us

Okey, because there's not really a technical documentation available for compiere
it seems to be really hardwork to figure out the role of the tooo many options
given in the application dictionnary records:

well! let's start with the first question!

(1) Application Dictionnary>WindowsTabs&Fields>Window>Tab>LinkColumn(list)

what happens if I link a column ?

(2)
Help~a~Beginner
 
Posts: 3
Joined: Wed Jan 25, 2006 5:12 pm

Postby red1 » Wed Feb 01, 2006 8:49 am

It links to a parent table that shares the same id key. Such as Orders and OrderLines is linked via the C_Order_ID. This means its a Master-Detail document relationship
red1
Site Admin
 
Posts: 2760
Joined: Tue Jul 06, 2004 3:01 pm
Location: Kuala Lumpur, Malaysia

Postby Help~a~Beginner » Wed Feb 01, 2006 5:42 pm

(2) if i want to create my own window (that makes some specific stuff )
it will be a Form if i've understood..

compiere source provides it's own classes that define its windows (oops i said it) if i guess right, these classes allow to the forms to get the context
(almost called ctx as property)

so do i guess right if my specific Form needs to inherit from those classes to
be really linked to compiere? (suche as FormFrame.java and FormPanel.java .. ) or are they exactly THE classes that i need to inherit from ???
Help~a~Beginner
 
Posts: 3
Joined: Wed Jan 25, 2006 5:12 pm

Postby red1 » Wed Feb 01, 2006 11:40 pm

U seem to be on right track... do investigate further and write about it.

But pls do not make your words bold ( i already removed them). Pls keep to proper etiquette in formating your comments.

If u do that again, i will have to delete your thread to tidy up.

regards
red1
red1
Site Admin
 
Posts: 2760
Joined: Tue Jul 06, 2004 3:01 pm
Location: Kuala Lumpur, Malaysia

Postby Help~a~Beginner » Thu Feb 02, 2006 5:22 pm

oh sorry Radhouane I didn't mean to bother you with the bold written text
I thought that this would be just to underline the most important of what
I'm askin' about


(3)

-I've made a simple form with a few JTextfields and JLabels, a JscrolledPanel
with a JTable inside and i called it "MyForm.java"

-I put the java class of tha form in a personnal package in the compiere's
source that i called "Personnal"

-I launched compiere through the IDE (eclipse) using the main class of
AMenu.java

-I created a new Form through Application Dictionnary , and i linkid the new
form record to my form class
i tried with

i/ "Personnal.MyForm"
and with
ii/ "Personnal.MyForm.java"
I even changed the package to org.compiere.apps.form and set
iii/ "org.compiere.apps.form.MyForm"

-I created a new menu item, and i linked it to My Form

-I closed and retsarted compiere still from the IDE

and when I open the new form , nothing heappens , I get a little form with
only the standard menu items of compiere, and no JLabels , no JTable


what do I need to do else??
Help~a~Beginner
 
Posts: 3
Joined: Wed Jan 25, 2006 5:12 pm

What else to do

Postby neilg » Sat Mar 11, 2006 5:41 pm

I think you should post your code.

Why u using a form and not a window? A form will only be if you cant get the functionality you need from a window and is a lot more work.

With a form you should extend CPanel. Look for examples in Compiere source how they did it then you will be fine. I've got some source code but it is very old and not a good example.

Remember to always seperate your businesslogic completely from the UI. Your UI should only contain calls to your businesslogic. I was tought to use a BusinessLogicManager with a whole lot of static methods.
neilg
Regular
 
Posts: 141
Joined: Thu Jun 16, 2005 1:58 pm

Also see small technical points discovered through trial...

Postby neilg » Sat Mar 11, 2006 5:54 pm

neilg
Regular
 
Posts: 141
Joined: Thu Jun 16, 2005 1:58 pm


Return to Growing Pains

Who is online

Users browsing this forum: No registered users and 2 guests

cron