Re: [BLACKBOX] Opening an embedded form view

From: [at]} <Robert>
Date: Mon, 14 Dec 2009 23:01:36 +0000

----boundary-LibPST-iamunique-1382031709_-_-
Content-type: text/plain

Douglas G. Danforth wrote:
> Robert,
> Very elegant.
> Can you do the same without scanning for the view as Antony suggests?
> -Doug

>> I also don't like
>> using Views.Omnicast because of what its Docu says "Omnicast is slower
>> than Broadcast, and only necessary in exceptional cases". Maybe this
>> is an unfair criticism - but I didn't write the Docu!

The View in the Form must be found somehow - I have published two methods.
I generally prefer the second method I published tonight, but the previous one
is adequate and efficient for some circumstances - such as the case for the
'Palette Editor' example I started this long correspondence with.

Maybe there are better general methods.

Antony does scan for the View, but by using Views.Omnicast rather than
using his own code. This has three disadvantages:

1 - The Docu (see above) seems to imply that it is not a good technique.
2 - It is slow because is scans for every View in the entire system, not just
the first in your Form. It then sends every View a message which has to be handled.
3 - If there is more than one View of your type it fails to select only the
appropriate one, but updates all whether they are in your Form or not.

Cheers

Robert


----
To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy----boundary-LibPST-iamunique-1382031709_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3VyaWVyIE5ldzt9fQ0Ke1xj
b2xvcnRibFxyZWQwXGdyZWVuMFxibHVlMDtccmVkMFxncmVlbjBcYmx1ZTI1NTt9DQpcdWMxXHBh
cmRccGxhaW5cZGVmdGFiMzYwIFxmMFxmczIwIERvdWdsYXMgRy4gRGFuZm9ydGggd3JvdGU6XHBh
cg0KPiBSb2JlcnQsXHBh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GJ1dCBi
eSB1c2luZyBWaWV3cy5PbW5pY2FzdCByYXRoZXIgdGhhblxwYXINCnVzaW5nIGhpcyBvd24gY29k
ZS4gVGhpcyBoYXMgdGhyZWUgZGlzYWR2YW50YWdlczpccGFyDQpccGFyDQoxIC0gVGhlIERvY3Ug
KHNlZSBhYm92ZSkgc2VlbXMgdG8gaW1wbHkgdGhhdCBpdCBpcyBub3QgYSBnb29kIHRlY2huaXF1
ZS5ccGFyDQoyIC0gSXQgaXMgc2xvdyBiZWNhdXNlIGlzIHNjYW5zIGZvciBldmVyeSBWaWV3IGlu
IHRoZSBlbnRpcmUgc3lzdGVtLCBub3QganVzdFxwYXINCnRoZSBmaXJzdCBpbiB5b3VyIEZvcm0u
IEl0IHRoZW4gc2VuZHMgZXZlcnkgVmlldyBhIG1lc3NhZ2Ugd2hpY2ggaGFzIHRvIGJlIGhhbmRs
ZWQuXHBhcg0KMyAtIElmIHRoZXJlIGlzIG1vcmUgdGhhbiBvbmUgVmlldyBvZiB5b3VyIHR5cGUg
aXQgZmFpbHMgdG8gc2VsZWN0IG9ubHkgdGhlIFxwYXINCmFwcHJvcHJpYXRlIG9uZSwgYnV0IHVw
ZGF0ZXMgYWxsIHdoZXRoZXIgdGhleSBhcmUgaW4geW91ciBGb3JtIG9yIG5vdC5ccGFyDQpccGFy
DQpDaGVlcnNccGFyDQpccGFyDQpSb2JlcnRccGFyDQpccGFyDQpccGFyDQotLS0tXHBhcg0KVG8g
dW5zdWJzY3JpYmUsIHNlbmQgYSBtZXNzYWdlIHdpdGggYm9keSAiU0lHTk9GRiBCTEFDS0JPWCIg
dG8gTElTVFNFUlZATElTVFMuT0JFUk9OLkNIfX0Aa0JveA==
----boundary-LibPST-iamunique-1382031709_-_---
Received on Tue Dec 15 2009 - 00:01:36 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:30:38 UTC