Skip to Content
author's profile photo Former Member
Former Member

DDDW question

I have a base table with about 300 fields. On my UI I will have DDDW's that will populate the user selection list.

the SQL for the DDDW is

Select NAME,ID from TABLE where ID2 = : PARAM

where PARAM would be passed in during runtime depending on the location of the UI the user selects.

The question is: Can this be done with a single DDDW or would I need to have 300 separate DDDW's ?

Thanks

TPS

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Posted on Jul 27, 2016 at 02:43 PM

    Hi Tom

    If the SQL remains the same then it should be possible to use the same dddw, there is nothing stopping you using the same dddw in different places.

    If however you want to select name2, id .... then you may need to have a new dddw OR you are going to have to manipulate the SQL for the child dw at runtime.

    Hope that helps.

    David

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 27, 2016 at 03:45 PM

    I am sure that this can be done in back-end using stored procedure, create Dropdown Datawindow using Stored Procedure..

    Regards

    Jahir.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 27, 2016 at 05:23 PM

    Hi Tom;

    If the display column and mapped data column from the DDDW remain the same then you are good to go.

    However, if the display column varies and/or the Table - then you have to get more creative. What I do in this latter case is use an SQL computed column wrapped in a CASE statement. That way, the CC (aka DDDW display column can be loaded from various sources.

    As Jahir states above as well, I've been able to use a SP that calls other SP's or uses a Case statement to allow me to return various sourced display values from different columns.

    HTH

    Regards ... Chris

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      I will give it a shot. My dynamic where clause will get quite complex in some instances being 1000's of characters long.

      I am hoping the performance of loading up 300 dddw's will be fast. (less than 2 seconds total)

      I have some thoughts on how to load just the character data to the main form and just load the dddw when needed if the bulk initial load is to slow.

      The initial load will have simple where clauses where the click event will have very complex where clauses.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.