Developer forum

Forum » Development » e.ParagraphRow is allmost empty

e.ParagraphRow is allmost empty


Reply

When using the same CustomModule twice on a page, first time the module is called, content of e.ParagraphRow (in Default.vb) is ok, but in the second call, some information in e.ParagraphRow is missing, what can cause that problem?




 




            Case "eankontakt"



                Dim objeankontakt As New CustomModules.ean.eankontakt



                e.Output = objeankontakt.VisMedarbejder(e.ParagraphRow, e.Pageview)






 




 


Replies

 
Nicolai Høeg Pedersen
Reply

If the module is attached twice on the same page it would be two different paragraphs and hence two diferent paragraphrows - I dont see how they could be missing data.


 


Could you tell a little more about what is missing?

 
Reply
NP wrote:


If the module is attached twice on the same page it would be two different paragraphs and hence two diferent paragraphrows - I dont see how they could be missing data.




 




Could you tell a little more about what is missing?





 


First time:


 


e.ParagraphRow.ItemArray(28) contains


 


GROUP7KursusKortBeskrivelse.htmlGruppeKortBeskrivelse.htmlIDV-Finansiering.htmlAMU-Finansiering.html


 


 


Second time:


 


e.ParagraphRow.ItemArray(28) contains


 


 


0KursusBeskrivelse.html


 


 


 


and content of


and is missing.


 

 
Reply

That does not make sence:)


 


The settings are written to XML when the paragraph is saved, regardless of how many paragraphs you've attached the module to on a single page. It's more likely that the settings haven't been set on the second paragraph. Try copying the first paragraph to the same page and have a look at the settings.


 


If that doesn't bring you closer, feel free to post the URL here and I'll be glad to take a look at it.


 


/Lars

 
Reply

What happens if you:


 - Make a new paragraph on an other page with the same settings?


 - Deactivate the paragraph that works right?


 - Copy the first paragraph to the same page and display them both?


 - Change the sort order?


 - Start from scratch on an other page.


 


Hopefully you can reason something from the behavior here.


 


My point is that one paragraph is not aware of what is displayed on an other paragraph on the same page, so it must be something you're overlooking. Try changing you [modulesystemname]_Settings field to Text and see what it contains on both paragraphs. Doublecheck the values of the fields listed her before you submit the form.

 
Reply

Sorry, I hit the wrong link when I tried to reply to Torben's post.

 
Reply
Sorensen wrote:


Sorry, I hit the wrong link when I tried to reply to Torben's post.





Hey, is it possible, that you can give me a call xxxxxxxx


 

 
Reply
tjh wrote:

Sorensen wrote:





Sorry, I hit the wrong link when I tried to reply to Torben's post.










Hey, is it possible, that you can give me a call xxxxxxxx




 




again, can you please call me..
 
Nicolai Høeg Pedersen
Reply

Hi


 


We can not call you.


 


But feel free to show us your code. You are definitely doing something wrong. I want to see all of the frontend code to be able to help you more.


 


One question:


Have you saved your paragraph that does not return enough xml after you added the extra properties?

 
Reply
NP wrote:


Hi




 




We can not call you.




 




But feel free to show us your code. You are definitely doing something wrong. I want to see all of the frontend code to be able to help you more.




 




One question:




Have you saved your paragraph that does not return enough xml after you added the extra properties?






I got a deal with Lars, i cant upload my database and my solution, it is to big.


 

 
Reply
tjh wrote:

NP wrote:





Hi








 








We can not call you.








 








But feel free to show us your code. You are definitely doing something wrong. I want to see all of the frontend code to be able to help you more.








 








One question:








Have you saved your paragraph that does not return enough xml after you added the extra properties?










 




I got a deal with Lars, i cant upload my database and my solution, it is to big.




 




Public


 


Class

CustomModuleHandler

 


 


Public Sub GetCustomModule(ByVal sender As Object, ByVal e As

Dynamicweb.Frontend.CustomModuleEventArgs)

 


 


Dim strModuleName As String

= e.Name

 


 


Select Case

strModuleName

 


 


Case

"eanbrochure"

 


 


Dim objEanBrochure As New

CustomModules.ean.eanbrochure

e.Output = objEanBrochure.brochure(e.ParagraphRow, e.Pageview)


 


 


Case

"eanordtekst"

 


 


Dim objeanordtekst As New

CustomModules.eanordtekst.eanordtekst

e.Output = objeanordtekst.ShowTekst(e.ParagraphRow, e.Pageview)


 


 


Case

"eankontakt"

 


 


Dim objeankontakt As New

CustomModules.ean.eankontakt

e.Output = objeankontakt.VisMedarbejder(e.ParagraphRow, e.Pageview)


 


 


Case

"dealersearch2"

 


 


Dim objModule As New

CustomModules.DealerSearch.DealerSearch

e.Output = objModule.DealerSearch(e.ParagraphRow, e.Pageview)


 


 


Case

"rotater"

 


 


Dim objModule As New

CustomModules.hamlet.rotater

e.Output = objModule.CreateRotater(e.ParagraphRow, e.Pageview)


 


 


End

Select

 


 


End

Sub

End


 



Class

 



















second time it reaches "eanordtekst" on a page, e.ParagraphRow does'nt contains what i expect, where is it loaded?


 


 


 


 


 


 


 


 


 


 


 


 


 


 


 


 


 

 

You must be logged in to post in the forum