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 7559647
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T12:41:17+00:00 2026-05-30T12:41:17+00:00

I have creted one dynamic temp-table and dynamic query.Now I want to populate it

  • 0

I have creted one dynamic temp-table and dynamic query.Now I want to populate it into browse.Here is my code.My issue is it is showing error like “source element of a buffer-copy statement has no record(5365)”.
How to solve this one?
cip-tablename = tableName getting from UI

CREATE BUFFER hBuffer FOR TABLE cip-tablename.


CREATE QUERY hQuery.        /*this query I need for some other logic.
hQuery:SET-BUFFERS(hBuffer).
hQuery:QUERY-PREPARE("FOR EACH " + cip-tablename + " WHERE " + cip-condition).
hQuery:QUERY-OPEN().


create temp-table hTT.
hTT:Create-Like(cip-tablename).
hTT:temp-table-prepare("tt" + cip-tablename).

hTTb = htt:default-buffer-handle.
hTTb:buffer-create().
hTTb:buffer-copy(hBuffer).


CREATE QUERY hQuery1.
hQuery1:SET-BUFFERS(hTTbh).
hQuery1:QUERY-PREPARE("for each tt " + cip-tablename).
hQuery1:QUERY-OPEN().

CREATE BROWSE hbrowse-hdl1
ASSIGN
TITLE     = cip-tablename + " Browse"
FRAME     = Frame DetailsFrame:Handle
QUERY     = hQuery1
X         = 48
Y         = 100
WIDTH     = 96
DOWN      = 10
VISIBLE   = YES
SENSITIVE = TRUE
READ-ONLY = yes.
hbrowse-hdl1:ADD-COLUMNS-FROM(hTTbh).
  • 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-30T12:41:18+00:00Added an answer on May 30, 2026 at 12:41 pm

    You’re missing some code to copy data from the source query to the TT:

    hQuery:Get-FIRST(no-lock).
    
    DO WHILE hbuffer:AVAILABLE:
    
       hTTb:buffer-create().
       hTTb:buffer-copy(hBuffer).
       hQuery:Get-NEXT(no-lock).
    
    END.
    

    Frankly, it’d be easier to just show the browse from the source table.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created one dynamic query and it all works well. I execute the
I have created one table using the below command: create table Table1( Id int
I have 2 different Java projects, one has 2 classes: dynamicbeans.DynamicBean2 and dynamic.Validator .
I have created one stored procedure which runs on 5000 users in tbluser table
I have created a dynamic listview which contains a CheckBox.what I want is at
I have a query string that is dynamic. The items I am searching for
I have created a fiddle here: http://jsfiddle.net/ozzy/paPRg/1/ Basically, I want to allow users to
I have lately learned what is dynamic sql and one of the most interesting
I want to create a dynamic table.My problem is this that I want to
I have created one aspx Page from that i need to access the property

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.