Jump to content

All Activity

This stream auto-updates     

  1. Yesterday
  2. Hi OlmanQuesada, We have checked with client and recorded video session which shows random opening of forms. If you see the last part of the video when user clicks on book icon to open up manufacturer screen, there are 2 random screens showing up and which they have to close and then it leads to the main form which was expected to be opened on click. They say it happens with other screens also not only manufacturer screen. Please find attached file. RandomScreen_PopupIssue.zip
  3. Last week
  4. Hi OlmanQuesada, You can find the code in "frmFind.cs" file , grid related functionality is in "modFind.cs" file. Project Name is "FraudTest" Let us know if you need more information. Thanks, Nishant Joshi
  5. Earlier
  6. Hi Nishant, We've been reviewing the issue and the code snippet. Can you provide us mofre details about the file where that code snippet is located. We look for that into our framework and the migrated code of you applicaiton but we were unable to find that piece of code.
  7. Hi Nishant, Let us review this.
  8. Thanks. Could be possible to get a video of the issue coming up? We need to reproduce the issue to analyze what is causing this.
  9. Hi Olman, I don't think there were any customization made to the framework.. we are only changing the css design on forms most of the time. Please find attached file containing package json for version being used. This behavior is very random... package.json
  10. Hi Nishant, Are there any additional modifilcations performed in the Mobilize Framework? Isolating the issue would be very helpful to understand what is causing the reported issue. OlmanQ
  11. Hi Nishant. Is this related to an app migrated from VB6 to WebMap? Please, send us the the version of WebMap helpers of the migrated application. Regards, OlmanQ
  12. Hi We have got complaints from our client that they do get some random window pop-ups while working on application. Those random opening windows shows their last action perform on those forms before they were closed. It seems like there is issue in framework which brings back the previously closed forms. We don't have any steps to reproduce it since we don't see it happening on development environment. we have seen similar issue few months back and it use to happen when there is an error on page and once we start continuing to work all previously closed forms shows up randomly while opening of other screens. To get it fixed we have to clear the cache. Now this is happening on client side most of the times. Is there any way we can fix it ?
  13. Dear Nishant, You can change the top and left values of the window's model so you can move it any where you want. For example, Best regards,
  14. Hi In our project we have a custom form which can find the text string on grid and focus the row to the user. It makes use of FirstDisplayedScrollingRowIndex , property to scroll to that particular row once match is found. This functionality works fine when we do the search initially but in case after searching the record if we scroll up or down far away from the current selected row which has the record searched previously and tries to search it again , code shows the right index and set's the FirstDisplayedScrollingRowIndex , but on UI auto scroll doesn't works. It should have scrolled to the record found. if we try to click on other rows to change the current index of grid and try again it works fine. Please find attached email for more details. code snippet below:- if (!strGrid.Rows[i - 1].Properties().Displayed) { strGrid.Properties().FirstDisplayedScrollingRowIndex = i; } FW_ FlexGrid scroll.msg
  15. Hi Nathalia, Thanks for looking into it. Yes it worked after removing the mentioned class. There was an requirement from client in which restoring of window was overlapping the button which we have below the menu options , so to provide space on top of window , class was created. Is there any way we can mention top padding for window to apply when they are restored so that they wont interfere ?
  16. Dear Nishant, We found that the issue is caused by a customization made to our window component. The class applied in the vm-window-custom.ts and defined in the style.css causes the window position to be fixed. Let me know if you need that code or if it can be updated so that the problem won't occur anymore. Best regards, Nathalia Ortega
  17. Thanks Nishant. We will check this and will reply back ASAP.
  18. Hi Nathalia, Please find copy of package json below. I don't see anything getting logged in console. i am attaching the email with details on how to reproduce the issue. { "name": "angular", "version": "0.0.0", "license": "UNLICENSED", "scripts": { "ng": "ng", "start": "ng serve", "build": "ng build --prod", "test": "ng test", "lint": "ng lint", "e2e": "ng e2e" }, "private": true, "dependencies": { "@angular-devkit/build-angular": "~0.800.0", "@angular/animations": "^8.0.0", "@angular/cdk": "^8.0.0", "@angular/cli": "^8.0.1", "@angular/common": "^8.0.0", "@angular/compiler": "^8.0.0", "@angular/compiler-cli": "^8.0.0", "@angular/core": "^8.0.0", "@angular/forms": "^8.0.0", "@angular/material": "^8.0.0", "@angular/platform-browser": "^8.0.0", "@angular/platform-browser-dynamic": "^8.0.0", "@angular/router": "^8.0.0", "@mobilize/winforms-components": "5.0.6-rc0025", "@progress/kendo-angular-l10n": "^1.0.5", "@progress/kendo-angular-layout": "^3.1.0", "@progress/kendo-theme-material": "^3.2.0", "core-js": "2.6.5", "file-saver": "^2.0.2", "ngx-spinner": "^8.0.3", "roboto-fontface": "^0.10.0", "rxjs": "6.5.0", "rxjs-compat": "^6.3.2", "tslib": "^1.9.0", "typescript": "~3.4.5", "zone.js": "~0.9.1" }, "devDependencies": { "@angular/language-service": "8.0.0", "@types/jasmine": "^3.3.2", "@types/jasminewd2": "~2.0.3", "@types/node": "10.12.15", "codelyzer": "^4.4.4", "jasmine-core": "3.3.0", "jasmine-spec-reporter": "4.2.1", "karma": "3.1.3", "karma-chrome-launcher": "2.2.0", "karma-coverage-istanbul-reporter": "2.0.4", "karma-jasmine": "2.0.1", "karma-jasmine-html-reporter": "1.4.0", "protractor": "~5.4.1", "ts-node": "~7.0.1", "tslint": "~5.18.0" } } Screen Drag Issue.msg
  19. Hi Nishant, Thanks for communicating with us. Can you please share with me which version of WebMap and other packages are you using? You can find the package versions of your application in the package.json file of the Angular project. Can you also attach a screenshot of your browser's console log so we can check what the issue may be. Thanks, Nathalia
  20. Hi We are facing issue with dragging of open window. It works fine on first attempt when screen is loaded for the first time , once we maximize the window and restore window to normal size it stops working. we are not able to drag it anymore if we want to move the form to see other screen elements. This is related to Kendo-Window. Steps to reproduce 1> Open any window from the top menu. 2> Drag the window from title bar and it will work fine. 3> Maximize the window. 4> Restore window again to previous state by clicking Minimize button 5> Drag the window and it wont allow user to move anymore. Thanks, Nishant Joshi
  21. Hi, The VB6 code needs to add the parameter to the parameter collection before accessing the value of the parameter otherwise an error at runtime is generated. The vb6 code does not indicate how the parameter at the index 0 of the collection is created, without that the followin line in the VB6 code will crash at runtime because there's no parameter at index 0. svrqAuthorise.Parameters(0) = mvlngEntityRefToMoveFrom When that code is converted to C#, a similiar situation happens, if the parameter is not created and added to the parameter collection a crash is generated. In this case the creation of the parameter is not incuded in the VB6 code. The situation described here is not necesarrily an issue with the converted code but it could be related to a problem in the source code. To determine what is causing it's important to check when the parameter at index 0 is created and added to the parameter collection.
  22. Hi Charlie, Thanks for your question, I'm part of the Support Team. I was testing your code, but I was not able to replicate the exception: "indexOutOfRange", or similar, In other words, your source code works properly, however, Could you please help us doing an example? (Just the parameters that you are sending to generate the issue) Kind Regards
  23. Hi Charlie, You can solve this situation by re-migrating the code by modifying the Migration Options to use Mobilize helper classes to deal with Default Properties and Late Binding Objects, as shown in the image below. C# does not support Default Properties, so statements like cvctlAuditControl = "" in .NET will need to specify the property for the object in cvctlAuditControl to set with an empty string. The VBUC provides a mechanism to help on this: The Reflection Helper. This helper class contains a collection of .NET classes and their respective Default Property. The following sample shows how it works: VB6: Private Sub Form_Load() foo Me.Text1 foo Me.Label1 End Sub Sub foo(ctl As Control) If Not ctl Is Nothing Then ctl = "my text" End If End Sub C# public void foo(ref Control ctl) { if (ctl != null) { //UPGRADE_WARNING: (1068) ctl of type VB.Control is being forced to Scalar. More Information: https://www.mobilize.net/vbtonet/ewis/ewi1068 ReflectionHelper.SetPrimitiveValue(ctl, "my text"); } } The Upgrade Warning 1068 indicates there's a situation, in this case caused due to a Default property in VB6. The ReflectionHelper.SetPrimitiveValue extract the datatype of the ctl object and then look for the associated Default Property (if any) to assign the "my text" value to that property.
  24. VB6 code: If svrqAuthorise Is Nothing Then lvstrSQL = "" ASQL lvstrSQL, "UPDATE tblEEntityDuplicates" ASQL lvstrSQL, "SET" ASQL lvstrSQL, "AuthorisedBy1 = " & FormatSQL(pvobjContext.UserID) & "," ASQL lvstrSQL, AuditSQL(pvobjContext, ecSQLbuilder.UpdateModifyFields) & "," ASQL lvstrSQL, "ProcessStatus = 1 ," ASQL lvstrSQL, "ProcessStatusMessage = 'Authorised 1'" ASQL lvstrSQL, "WHERE EntityRefToMoveFrom = ?" Set svrqAuthorise = New ADODB.Command svrqAuthorise.CommandText = lvstrSQL svrqAuthorise.ActiveConnection = pvobjContext.Connection End If svrqAuthorise.Parameters(0) = mvlngEntityRefToMoveFrom Generated code: if (svrqAuthorise_Authorise1 == null) { lvstrSQL = ""; UCommon.ASQL(ref lvstrSQL, "UPDATE tblEEntityDuplicates"); UCommon.ASQL(ref lvstrSQL, "SET"); //UPGRADE_WARNING: (1068) FormatSQL() of type Variant is being forced to string. More Information: https://www.mobilize.net/vbtonet/ewis/ewi1068 // EWI Solution Progress: EWI ID:1068 Status: TODO Fixed By: Asmita Date: 03/10/2019 UCommon.ASQL(ref lvstrSQL, "AuthorisedBy1 = " + Convert.ToString(UCommon.FormatSQL(pvobjContext.UserID)) + ","); UCommon.ASQL(ref lvstrSQL, UContext.AuditSQL(pvobjContext, UEnums.ecSQLbuilder.UpdateModifyFields) + ","); UCommon.ASQL(ref lvstrSQL, "ProcessStatus = 1 ,"); UCommon.ASQL(ref lvstrSQL, "ProcessStatusMessage = 'Authorised 1'"); UCommon.ASQL(ref lvstrSQL, "WHERE EntityRefToMoveFrom = ?"); svrqAuthorise_Authorise1 = UpgradeHelpers.DB.AdoFactoryManager.GetFactory().CreateCommand(); svrqAuthorise_Authorise1.CommandText = lvstrSQL; svrqAuthorise_Authorise1.Connection = pvobjContext.Connection; UpgradeHelpers.DB.DbConnectionHelper.ResetCommandTimeOut(svrqAuthorise_Authorise1); } svrqAuthorise_Authorise1.Parameters[0].Value = mvlngEntityRefToMoveFrom; The problem is parameters array is no initialized in converted code so it leads to a runtime exception. How can I solve it in a way I don't need to go over every database access method and manually initialize parameters? Best regards!
  25. I'm getting an index out IndexOutOfRange Exception, here is my code in vb6: Public Function GetDelimitedWord(ByVal pvstrInput As String, _ ByVal pvintItem As Integer, _ ByVal pvstrDelim As String) As String Const lcstrPROC_NAME As String = "GetDelimitedWord" Dim lvintCounter As Integer Dim lvintNewStartPos As Integer Dim lvintStartPos As Integer Dim lvintEndPos As Integer On Error GoTo ErrorHandler lvintCounter = 1 lvintStartPos = 1 For lvintCounter = 2 To pvintItem lvintNewStartPos = InStr(lvintStartPos, pvstrInput, pvstrDelim) + 1 If lvintNewStartPos < lvintStartPos Then lvintStartPos = Len(pvstrInput) + 1 Exit For Else lvintStartPos = lvintNewStartPos End If Next lvintCounter lvintEndPos = InStr(lvintStartPos, pvstrInput, pvstrDelim) - 1 If lvintEndPos <= 0 Then lvintEndPos = Len(pvstrInput) End If GetDelimitedWord = Mid$(pvstrInput, lvintStartPos, lvintEndPos - lvintStartPos + 1) ExitHandler: Exit Function ErrorHandler: NonContextErrorRaise mcstrMODULE_NAME, lcstrPROC_NAME, Err.Number, Err.Source, Err.Description Resume ExitHandler Resume End Function And here is the code generated by the tool: internal static string GetDelimitedWord(string pvstrInput, int pvintItem, string pvstrDelim) { const string lcstrPROC_NAME = "GetDelimitedWord"; string result2 = ""; int lvintCounter = 0; int lvintNewStartPos = 0; int lvintStartPos = 0; int lvintEndPos = 0; try { lvintCounter = 1; lvintStartPos = 1; int tempForEndVar = pvintItem; for (lvintCounter = 2; lvintCounter <= tempForEndVar; lvintCounter++) { lvintNewStartPos = Strings.InStr(lvintStartPos, pvstrInput, pvstrDelim, CompareMethod.Binary) + 1; if (lvintNewStartPos < lvintStartPos) { lvintStartPos = Strings.Len(pvstrInput) + 1; break; } else { lvintStartPos = lvintNewStartPos; } } lvintEndPos = Strings.InStr(lvintStartPos, pvstrInput, pvstrDelim, CompareMethod.Binary) - 1; if (lvintEndPos <= 0) { lvintEndPos = Strings.Len(pvstrInput); } result2 = pvstrInput.Substring(lvintStartPos - 1, Math.Min(lvintEndPos - lvintStartPos + 1, pvstrInput.Length - (lvintStartPos - 1))); } catch (Exception theException) { theException.HandleError(theException); } return result2; } I have similar code in over 100 places in my code, how can I solve it? Thanks.
  26. VBUC is converting a control to a dynamic type: VBUC code: Private cvctlAuditControl As Control Private Sub UpdateBoundControls(ByVal pvobjContext As IContext) If Not cvctlAuditControl Is Nothing Then If cvbooInsertInProgress Then cvctlAuditControl = "" ..... End Sub C# converted code: private dynamic cvctlAuditControl = null; private void UpdateBoundControls(INTBSSystem.IContext pvobjContext) { if (cvctlAuditControl != null) { if (cvbooInsertInProgress) { //NotUpgradedHelper.NotifyNotUpgradedElement("The following assignment/return was commented because it has incompatible types"); //UPGRADE_WARNING: (1068) cvctlAuditControl of type VB.Control is being forced to Scalar. More Information: https://www.mobilize.net/vbtonet/ewis/ewi1068 cvctlAuditControl = ""; .... We could solve our problems by doing this little change: private dynamic cvctlAuditControl = null; private void UpdateBoundControls(INTBSSystem.IContext pvobjContext) { if (cvctlAuditControl != null) { if (cvbooInsertInProgress) { //NotUpgradedHelper.NotifyNotUpgradedElement("The following assignment/return was commented because it has incompatible types"); //UPGRADE_WARNING: (1068) cvctlAuditControl of type VB.Control is being forced to Scalar. More Information: https://www.mobilize.net/vbtonet/ewis/ewi1068 cvctlAuditControl.Text = ""; The problem is we have to do it manually, and we are not sure how many of this cases we have in our code. Is there a better way to solve this issue? Regards.
  27. Hi Aldebaran, I recommend to run the migration again and running the pre-process step before We would like you to run the migration again from scratch, making sure you have all the references right and you run the preprocess. Please make sure the ADODB reference is resolved and make sure the output folder is empty before running the migration process: Go to the "Upgrade area", right click on the project and select "Preprocess Project" option, then, when the Preprocess ends, you can upgrade the code again.
  28. The ExtendedProperties.xml is mostly a report that the VBUC generates about some of the changes that it applies. I think it is also used by the ReflectionHelper class as an aid when trying to dynamically invoke a member.
  1. Load more activity
  • Newsletter

    Want to keep up to date with all our latest news and information?
    Sign Up
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Terms of Use