Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Unanswered

Temporary Table

Posted on by 10

There is  textbox and the user can enter the character, I want to insert a temp table 
in the item description field that starts with the character user entered.

Code is not showing

Deger := TextBox;
IF Deger='' THEN
MESSAGE('Empty')
ELSE
Deger1:=COPYSTR(Deger,1,1);
MESSAGE(Deger1);

LOCAL TempInsert()
//Titem.RESET;
CLEAR(Titem);
Lcase:=LOWERCASE(COPYSTR(Titem.Description,1,1));
IF (Deger1 = Lcase) THEN BEGIN
Titem.SETRANGE("No.","Item No.");
IF Titem.FINDSET THEN
REPEAT
TempIle.INIT();
TempIle."Item No." := Titem."No.";
TempIle.Description := Titem.Description;
TempIle.INSERT;
UNTIL Titem.NEXT=0;
TempIle.RESET;
IF TempIle.FINDSET THEN
REPEAT
CLEAR(Rec);
Rec.TRANSFERFIELDS(TempIle);
Rec.INSERT;
UNTIL TempIle.NEXT=0;
END;

  • Mohamed Kair Profile Picture
    Mohamed Kair 10 on at
    RE: Temporary Table

    ı am calling under button action

  • Suresh Kulla Profile Picture
    Suresh Kulla 43,745 on at
    RE: Temporary Table

    Where are you calling you function Tempinsert?

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,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans