Autor Thema: Wofür ist %%Surrogate gut?  (Gelesen 2462 mal)

Offline hampa

  • Aktives Mitglied
  • ***
  • Beiträge: 106
  • Geschlecht: Männlich
  • "As khunnt guat"
    • Hampas Blog
Wofür ist %%Surrogate gut?
« am: 22.08.06 - 14:26:30 »
Hallo zusammen

Seit der Version 7 erscheint folgende Zeile neue im Quell-Text unserer Web-Applikation

<input name="%%Surrogate_FeldName" type="hidden" value="1">

Der gesamte Code für die Auswahlliste lautet wie folgt.

Code
<input name="%%Surrogate_FeldName" type="hidden" value="1">
<select name="FeldName" style="width:40%;">
<option selected>-
<option>Customer
<option>Externe
<option>SL</select>

Kann mir jemand von euch sagen, warum Lotus diese neue Zeile eingeführt hat? Diese zusätzliche Zeile macht uns nämlich einwenig Kopfzerbrechen.  ;D

Vielen Dank für sachdienliche Hinweise und viele Grüsse aus der Schweiz

Hampa
Notes R8.5.2 FP3
Server  R8.5.2 FP3

Windows 2008
Windows 7
Linux-Mint LMXDE

Lieber unvollkommen als total fertig.

Offline m3

  • Freund des Hauses!
  • Gold Platin u.s.w. member:)
  • *****
  • Beiträge: 8.102
  • Geschlecht: Männlich
  • Non ex transverso sed deorsum!
    • leyrers online pamphlet
Re: Wofür ist %%Surrogate gut?
« Antwort #1 am: 22.08.06 - 14:44:13 »
Zitat
Posted by Stan Rogers on 7.Nov.05 at 14:46
The %%Surrogate field may be Domino's way of ensuring that some value is submitted/recorded for fields that may be skipped in the normal course of submitting an HTML form (I don't have Domino 7 handy to test with).

Posted by Mark Vincenzes (IBM / Lotus) on 7.Nov.05 at 16:17
Stan, you are correct. We used to try to make infrences about this but they were not always correct and there were conflicts with application of default values -- I don't remember the details.
So we added the %%Surrogate.
This is also in later versions of v6.

Notes/Domino 6 and 7 Forum
HTH
m³ aka. Martin -- leyrers online pamphlet | LEYON - All things Lotus (IBM Collaborations Solutions)

All programs evolve until they can send email.
Except Microsoft Exchange.
    - Memorable Quotes from Alt.Sysadmin.Recovery

"Lotus Notes ist wie ein Badezimmer, geht ohne Kacheln, aber nicht so gut." -- Peter Klett

"If there isn't at least a handful of solutions for any given problem, it isn't IBM"™ - @notessensai

Offline hampa

  • Aktives Mitglied
  • ***
  • Beiträge: 106
  • Geschlecht: Männlich
  • "As khunnt guat"
    • Hampas Blog
Re: Wofür ist %%Surrogate gut?
« Antwort #2 am: 22.08.06 - 14:57:48 »
Hallo m3

Vielen Dank für deine Hinweise. Mein Englisch scheint nicht gerade das beste zu sein, denn ich verstehe immer noch nicht ganz, worauf Mister Vincenzes hinaus will.

Kann mir das jemand so übersetzen, dass ich etwas damit anfangen kann?  :-[ (altavista kann's nicht.  ;) )
Notes R8.5.2 FP3
Server  R8.5.2 FP3

Windows 2008
Windows 7
Linux-Mint LMXDE

Lieber unvollkommen als total fertig.

Glombi

  • Gast
Re: Wofür ist %%Surrogate gut?
« Antwort #3 am: 22.08.06 - 15:07:34 »
Ich versteh auch nicht was das soll und wofür man das braucht  :-:

Damit alle Felder im Web Browser bekannt sind, schalte ich die Maskeneigenschaft "HTML für alle Felder generieren" ein. Damit hat man dann bspw. auch versteckte Felder am Wickel.
D.h. man kann Web-Applikationen machen, die wie Notes-Applikationen funktionieren. Erstaunlich  ;)

Andreas

Offline hampa

  • Aktives Mitglied
  • ***
  • Beiträge: 106
  • Geschlecht: Männlich
  • "As khunnt guat"
    • Hampas Blog
Re: Wofür ist %%Surrogate gut?
« Antwort #4 am: 22.08.06 - 15:17:29 »
Hallo Glombi

Das mit den versteckten Feldern machen wir seit "Jahr und Tag" so. Wir greifen sogar auf die "hidden"-Felder zurück.  >:D

Da wir ausschliesslich Web-Applikationen entwickeln und uns dieses Surrogate-Feld schon die Quere gekommen ist, interessiert es mich brennend, was das Ganze soll.

Ich finde die Aussage "I don't remember the details" aus sehr spannend.  ;D

Gruss Hampa
Notes R8.5.2 FP3
Server  R8.5.2 FP3

Windows 2008
Windows 7
Linux-Mint LMXDE

Lieber unvollkommen als total fertig.

Offline m3

  • Freund des Hauses!
  • Gold Platin u.s.w. member:)
  • *****
  • Beiträge: 8.102
  • Geschlecht: Männlich
  • Non ex transverso sed deorsum!
    • leyrers online pamphlet
Re: Wofür ist %%Surrogate gut?
« Antwort #5 am: 22.08.06 - 15:26:19 »
IMHO (und das ist jetzt wirklich nur eine Interpretation) soll mit den %%Surrogate Felder gewährleistet werden, dass beim Speichernvon checkbox, combobox, radio, doer listbox Feldern auf jeden Fall ein Wert übermittelt wird, auch wenn aus unerfindlichen Gründen das eigentliche Feld keinen Wert zurückliefert.

So bekommt Domino u.a. mit, dass ein Feld mit Hide-When versteckt wurde und nicht einfach übergangen wurde, weil es leer war.

Würde ich mal so sagen.
HTH
m³ aka. Martin -- leyrers online pamphlet | LEYON - All things Lotus (IBM Collaborations Solutions)

All programs evolve until they can send email.
Except Microsoft Exchange.
    - Memorable Quotes from Alt.Sysadmin.Recovery

"Lotus Notes ist wie ein Badezimmer, geht ohne Kacheln, aber nicht so gut." -- Peter Klett

"If there isn't at least a handful of solutions for any given problem, it isn't IBM"™ - @notessensai

Offline hampa

  • Aktives Mitglied
  • ***
  • Beiträge: 106
  • Geschlecht: Männlich
  • "As khunnt guat"
    • Hampas Blog
Re: Wofür ist %%Surrogate gut?
« Antwort #6 am: 22.08.06 - 16:03:11 »
Hi m3

Vielen herzlichen Dank für den prompten Service.  :D

Gruss Hampa
Notes R8.5.2 FP3
Server  R8.5.2 FP3

Windows 2008
Windows 7
Linux-Mint LMXDE

Lieber unvollkommen als total fertig.

 

Impressum Atnotes.de  -  Powered by Syslords Solutions  -  Datenschutz