Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics SL (Archived)

SolVbaDSLMaskedText display from right hand side.

Posted on by Microsoft Employee

Hi everyone,

I just inserted an object called SolVbaDSLMaskedText into Invoice and Memo screen (08.010.00) for my customization. The field type that I am using is character with the length of 100 character. When I key in my value into the text box that I created, at first it will show what I have key in. 8407.mrcb-0801000-problem-2.png

But when I click back to the text box, the text box will be highlighted and the value that I key in will appears to be 'disappear'.

7268.mrcb-0801000-problem-3.png

When I click on another object, this object still appears to be empty.

mrcb-0801000-problem-4.png

But when I press the 'Home' button from keyboard, the value will show up again.

Is it the field length that I am using too long and cause the text box show from the back? By the way, the alignment of the text box I was set to "0 - Left Justify". I was using Dynamic SL 2015 to do my customization.

*This post is locked for comments

  • Suggested answer
    Edwin Ondako Profile Picture
    Edwin Ondako 130 on at
    RE: SolVbaDSLMaskedText display from right hand side.

    Ken, I have seen this issue. I resolved my case by simply trimming the value before displaying it. After the fetch on the RefNbr for the custom data from the custom table, trim the value to the field before displaying.

    dim ourRef$

    Fetch Events...

    ourRef = trim(bCustTable.OurRef)

    The trim helps in ensuring that the object does not get populated with the whole buffer value even with spaces. So it seems to be taking the cursor to the end of the field due to the un-trimmed trailing spaces.

    Then:

    call setobjectvalue(txtOurRef, OurRef)....

    This should help you out.   This is how I have worked around the issue in my case.

    Not sure why it happens in SL2015.

    Thanks,

    Edwin

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: SolVbaDSLMaskedText display from right hand side.

    Hi PerumalSamy,

    I tried your method. It still show the same result.

  • Suggested answer
    Ram Peru Profile Picture
    Ram Peru 2,830 on at
    RE: SolVbaDSLMaskedText display from right hand side.

    Hello Kennthkoh,

    As everyone discussed the control and table have not been at the same level. Probably you can check the below things in your control properties.

    • Check the level property your text box
    • Level property of the table at the form load

    Call VBA_SetAddr ("bxCustable ", bxCustable, nxCustable, LenB (bxCustable))

    Call SqlCursorEx (csr_xCustable, NOLEVEL, "csr_ xCustable", “xCustable", "xCustable")

    If you are setting the level as NOLEVEL for your table, you can just put the Level property of control as 15, k.

    Please try this one and let me know how it goes.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: SolVbaDSLMaskedText display from right hand side.

    Hi Ajit,

    I tried your method. But it doesn't work.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: SolVbaDSLMaskedText display from right hand side.

    Hi Ajit,

    I will try it out.

  • Suggested answer
    Ajit Kannan Profile Picture
    Ajit Kannan 1,240 on at
    RE: SolVbaDSLMaskedText display from right hand side.

    Hi kennthkoh,

    In that specific text field set the Level as "NOLEVEL"

    Also call the Setaddr in form1_ load event

    Call VBA_SetAddr("bxCustable", bxCustable, nxCustable, LenB(bxCustable))
    Call SqlCursor(CSR_xCustable, NOLEVEL)

    This may help you

    Thanks,

    Ajit Kannan S R

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: SolVbaDSLMaskedText display from right hand side.

    Hi Karthik,

    I am using custom table and All Users level for my customization.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: SolVbaDSLMaskedText display from right hand side.

    It sounds like a levels issue.  Ether your table or the object is not at the same level as the other objects in the document section.

  • RE: SolVbaDSLMaskedText display from right hand side.

    Hi,

    Are you using the custom table or user fields in one of the standard table. It should be dealing with the Levels. Please let me know the level and table information so that we can get rid of this issue.  

    Thanks,

    Karthik

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans