Domino 9 und frühere Versionen > ND6: Entwicklung

Problem with Listbox fields in layout

<< < (2/2)

koehlerbv:
As Jens already said: Just give us some more informations - I am sure we'll find a solution ;-)

That you are from Timisoara, too, lets me think again: We are living on a small planet  ;)

Bernhard

Toma Bogdan:
So, I have 2 fields:
- k_org (radio button)
- users_list (list box) with the Formula for choices (users)

I need to refresh automatically the content of the users_list field depends of the k_org value.
 
This is the code from the Refresh list button:

--- Code: ---Sub Click(Source As Button)
   Dim ws As New notesuiworkspace
   Dim uidoc As notesuidocument
   Dim doc As notesdocument
   Dim popup As notesdocument
   Dim s As New NotesSession
   
   Dim index As Integer
   
   Set uidoc=ws.currentdocument
   Set doc=ws.currentdocument.document
   
   Dim dbcrt As NotesDatabase   
   Set dbcrt=s.currentdatabase
   
   path$=dbcrt.FilePath
   final_path$ = Leftbp$(path$, Len(path$)-12)
   
   Set db=New notesdatabase (dbcrt.server,final_path$ + "users.nsf")   
   
   Dim temp As Variant
   
   org=doc.k_org(0)
   
   Set v=db.getview("(All"+Left (org$,2)+")")
   
   Set user_doc=v.getfirstdocument
   index=0
   
   While Not user_doc Is Nothing
      Redim Preserve strArray(index) As String
      strArray(index)=user_doc.name(0)
      index=index+1
      Set user_doc=v.getnextdocument(user_doc)
   Wend
   
   doc.users_list=strArray
   Call uidoc.refresh
   
End Sub
--- Ende Code ---


--- Zitat von: koehlerbv am 20.06.04 - 00:55:12 ---That you are from Timisoara, too, lets me think again: We are living on a small planet  ;)
--- Ende Zitat ---
you have right  ;D

TMC:
Toma,

I just galloped through your code, but I'm not sure what you need exactly.....

OK, you do have 2 fields and a button.


--- Zitat ---I need to refresh automatically the content of the users_list field depends of the k_org value.
--- Ende Zitat ---
Does this mean, if the user clicks on the radiobutton, then the above mentioned code (sub click...) should be executed?

If so, maybe you could use the postrecalc-event!? Or the exiting-event of the radiobutton-field (not that perfect).

Toma Bogdan:

--- Zitat von: TMC am 20.06.04 - 18:35:28 ---
--- Zitat ---I need to refresh automatically the content of the users_list field depends of the k_org value.
--- Ende Zitat ---
Does this mean, if the user clicks on the radiobutton, then the above mentioned code (sub click...) should be executed?

If so, maybe you could use the postrecalc-event!? Or the exiting-event of the radiobutton-field (not that perfect).
--- Ende Zitat ---
when I select item3, the form refresh the list for the last item accesed (item2); if I select item4, the form refresh the list for item3 and so on even I use postrecalc-event or the exiting-event ...  ???

Navigation

[0] Themen-Index

[*] Vorherige Sete

Zur normalen Ansicht wechseln