XML Hyperling control
Joop van Kempen
Hello,Anybody knows how to use the XML statement for a hyperlink control? Result should be the orange marker and opening of the Business Partner form. I tried the following statement which i copied from the manual:
type="PerpetuumSoft.Reporting.DOM.ReportControlCollection" id="2">Location="1641.732283464567;70.866141732283467" Size="41.338581085205078;35.433071136474609" Name="shape3" Line="1 Solid DarkRed">type="PerpetuumSoft.Framework.Drawing.ArrowShape" id="4" Direction="Right" />id="5">";;Close]"" PropertyName="Hyperlink" />EndColor="Orange" />type="PerpetuumSoft.Framework.Drawing.LinearGradientFill" id="9" />
I see the orange marker in the designer but the hyperlink doesnt work. Your help would be appreciated,
Regards, J van Kempen
Coresuite Designer 1.46
SAP Business One 2007 A 800.178 SP:00 PL:42
Philipp Knecht
Hi JoopAdjust the Hyperlink Property (Bindings) to your needs.
You may use the newer (simpler) Syntax:
LD.OpenObject(SAPbouiCOM.BoLinkedObject.lf_BusinessPartner,Document("CardCode"))Of course you have to replace the Document("CardCode") with your dynamic CardCode.
hth
Joop van Kempen
Hi Philipp,The textbox has the following value in the bindings using a query:
GetData("B1_Data.Q:Herinneringslijstopeninkooporders3.CardCode")
I tried to replace the Cardcode in your suggested VB syntax in serveral ways but did not succeed. Could you give me the correct syntax?
Thanks in advance,
grtz Joop
By the way: think it should be like this
LD.OpenObject(SAPbouiCOM.BoLinkedObject.lf_BusinessPartner,Document("B1_Data.Q:Herinneringslijstopeninkooporders3.CardCode"))
i get the following error:
textBox14.DataBindings['Hyperlink']. Expression line: 1 column: 0 De klasse PerpetuumSoft.Reporting.DOM.Document kan niet worden geindexeerd omdat deze geen standaardeigenschap heeft.
Philipp Knecht
Hi JoopTry with:
LD.OpenObject(SAPbouiCOM.BoLinkedObject.lf_BusinessPartner,GetData("B1_Data.Q:Herinneringslijstopeninkooporders3.CardCode"))
then.
hth
Joop van Kempen
Hi Philipp,The hyperlink works fine now and the form is opened properly. Thanks alot! What i dont get is the orange marker infront of the BP Carcode. Any idea how this can be done?
grtz Joop
Philipp Knecht
Hi JoopIf you don't want to copy it from another layout (or your xml?...) then you can recreate it by using a shape object.
hth
Joop van Kempen
Hi Philipp,Ok, not that difficult after all. I thought the creation of the marker was in the VB statement. Anyway: problem solved; hyperlink works just fine. I appreciate your fast response and help on this topic.
grtz Joop
0
Please sign in to leave a comment.
Comments
0 comments