Database Driven UI

85 views
Skip to first unread message

thinkmind

unread,
Feb 25, 2009, 7:40:10 PM2/25/09
to AribaWeb (aribaweb.org)
Hi There,

From past 1 week I am going through the code base.

1) Can any one give me idea on how to create a select box based on the
values from DB? I see the .awl files are being compiled to classes.
2) Can any one share diagram that shows the dependency of various
layers with in the application. I see aribaweb, aribareload, expr etc.
This helps to bring in maven pom files.
3) Is there a mechanism to tell the ant build to pick dev, test,
production related optimization and settings. Say c:\demos\aw prod.

Regards,
Ramesh

arib...@gmail.com

unread,
Feb 25, 2009, 9:09:15 PM2/25/09
to AribaWeb (aribaweb.org)
Hi Ramesh,

1) I am assuming you are asking how to do this using lower level AW
core (not MetaUI), and you are fetching the DB values yourself.
We already have a component to render the HTML select (AWPopup). It
takes in a list binding and an item binding.
So here’s an example:

In YourComponent.awl
<AWPopup list=”$myValues” item=”$currentValue”>
$currentValue.label
</AWPopu>

In YourComponent.java
public Object currentValue;
public List myValues;
public List myValues ()
{
If (myValues == null) {
myValues = <populate from DB>
}
return myValues;
}

You can find the complete reference to AWPopup in the Demo app under
the Documentation tab.
(Note: The .awl files parse into an AWTemplate instances, not compiled
into a classes)

2) http://aribaweb.org/resource/hero/FullStack.gif roughly shows the
dependencies of the components.
Some of the jars in the lib also has a aribaweb.properties file
with that has a “depends-on” entry, so should help on figuring out the
build ordering.
Please also take a look at http://aribaweb.org/Documentation/Distribution_Contents.htm
for a description of the lib jars.

-Kingsley

Ramesh Mandaleeka

unread,
Feb 25, 2009, 9:12:28 PM2/25/09
to arib...@googlegroups.com
The pointers you shared are very helpful. Thank you Kingsley.

Regards,
Ramesh

Kingsley

unread,
Feb 26, 2009, 12:17:37 AM2/26/09
to AribaWeb (aribaweb.org)
You're welcome, Ramesh

A followup:
2) You will also need the selection binding to bind the currently
selected object from the list of choices.
3) There is no concept of dev/prod mode during build (compile) time,
the bits are same.
Debug features (ie, XRay, debug options panel), remote debugging,
rapid turnaround of resources, and class reloading is turn on by the
default ant command.

To turn off:
a) debug features and remote debugging, set the ant property
debug.off property to false.
b) rapid turnaround of resource, set the aw.search.path ant
property to "" or set the env var ARIBA_AW_SEARCH_PATH to ""
c) class reloading, set the aw.reload ant property to false or set
the env var ARIBA_AWRELOAD to false.

-Kingsley

On Feb 25, 6:12 pm, Ramesh Mandaleeka <ramesh.mandale...@gmail.com>
wrote:
> The pointers you shared are very helpful. Thank you Kingsley.
> Regards,
> Ramesh
>
> On Wed, Feb 25, 2009 at 9:09 PM, <ariba...@gmail.com> wrote:
>
> > Hi Ramesh,
>
> > 1) I am assuming you are asking how to do this using lower level AW
> > core (not MetaUI), and you are fetching the DB values yourself.
> > We already have a component to render the HTML select (AWPopup).  It
> > takes in a list binding and an item binding.
> > So here’s an example:
>
> > In YourComponent.awl
> > <AWPopup list=”$myValues” item=”$currentValue”>
> >    $currentValue.label
> > </AWPopu>
>
> > In YourComponent.java
> > public Object currentValue;
> > public List myValues;
> > public List myValues ()
> > {
> >    If (myValues == null) {
> >       myValues = <populate from DB>
> >    }
> >    return myValues;
> > }
>
> > You can find the complete reference to AWPopup in the Demo app under
> > the Documentation tab.
> > (Note: The .awl files parse into an AWTemplate instances, not compiled
> > into a classes)
>
> > 2)http://aribaweb.org/resource/hero/FullStack.gifroughly shows the

Rahul Sharma

unread,
Dec 24, 2014, 5:18:37 AM12/24/14
to arib...@googlegroups.com, ramesh.m...@gmail.com
Hi Ramesh,

I just started the AribaWeb MetaUI database application, I got stuck with some issue. Please help me If you have any idea on my issue,  I have posted my issue in the following link, 


Also If possible please try to give some suggestion for the following query,

1) I have created the an entity called Leads. and will save some values in the Leads table in UI. Now I need to create a new page (Entity) called accounts, Here  need to get the all the values from leads, How can it can be done. How can we map values form one page to another page?

Thanks in advance
 
Reply all
Reply to author
Forward
0 new messages