Link to home
Start Free TrialLog in
Avatar of hreinart
hreinart

asked on

WEB application: need a button to set a filed in a view (java applet)

hi,

i have a view running in a java applet.

now i want to select a document in this view and have 1 field set to the value of @today.

i don't want this to be done by an agent.


any idea?
Avatar of p_partha
p_partha

You want to change the value of a document, which needs to be done at the server level. So there in nothing you can do with javascript,

I would prefer html views than java applet to do such stuff

Partha
Avatar of hreinart

ASKER

what could i do if i don't use java?
html is not what i want
So you don't want Java nor HTML.. Then how do you think that you can develop a web application ??

~Hemanth
Just create a button in the view:

FIELD myfield := "newvalue";
""

That should work in the Java applet representation.

Now why don't you want to use an agent ?  Because you can't create 'real' webapplications in Notes without using agents ....  And I don't think you understood Hemantha's comment : you should choose the HTML representation of the view (in the view properties) if you want more control over appearance and functionality.  You can't however, change stuff in documents in a view without doing some backend processing (via an agent).... the Java representation gives a bit more possibilities, but has drawbacks too (slow in loading over the web, less control over appearance , ...)

If you want a nice looking, powerful webapplication, explore the possibilites of the html-style view on the web !

Tom
hi,

the server the application is running on is a free server on the web.

the view lauched as a java applet is not supported  ;-(

also agents are not allowed.

sofar i do it like this:
- double clikc on the document in the view
- i have 3 buttons in the form
- edit, set the field and save

this works.

i tried to put all @ commands in 1 button, that doesn't work.


hi,

i tired to create a button in the view.

the button is not visable in the view (web -> internet explorer)
in notes the button works
From Original Question You Wrote  :-  the view lauched as a java applet is not supported  ;-(

From above post : -
Comment from hreinart  Date: 10/04/2004 12:00AM PDT Author Comment  
hi,

the server the application is running on is a free server on the web.

the view lauched as a java applet is not supported  ;-(


Do you have Java applet or not ?

 
hreinart,

You are confusing...

What is the free web server ? DOMINO ?
Secondly, You double click on the view ?? Is this the web app ?? And how does the web double click open the doc (unless the view is shown as java applet) ??

Enable javascript in the db properties for the button to show up.

What is your domino version ?

hi,

sorry for my confusing comments, that is not intended !

i started to use a java applet in the view on my test system.
then i recognized that the server where the application will run on doesn't support this.

that's why i asked for a solution without java applet.

now my suggestion:
can you answer the question using the java applet?
i can use this for another databse, too.

additionally :
can you answer the question Without using the java applet?
i can add points or create a new question for this.


is this ok for you all?
There are three ways to display a view:

a. use java applet
b. Use what domino generatees
c. use html views.

Now if you use html views, you can have full control on what u want to achieve. Let me know , then i can throw in the ideas

Partha
hi,

i wouldn't mind to use html, but it look very poor.
i set "treat view contents as html" in the view properties.

is is comming out viewing the ie:
NummerTitelSchüler#Schüler NameAusleihdatum888888888888804.10.2004

normally it should similar to this:
Nummer                        Titel  Schüler#    Schüler Name   Ausleihdatum
888888888888                          80                                     4.10.2004


SOLUTION
Avatar of p_partha
p_partha

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Your best bet is HTML since you yourself ruled out java method ;-)

Don't treat view content as html.. this is only used when you embed some html tags in the view's data...Just enable "Allow selection of Docs".. this will be more like what partha suggested in last link.. but you don't have to code..Domino does it automatically for you.

hi,

just to mention it again:
i would be also intereded in the jave solution !!!

regarding:
Allow selection of Docs  -> this looks nice, thanks.


regarding the mentioned link:
that's too much work and i'm not sure if i get it really to work.

...but:
now after i changed the properties of the view like suggested and that i see a checkbox
here, would you be able to tell me how to create a button that will replace 1 field with the value of   @today    and save this document?

Your best bet is HTML since you yourself ruled out java method ;-)

=> java would also be good to know ..and if i get ansers for both ways i'll increase points.

is is ok?
See to manipulate any thing in the selected docs, u need to use what is mentioned int he link as changing a value in the document is at the server level , u cannot do anything at javascript

Partha
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
hi,

you both gave me a really good tip.
it'll take a while to get this running.

as far as i can see it'll work, if i do it right.


i hope that points splitting is ok for you.

please have a look at my new question.
https://www.experts-exchange.com/questions/21158224/Need-a-change-of-a-front-end-agent-to-work-in-the-web.html

the database i try to get up gets better and better and i need for some stuff support from you.
...that's why i ask more questions regarding this database.


thanks
hreinart