User Profile & Activity

Throstur Jonsson Member
Page
of 2

Hi Bernard,
I read your article. Unfortunately the attached code-sample is not accessible any more. However from that article I read that the only thing I had to do was to change the first parameter of my Insert method to be a ref-value:

[System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Insert, true)]
public object IsDsInsertComment(ref int idComment, string userId, int idPointGroup,....)
{
     :
     idComment = Convert.ToInt32(cmd.ExecuteScalar());
     :
     return idComment;
}

The insert to the database works fine as before, however the new value of idComment does not appear in the WebGrid. You can se the webgrid table column defination above. 
Here is the ISDataSource defination:

 <ISDataSource:ISDataSourceTable 
  ConflictDetection="OverwriteChanges" 
  ParameterOption="FromFields"
  SelectMethod="IsDsGetComments" 
  UpdateMethod="IsDsUpdateComment" 
  InsertMethod="IsDsInsertComment" 
  DeleteMethod="IsDsDeleteComment" 
  TableName="tblComments" 
  TypeName="C2Net.Common.Lbo.LboComment"
  OldValuesParameterFormatString="original_{0}">
  <SelectParameters>
	<asp:Parameter Name="idPointGroup" Type="Int32" DefaultValue="-1" />
	<asp:Parameter Name="idBuilding" Type="Int32" DefaultValue = "-1"/>
	<asp:Parameter Name="idOpcGroup" Type="Int32" DefaultValue="-1" />
	<asp:Parameter Name="from" Type="DateTime" />
	<asp:Parameter Name="to" Type="DateTime" />
  </SelectParameters>
</ISDataSource:ISDataSourceTable>

 Regards
  TJ




Posted: October 1, 2012 5:51 AM
Hi Hans,
Yes I know you can do this such for a single button of exact widht. But if you have many webbuttons all over the place you want to look alike and those are not allwasy the same width you have a problem. Somehow this is solved nicely when used with DeskoTop Manager.
Unfortunately I'm not using DesktopManager, but standalone mode for WebButton. Therefore I wondered if I could somewhere copy/paste the code that manages this from DesktopManager and use it with my standalone buttons.
Regards
  TJ
Posted: September 18, 2012 12:43 PM

Just to add to this. Safari 5.1.7 and Google Chrome 21.0.1180.89 m have the same symptom. So I changed your script to:

function WebTreeView1_OnInitialize(controlId) {    var WebTreeView1 = ISGetObject(controlId);
    if (!IS.ie) {
        window.setTimeout(function () { WebTreeView1.FrameObj.style.height = "100%"; }, 5000);
    }
    return true;
}

This works sometimes, but sometimes not for those browsers depeinding on wich order you resize the browser window versus the splitter. I realy can't figure out the rule here ... and maybe it is totaly random.
But anyway the script helps for those browsers.

Posted: September 18, 2012 4:39 AM

Hans, Thank you for your effort.

The workaround solved the problem for now. But I had to set the timeout to 5 sec instead of 1 seconds. Then it worked.

But anyway, I hope the dev-team comes with some solution, so I can remove this workaround.

Regards

  TJ

Posted: September 17, 2012 4:20 AM

Hi Hans,

I already had your version of WebTreeview.dll, WebTreeView.Resources.dll and the *.js files you sent. Regarding upgrading, the Update manager says: "No new updates where found" so I assume I also have the newest version of the Framework.

I attach screenshots running your example where you can se in the lower screenshot that the treeview does not expand with the pane. To regenerate this problem, you jut resize the browser window verticaly and then you se that the lower border of the treeview is not moving with the parent Pane.


If this does not happen your site, what in the world could be causing it on my dev. computer. 

NB! I'm running this with IIS7 web server, not a local dev. web server, if thtat matters. 
The computer I'm running this on (both browser and server) is Windows 7.


Regards
  TJ


Posted: September 14, 2012 3:50 AM

Your attached files seem to have fixed the problem.
Thank you.
  Throstur

Has this problem been fixed? If so in what release?
Regards
  TJ
Posted: September 7, 2012 12:36 PM

I have the same problem with 2009 R2. I have tested your example and it does not work, as you state.
Regards
  TJ

Posted: September 23, 2011 5:39 AM

Handy,
Sorry for my late replay. I had somehow missed your reply. Becuse web.config holds all the keys etc, can I send it to you directly somehow via email to you. What email address should I use?

PS: I tried to wipe out the temporary stuff as you suggested, but it did not help.

Posted: September 7, 2011 6:02 AM
Well after a lot of hacking I gave up and decided to start from scratch I removed the web app totaly from the IIS7 server and deleted all files. Then I deployed it compleetly again from my dev. machine, and after that it seems to work perfectly.

So I decided to do the same with another web app I have also using WebCombos and WebGrid (the same versions).

When running  that application (from the IIS7 server) everything seems to be ok untll I press an arrow of any WebCombo to "drop it down" Then I get this error:

Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB7.1; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET CLR 1.1.4322; InfoPath.2; .NET4.0C; .NET4.0E)
Timestamp: Wed, 7 Sep 2011 08:57:10 UTC

Message: Invalid argument.
Line: 9
Char: 40825
Code: 0
URI: http://82.221.35.198/E2Net/ISRes.axd?F/ISCore.js/305000752

This application (as the previous one) is using Forms Authentication:

    <authentication mode="Forms">
      <forms name="FormE6Net" loginUrl="E6ReportLogin.aspx" protection="All" timeout="30"/>
    </authentication>
    <authorization>
      <deny users="?"/>
    </authorization>

The strange thing is if I then log out and login again (same browser session) this problem wanish.
So this seems to have something to do with the authentication. Any clue?
All times are GMT -5. The time now is 9:44 PM.
Previous Next