Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4266350
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T06:44:55+00:00 2026-05-21T06:44:55+00:00

information: I have an order form. With keuze and aantal it wright a new

  • 0

information:
I have an order form.
http://img695.imageshack.us/i/delhi.png/

With “keuze” and “aantal” it wright a new line. The Orderline gets an OrderID.
But the user may only see the orderline from his OrderID.

How can i make it work that it only shows, for example the OrderID “47” ?

procedure TfmOrder.btInvoerenClick(Sender: TObject);
begin
    dm.atOrder.open;
    dm.atOrder.Append;
    dm.atOrder ['OrderStatus']             := ('Aangemeld');
    dm.atOrder ['klantID']                 := fminloggen.userid;
    dm.atOrder ['OrderDatum']              := Kalender.date;
    dm.atOrder ['Opmerkingen']             := leOpmerkingen.text;
    dm.atOrder.post;
    cbkeuze.Visible  := true;
    dbRegel.Visible  := true;
    leAantal.visible := true;
    btOpslaan.Visible:= true;
end;

This is the code for making a new Order

procedure TfmOrder.btOpslaanClick(Sender: TObject);
var orderid:string;
  begin
    dm.atOrderregel.Open;
    dm.atDier.open;
    dm.atorderregel.Append;
    dm.atOrderregel ['AantalDieren'] := leAantal.text;
    dm.atOrderregel ['OrderID']      := dm.atOrder ['OrderID'];
    dm.atOrderregel ['Diernaam']     := cbKeuze.Text;
    dm.atOrderregel.Post;
    leaantal.clear;
    cbkeuze.ClearSelection;
  end;

And this for a new orderline

thanks in advance

I know got a different error using this code:

 begin
      dm.atorder.Open;
      dm.atorder.filter   := 'KlantID = '  + (fminloggen.userid);
      dm.atorder.filtered := true;
      while not dm.atorder.Eof do
      begin
         cbOrder.Items.Add (dm.atorder['OrderID']);
         dm.atOrder.Next;

      end;
      dm.atOrder.Close;
   end;

It gives an error: The arguments are from the wrong type, or doesn’t have right reach or are in conflict with each other.

here is userid declared.

var Gevonden: boolean;
    userid : string;
begin
  dm.atInlog.open;
  Gevonden := false;
  while (not Gevonden) and (not dm.atInlog.eof) do
  begin
      if dm.atInlog['email'] = leUser.Text
    then
      begin
        Gevonden := true ;
        inlognaam := dm.atInlog['email'];
        userid    := dm.atInlog['KlantID'];
      end
    else
      dm.atInlog.Next
      end;

this is obviously in another form

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T06:44:55+00:00Added an answer on May 21, 2026 at 6:44 am

    You can use the Filter property of the data set:

    atOrderregel.Filter := 'OrderID = 47';
    atOrderregel.Filtered := True;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a simple html form that submits information with POST function. But when
I have a template which allows the user to edit their user information. <form
I'm setting up a contact form, but I have some saved information in some
I have an information retrieval application that creates bit arrays on the order of
I have a 'Purchase Order' class. It contains information about a single purchase order.
I'm new to Django, trying to process some forms. I have this form for
I have a C# form with 5 buttons. The users enters the information and
I have a users table in a database, where the user enters a form
I have a form where users input information for a test run on a
I have a table that has the user ID already in it, but some

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.