?
Solved

populating list items from text items in D2k

Posted on 2003-03-18
4
Medium Priority
?
728 Views
Last Modified: 2007-12-19
I have the following problem when working with forms in D2k.  See if anyone could help me out:
============================================================================

I have a data block in my form named ?block1?.  The fields are

-     Emp_code - varchar2 Text item, Emp_name - varchar2 Text item and Pf_number - varchar2 Text item.

Here, Emp_code in block1 is a primary key  is generated in sequence by means of a trigger.  This trigger, I have written and is successful.

I have another datablock in the same form named ?block2?.  The fields are

-     Emp_code, varchar2 List item, Emp_name, varchar2 Text item and ESI_number, number Text item.

Now, I want to implement the following functionality:

Whenever I add new items to Emp_code (Text item) in block1, it should be added to the list for Emp_code (list item) in block2, so that user will pick it whenever he needs to fill up Emp_code in block2.

Can any one give me the trigger coding for this?

0
Comment
Question by:srigupta
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 22

Expert Comment

by:Helena Marková
ID: 8165482
I think that you can use a When-New-Block-Instance trigger of block2 and use POPULATE_LIST built-in there. If you dont't want to populate list item each time then you can add a non-displayed item to the block1 and in a Post-Insert trigger of block1 set it and test its value before populating the list item. After populating the list item you can reset it.
0
 

Author Comment

by:srigupta
ID: 8195726
henka

I am quite convenient with the positioning of the trigger coding.  that is not a problem?

But, I need to know what should be the exact trigger coding?  because, I tried to populate a record group and transfer it to the list item,  but it does not work out.  Try and see!
0
 
LVL 22

Expert Comment

by:Helena Marková
ID: 8200810
I think that it would be better if you post here your code for populating a record group and transfering it to the list item.
0
 

Accepted Solution

by:
SpideyMod earned 0 total points
ID: 8861273
Administrative Action - PAQ'd and points NOT refunded.

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this series, we will discuss common questions received as a database Solutions Engineer at Percona. In this role, we speak with a wide array of MySQL and MongoDB users responsible for both extremely large and complex environments to smaller singl…
In this article, I’ll look at how you can use a backup to start a secondary instance for MongoDB.
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question