CS3/CS4 - Tree view with dynamic height/width

Hi,
I have a resizable panel that contains a treeview, when the panel is resized the treeview resizes but I would also like the treeview nodes to adjust their width. For the record, -my treeview nodes contain static text widgets and images.
Can I hook up some observers and manually resize the widgets when the panel resizes?
Kind regards Toke

If your node re-size needs are simple you may achieve it by setting e.g. kBindRight | kBindLeft on the appropriate widgets in the .fr file.  For a complex view I'd extend PalettePanelView to create your own implementations of Resize (adapting the widget widths in there) and perhaps ConstrainDimensions.
Ian

Similar Messages

  • CS3/CS4 Icon view widget?

    Hi,
    I'm looking for a widget that can present some images like in a row-wise fashion that adjusts to the width of the panel containing the images. Functionality wise it should be similar to e.g., Windows icon view in explorer, where icons that cannot be on the first row are moved to the second, and so on.
    I'm thinking that one option is to use a tree view with a custom node implementation that measures the width of the tree view to calculate how many icons can be shown in each tree view node. However this solution needs a custom selection implementation, so before implementing such a solution, I want your opinion on, if an easier solution exists.
    Thanks
    Kind regards Toke

    If your node re-size needs are simple you may achieve it by setting e.g. kBindRight | kBindLeft on the appropriate widgets in the .fr file.  For a complex view I'd extend PalettePanelView to create your own implementations of Resize (adapting the widget widths in there) and perhaps ConstrainDimensions.
    Ian

  • CreateTextfield with dynamic height?

    Is it possible to use createTextfield with a fixed width, but
    without defining height, so that it will size according to the
    amount of text loaded into it from XML? I would like to do this so
    that I can get the _height property at runtime to use for custom
    scrolling of the text field. Thank you in advance!

    So, if I can't have dynamic height, (assuming no reply
    probably means "no" ;) ) I decided I would at least make it so the
    height can be defined from the XML file. I added an "h"= 300;
    attiribute to the node that contains the text in the XML file.
    Everything loads properly and traces just fine, but when I try to
    create the text field, nothing is there. I must have some wrong
    syntax or something,or perhaps I have to define a font differently.
    My font is in the library and linkage is set for exporting for
    actionscript. Could someone be so kind as to take a look and see if
    anything is obviously wrong? Thanks!

  • Problem with automated height/width after applying effect

    Hey guys,
    I have a panel that automatically resizes after some other contents is being added. All the time there is a scale-effect. Whenever I move the mouse over any of those children they zoom in and there the height & width of the parent container automatically resizes.
    However I have a minimize button for that one along with a resize effect. I can resize the complete container to a minimize size (e.g. 40x40), but when I resize back with the same effect, the panel does not automatically resizes with added children anymore.
    I did not set any special properties on the panel from the beginning, but some property must be different now. It is not "autoLayout" and also the "percentageWidth/Height" does not work properly as that command will cause the panel to stretch over the complete stage. Any suggestions here?

    Mmmh...that does not seem to solve the issue for me. Even when setting the width and height to NaN before the effect is played, it will still lead to a fixed height and width of the parent panel container. When I add new children the parent container is not properly resized, means that the chiildren just go beyond the parent container's border.
    Setting these parameters after the effect is done leads to the following crash: ArgumentError: Error #2004: One of the parameters is invalid.
    at flash.display::Graphics/drawRect()
    at spark.accessibility::PanelAccImpl/eventHandler()[E:\dev\4.0.0\frameworks\projects\spark\s rc\spark\accessibility\PanelAccImpl.as:361]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.core::UIComponent/dispatchEvent()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\co re\UIComponent.as:12266]
    at mx.core::UIComponent/dispatchResizeEvent()[E:\dev\4.0.0\frameworks\projects\framework\src \mx\core\UIComponent.as:9641]
    at mx.core::UIComponent/commitProperties()[E:\dev\4.0.0\frameworks\projects\framework\src\mx \core\UIComponent.as:7866]
    at spark.components.supportClasses::SkinnableComponent/commitProperties()[E:\dev\4.0.0\frame works\projects\spark\src\spark\components\supportClasses\SkinnableComponent.as:414]
    at mx.core::UIComponent/validateProperties()[E:\dev\4.0.0\frameworks\projects\framework\src\ mx\core\UIComponent.as:7772]
    at mx.managers::LayoutManager/validateProperties()[E:\dev\4.0.0\frameworks\projects\framewor k\src\mx\managers\LayoutManager.as:572]
    at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.0.0\frameworks\projects\frame work\src\mx\managers\LayoutManager.as:730]
    at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\4.0.0\frameworks\projec ts\framework\src\mx\managers\LayoutManager.as:1072]
    at flash.utils::Timer/_timerDispatch()
    at flash.utils::Timer/tick()
    Here is my code...anything wrong here.
    private function recreateWindow(e:MouseEvent)//thrown once the user moves his mouse over the minimized panel
         myResizeEffect.heightFrom = 40;
         myResizeEffect.heightFrom = 40;
         myResizeEffect.heightFrom = lastHeight;
         myResizeEffect.heightFrom = lastWidth;
         myResizeEffect.play();
         myResizeEffect.addEventListener(EffectEvent.EFFECT_END,resetMinimizeValues);
    private function resetMinimizeValues(event:EffectEvent):void
         myResizeEffect.removeEventListener(EffectEvent.EFFECT_END,resetMinimizeValues);
         //adding the old listeners before the panel was minimized
         this.width = NaN;//crash
         this.height = NaN;//crash
    Any suggestions?
    ...and how can I remove the "Question answered"-tag...?

  • Report Formatting with Dynamic Height Header/Footer

    I need to generate a printable report (pdf if possible) with a:
    1) Header - Dynamic Height based on recordset output
    2) Body - Recordset output, may carry over to multiple pages
    3) Footer - Dynamic Height based on recordset out
    In short, the whole page is dynamic- The header and footer need to be on every page and whatever height is left over to fit within the print area goes to the body and the line item output of each record (think invoice).  Then the number of pages will depend on how long it takes to output the body recordset (but the header and footer MUST be on each page).
    I have been trying to get this to work using cfdocument since CF7 and have never had any luck. It has not worked due to the reason that since the header and footer are dynamic height, I do not have any way to set the margins properly on page generation (so it shrinks the header or leaves excess whitespace).
    Anyone recommend the best way to go about this? I have heard about the report builder and am not sure if that will fit these requirements.  I appreciate any assistance!

    When the footer goes to the 2nd page the page subform is incremented so you will have to reference the page subform as well. I suggest that you add a button (this is for a test only) to the footer subform and add the code app.alert(this.somExpression). Now render the form and make sure the footer stays on one page. Hit the button and take note of the someExpression. Now add enough rows to force the footer to a new page. Hit th ebutton again and take note of the changed somExpression. So to solve your problem you will have to find out which page your footer is on. and then construct your expression to incorporate this chane in expression. Note that the indexes are 0 based but the page numbering is 1 based.
    Hope that helps
    Paul

  • Tree View with BLOB

    Ive displayed some workers with their departments in a tree view, but does somebody now how to put in their BLOB picture instead of their name into the tree view.
    i thougt that i just rewrite the tree views "Node Text Template" but therefore i will need the image src??? so how to get the src from the BLOB picture from the table???
    <tr>#INDENT#<td colspan="#COLSPAN#" valign="CENTER" class="tiny">#NAME#</td>
    <td>
    <img src=???????????? /> // it could be the worker number or something to get the blob src.
    </td>
    </tr>
    Please help me.
    thanks.

    807703,
    Can you set your name on the forum settings?
    Ok, the item name is just an example, your just using it as a placeholder to pass the key to the picture you want to receive, if your tree is on page 3, create the item called P3_EMP_NO for example.
    Your then setting the value of that item through the image source URL, and the application process can use it to present the right picture.
    If you want to see a sample of this working in 4.0 take a look at my app on apex.oracle.com.
    http://apex.oracle.com/pls/apex/f?p=9660:200 (tested in chrome only - should work on all browsers though)
    Edit: Just checked compatibility - it works in IE and chrome but not firefox! Not immediately apparent why.
    Page 200, login demo / demo2. (account has developer access so you can take a look at the page definition. There are only pictures for 4 photos).
    Note the css in the tree view region definition to change the picture and line size.
    'm guessing you're on 3.2 from your first post, I don't have 3.2 so I can't see where the img tag should go there (on 4.0 I put the url in the icon part of the sql query).
    James
    Edited by: James C on Nov 8, 2010 8:17 AM

  • How to have a UILabel with dynamic height?

    Hi, I have a UILabel which I created it programmatically. This UILabel consists of dynamic data and has line break. I tried setting this to my UILabel:
    CGRect cuisineRect = CGRectMake(94, 66, 180, 50);
    UILabel *cuisineStr = [[UILabel alloc] initWithFrame:cuisineRect];
    cuisineStr.numberOfLines = 0;
    cuisineStr.lineBreakMode = UILineBreakModeWordWrap;
    If the UILabel text is higher than 50, it'll be cut off, without word wrap. Is it that I should set the init with position only, without the height and width?

    Try implementing this method:
    - (CGFloat)tableView:(UITableView*)tableView heightForRowAtIndexPath:(NSIndexPath*)indexPath;
    You'll learn more if you figure out how to use it on your own or with google. If you come up empty, I'll show you some example code.
    -Phil

  • View with dynamic columns

    Hello.
    I'm sure this must be a FAQ but can't find it anywhere.
    I'm collecting data from people in a questionnaire style but don't know what/how many questions there are. I need to create a view that displays responses to each of the questions as a view, as follows:
    Name | Company | Favourite Colour | Age Range | Favourite Food
    In this example, there are three 'dynamic' questions. The data is stored as follows:
    People - basic information about the respondents
    Questions - the names of the questions being asked
    Choices - the options that can be chosen from for each question
    Responses - the answers that people provide.
    If I know exactly what questions there are, then I can JOIN to the questions table the appropriate number of times. But I don't! Can this be done without dynamic SQL?
    Very many thanks for help.
    Simplified tables and data follow:
    CREATE TABLE [People](
    [ID] [int] NULL,
    [Name] [varchar](50) NULL,
    [Company] [varchar](50) NULL
    ) ON [PRIMARY]
    GO
    CREATE TABLE [Questions](
    [ID] [int] NULL,
    [QuestionName] [varchar](50) NULL
    ) ON [PRIMARY]
    GO
    CREATE TABLE [Choices](
    [ID] [int] NULL,
    [QuestionID] [int] NULL,
    [ChoiceName] [varchar](50) NULL
    ) ON [PRIMARY]
    GO
    CREATE TABLE [Responses](
    [ID] [int] NULL,
    [PersonID] [int] NULL,
    [QuestionID] [int] NULL,
    [ChoiceID] [int] NULL,
    [OtherText] [varchar](50) NULL
    ) ON [PRIMARY]
    GO
    INSERT [People] ([ID], [Name], [Company]) VALUES (1, N'Ben', N'ACME')
    GO
    INSERT [People] ([ID], [Name], [Company]) VALUES (2, N'Dave', N'My Corp')
    GO
    INSERT [People] ([ID], [Name], [Company]) VALUES (3, N'Sarah', N'Newco')
    GO
    INSERT [Questions] ([ID], [QuestionName]) VALUES (1, N'FavouriteColour')
    GO
    INSERT [Questions] ([ID], [QuestionName]) VALUES (2, N'AgeRange')
    GO
    INSERT [Questions] ([ID], [QuestionName]) VALUES (3, N'FavouriteFood')
    GO
    INSERT [Choices] ([ID], [QuestionID], [ChoiceName]) VALUES (1, 1, N'Red')
    GO
    INSERT [Choices] ([ID], [QuestionID], [ChoiceName]) VALUES (2, 1, N'Blue')
    GO
    INSERT [Choices] ([ID], [QuestionID], [ChoiceName]) VALUES (3, 1, N'Green')
    GO
    INSERT [Choices] ([ID], [QuestionID], [ChoiceName]) VALUES (4, 2, N'<18')
    GO
    INSERT [Choices] ([ID], [QuestionID], [ChoiceName]) VALUES (5, 2, N'18-65')
    GO
    INSERT [Choices] ([ID], [QuestionID], [ChoiceName]) VALUES (6, 2, N'65+')
    GO
    INSERT [Choices] ([ID], [QuestionID], [ChoiceName]) VALUES (7, 3, N'Pasta')
    GO
    INSERT [Choices] ([ID], [QuestionID], [ChoiceName]) VALUES (8, 3, N'Curry')
    GO
    INSERT [Choices] ([ID], [QuestionID], [ChoiceName]) VALUES (9, 3, N'Steak')
    GO
    INSERT [Responses] ([ID], [PersonID], [QuestionID], [ChoiceID], [OtherText]) VALUES (1, 1, 1, 1, NULL)
    GO
    INSERT [Responses] ([ID], [PersonID], [QuestionID], [ChoiceID], [OtherText]) VALUES (2, 1, 2, 1, NULL)
    GO
    INSERT [Responses] ([ID], [PersonID], [QuestionID], [ChoiceID], [OtherText]) VALUES (3, 1, 3, 2, NULL)
    GO
    INSERT [Responses] ([ID], [PersonID], [QuestionID], [ChoiceID], [OtherText]) VALUES (4, 2, 1, 4, NULL)
    GO
    INSERT [Responses] ([ID], [PersonID], [QuestionID], [ChoiceID], [OtherText]) VALUES (5, 2, 2, 5, NULL)
    GO
    INSERT [Responses] ([ID], [PersonID], [QuestionID], [ChoiceID], [OtherText]) VALUES (6, 2, 3, 6, NULL)
    GO
    INSERT [Responses] ([ID], [PersonID], [QuestionID], [ChoiceID], [OtherText]) VALUES (7, 3, 1, 7, NULL)
    GO
    INSERT [Responses] ([ID], [PersonID], [QuestionID], [ChoiceID], [OtherText]) VALUES (8, 3, 2, 9, NULL)
    GO
    INSERT [Responses] ([ID], [PersonID], [QuestionID], [ChoiceID], [OtherText]) VALUES (9, 3, 3, 9, NULL)
    GO

    I'm not into reporting tools, but I recall that Kalman has mentioned some component in Reporting Services that can do this. And obviously, if you receive the result set as a DataTable in .NET, you can write code to flip it.
    As I said, a view or a result set in a relational database is a table that is supposed to model an enitity with a finite number of distinct attributes. For this reason, any query where the number of columns is not known until run-time has to build dynamically.
    And since a relational database is not designed for handling such dynamic scenarios, all attempt to work with that dynamically generated result set will be painful.
    So for the filters you mention, there are two options:
    1) Filter in the database on the base tables.
    2) Filter in the client on the pivoted data.
    But don't get the idea to filter in SQL Server after the pivot.
    If the total dataset is large, the first alternative certainly has an advantage, but else it's likely to be easier to do client side.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • Materialized view with dynamic column names !

    hello,
    i need some help , i'm trying ( i got no where so far :) ) to create a materialized
    view that has dynamic field name values , so every time the view is refreshed
    the fields are renamed.
    i have been asked to create a decade summary view and to assign year values to field names,the years should be table columns ( not rows !? ) and thus i should reflect this fact to the column names.
    i know its a wierd request but is there anway to do it ?
    i dunno about it at least,
    Thanks !

    ...or you could define the materialised view neutrally e.g. with columns like YEAR1, YEAR2 etc.
    Then create a dynamically-defined view on top of this view, after it's refreshed, using the relevant years as column names. SELECT year1 AS "1991", year2 AS "1992" etc.
    I still don't see how anybody is going to use these views as they won't know what the "year" columns are called.
    And if the same materialised view is going to have different sets of data each time it's refreshed i.e. different sets of years, are you re-defining the selection criteria each time? If so, why not just define separate views?
    It's a weird world out there...

  • Sliding panels with dynamic heights

    Hello,
    I'm currently working with sliding panels. When I resize my
    panels, the panel indexing system in spry does not seem to conform.
    Ie, if my panels are 100px high. As soon as I dynamically
    change them to 50px, panel(1) is no longer the second panel but
    rather the fourth.
    It appears that spry retains heights of elements. Is there
    something in SprySlidingPanels.js I can call for it to
    'recalculate' the heights?
    Thanks

    I was wrong!
    Spry is indeed clever and retains panel number.
    Doh!

  • Materialized view with dynamic filter

    I have a query which has a dynamic filter in the where clause. Dynamic in the sense, the value in the where condition will be obtained only when the query is run.
    The user interface is Business Objects tool i am using, based on the user login variable, the query is formed. Is there a possibilty to create a materialized view using this query.
    The query looks like this. The part in BOLD section is the filter. This query is taking long time and hence i am going for materialized view. Please suggest a solution
    SELECT
    DM_SALES.SALES_ORG_DIM.POSITION_LEVEL_5_DESC,
    SUM(case when PERIOD_DIM.FISCAL_PERIOD_NBR = ( DM_SALES.CURRENT_DATE_PERIOD_DIM.FISCAL_PERIOD_NBR ) and PERIOD_DIM.FISCAL_YEAR=( DM_SALES.CURRENT_DATE_PERIOD_DIM.FISCAL_YEAR ) then SALES_FACT.NET_SALES_USD else 0 end),
    SUM(case when PERIOD_DIM.FISCAL_PERIOD_NBR= ( DM_SALES.CURRENT_DATE_PERIOD_DIM.FISCAL_PERIOD_NBR ) and PERIOD_DIM.FISCAL_YEAR=( DM_SALES.CURRENT_DATE_PERIOD_DIM.FISCAL_YEAR )-1 AND PERIOD_DIM.FISCAL_DAY_IN_PERIOD BETWEEN 1 AND ( DM_SALES.CURRENT_DATE_PERIOD_DIM.FISCAL_DAY_IN_PERIOD ) then SALES_FACT.NET_SALES_USD else 0 end),
    SUM(case when
    PERIOD_DIM.FISCAL_YEAR=( DM_SALES.CURRENT_DATE_PERIOD_DIM.FISCAL_YEAR ) then SALES_FACT.NET_SALES_USD else 0 end),
    SUM(case when PERIOD_DIM.FISCAL_YEAR= ( DM_SALES.CURRENT_DATE_PERIOD_DIM.FISCAL_YEAR )-1
    AND PERIOD_DIM.FISCAL_DAY_IN_YEAR BETWEEN 1 AND ( DM_SALES.CURRENT_DATE_PERIOD_DIM.FISCAL_DAY_IN_YEAR )
    then SALES_FACT.NET_SALES_USD else 0 end),
    SUM(case when PERIOD_DIM.FISCAL_PERIOD_NBR = ( DM_SALES.CURRENT_DATE_PERIOD_DIM.FISCAL_PERIOD_NBR )and PERIOD_DIM.FISCAL_YEAR=( DM_SALES.CURRENT_DATE_PERIOD_DIM.FISCAL_YEAR ) then SALES_FACT.MUNITS_SOLD_QTY else 0 end),
    SUM(case when PERIOD_DIM.FISCAL_PERIOD_NBR= ( DM_SALES.CURRENT_DATE_PERIOD_DIM.FISCAL_PERIOD_NBR ) and PERIOD_DIM.FISCAL_YEAR=( DM_SALES.CURRENT_DATE_PERIOD_DIM.FISCAL_YEAR )-1 AND PERIOD_DIM.FISCAL_DAY_IN_PERIOD BETWEEN 1 AND ( DM_SALES.CURRENT_DATE_PERIOD_DIM.FISCAL_DAY_IN_PERIOD ) then SALES_FACT.MUNITS_SOLD_QTY else 0 end),
    SUM(case when
    PERIOD_DIM.FISCAL_YEAR=( DM_SALES.CURRENT_DATE_PERIOD_DIM.FISCAL_YEAR ) then SALES_FACT.MUNITS_SOLD_QTY
    else 0 end),
    SUM(case when PERIOD_DIM.FISCAL_YEAR= ( DM_SALES.CURRENT_DATE_PERIOD_DIM.FISCAL_YEAR )-1 AND PERIOD_DIM.FISCAL_DAY_IN_YEAR BETWEEN 1 AND ( DM_SALES.CURRENT_DATE_PERIOD_DIM.FISCAL_DAY_IN_YEAR )
    then SALES_FACT.MUNITS_SOLD_QTY else 0 end),
    SUM(case when PERIOD_DIM.FISCAL_PERIOD_NBR = ( DM_SALES.CURRENT_DATE_PERIOD_DIM.FISCAL_PERIOD_NBR ) and PERIOD_DIM.FISCAL_YEAR= ( DM_SALES.CURRENT_DATE_PERIOD_DIM.FISCAL_YEAR ) then
    SALES_FACT.CASES_SOLD_QTY else 0 end),
    SUM(case when PERIOD_DIM.FISCAL_PERIOD_NBR= ( DM_SALES.CURRENT_DATE_PERIOD_DIM.FISCAL_PERIOD_NBR )and PERIOD_DIM.FISCAL_YEAR=( DM_SALES.CURRENT_DATE_PERIOD_DIM.FISCAL_YEAR )-1 AND PERIOD_DIM.FISCAL_DAY_IN_PERIOD BETWEEN 1 AND ( DM_SALES.CURRENT_DATE_PERIOD_DIM.FISCAL_DAY_IN_PERIOD ) then SALES_FACT.CASES_SOLD_QTY else 0 end),
    SUM(case when
    PERIOD_DIM.FISCAL_YEAR=( DM_SALES.CURRENT_DATE_PERIOD_DIM.FISCAL_YEAR ) then SALES_FACT.CASES_SOLD_QTY
    else 0 end),
    SUM(case when PERIOD_DIM.FISCAL_YEAR= ( DM_SALES.CURRENT_DATE_PERIOD_DIM.FISCAL_YEAR )-1 AND PERIOD_DIM.FISCAL_DAY_IN_YEAR BETWEEN 1 AND ( DM_SALES.CURRENT_DATE_PERIOD_DIM.FISCAL_DAY_IN_YEAR )
    then SALES_FACT.CASES_SOLD_QTY else 0 end),
    DM_SALES.CURRENT_DATE_PERIOD_DIM.FISCAL_YEAR,
    DM_SALES.CURRENT_DATE_PERIOD_DIM.FISCAL_MONTH_NAME,
    DM_SALES.SALES_ORG_DIM.POSITION_LEVEL_6_DESC,
    DM_SALES.SALES_ORG_DIM.POSITION_LEVEL_7_DESC,
    DM_SALES.SALES_ORG_DIM.POSITION_LEVEL_8_DESC,
    CONCAT (CONCAT(SHIP_TO_CUST_DIM.SOURCE_CUST_NBR,'-'),SHIP_TO_CUST_DIM.SOLD_TO_CUST_NAME),
    CONCAT (CONCAT(SHIP_TO_CUST_DIM.SOURCE_CUST_NBR,'-'),SHIP_TO_CUST_DIM.SHIP_TO_CUST_LOC_NAME)
    FROM
    DM_SALES.SALES_ORG_DIM,
    PERIOD_DIM,
    SALES_FACT,
    DM_SALES.CURRENT_DATE_PERIOD_DIM,
    SHIP_TO_CUST_DIM
    WHERE
    ( SALES_FACT.INVOICE_DATE_KEY(+)=PERIOD_DIM.PERIOD_KEY )
    AND ( SHIP_TO_CUST_DIM.SHIP_TO_CUST_KEY=SALES_FACT.SHIP_TO_CUST_KEY )
    AND ( SALES_FACT.SALES_ORG_KEY=DM_SALES.SALES_ORG_DIM.SALES_ORG_KEY )
    AND ( PERIOD_DIM.PERIOD_KEY<=DM_SALES.CURRENT_DATE_PERIOD_DIM.PERIOD_KEY )
    AND
    ( DM_SALES.SALES_ORG_DIM.POSITION_LEVEL_5_DESC=(SELECT DM_SALES.SECURITY_HEADER.SALES_ORG_POSITION_DESC from DM_SALES.SECURITY_HEADER
    WHERE DM_SALES.SECURITY_HEADER.BOLOGIN = @VARIABLE('BOUSER')) ) AND
    ( PERIOD_DIM.FISCAL_YEAR>=DM_SALES.CURRENT_DATE_PERIOD_DIM.FISCAL_YEAR-1 )
    GROUP BY
    DM_SALES.SALES_ORG_DIM.POSITION_LEVEL_5_DESC,
    DM_SALES.CURRENT_DATE_PERIOD_DIM.FISCAL_YEAR,
    DM_SALES.CURRENT_DATE_PERIOD_DIM.FISCAL_MONTH_NAME,
    DM_SALES.SALES_ORG_DIM.POSITION_LEVEL_6_DESC,
    DM_SALES.SALES_ORG_DIM.POSITION_LEVEL_7_DESC,
    DM_SALES.SALES_ORG_DIM.POSITION_LEVEL_8_DESC,
    CONCAT (CONCAT(SHIP_TO_CUST_DIM.SOURCE_CUST_NBR,'-'),SHIP_TO_CUST_DIM.SOLD_TO_CUST_NAME),
    CONCAT (CONCAT(SHIP_TO_CUST_DIM.SOURCE_CUST_NBR,'-'),SHIP_TO_CUST_DIM.SHIP_TO_CUST_LOC_NAME)

    You could potentially create a single materialized view that had no restriction on the BOLOGIN column and allow Oracle to use that materialized view to be used to satisfy requests from the different users. You may need to add appropriate indexes to the materialized view for that to be a reasonable option, depending on how many distinct BOLOGIN values you expect.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Spark DataGrid with Dynamic Column Width

    Lets suppose I have a Spark Datagrid with no explicit typicalItem. When the Datagrid is initialized, the column widths are calcualted correctly based on the contents of the dataprovider. However if I add/remove an item from the dataprovider, or modify the one of the objects in the dataprovider, the column widths never update to reflect the change. Is the the correct behavior for a DataGrid? If so, is there any method I can call to force the DataGrid to recalculate and redraw the column widths?

    When Spark DataGrid doesn't have a typicalItem, it uses the first dataProvider item as the typicalItem.  If you change that, the DataGrid won't pick it up immediately. You can invalidate the current typicalItem using dataGrid.invalidateTypicalItem().

  • Create view with dynamic from-clause

    Dear all,
    you might have some ideas to help me out of my issue that i just "created myself" ;-)
    i have a unknown and non-constant amount of tables using the the same table-structure and i do have a master table
    that contains all names of these kind of tables. I now want to create a single view that contains all columns of each table
    and an additional column name containing the name of the corresponding table.
    I found a solution for this but only if I knew all table names while creating my view.
    Here's what I currently have:
    master_table:
    ID TABLENAME
    1 table_01
    2 table_02
    table_01:
    ID NAME
    1 eins
    2 zwei
    3 drei
    table_02:
    ID NAME
    1 one
    2 two
    3 three
    my view "tab1tab2" on these 2 table looks like this:
    ID NAME TABLENAME
    1 eins table_01
    2 zwei table_01
    3 drei table_01
    1 one table_02
    2 two table_02
    3 three table_02
    i achieved this view by using:
    CREATE OR REPLACE VIEW TAB1TAB2 ("ID", "NAME", "TABLENAME")
    AS
    SELECT id,name, 'table_01' AS tablename FROM table_01
    UNION
    SELECT id,name, 'table_02' AS tablename FROM table_02;
    Is there a way to create as many select and union statements as i do have entries (tablenames) in my master_table to achive the same results as my hardcoded view ?
    Many thanks in advance for your help
    Best regards
    majo

    Is there a way to create as many select and union statements as i do have entries (tablenames) in my master_table to achive the same results as my hardcoded view ?You can achieve this also with some xml facilities as e.g. in
    SQL> create table t1 as select empno, ename from emp where rownum <= 3
    Table created.
    SQL> create table t2 as select deptno empno, dname ename from dept
    Table created.
    SQL> create table master as (select 1 id, 't1' table_name from dual union all
                                       select 2 id, 't2' table_name from dual)
    Table created.
    SQL> create or replace view v_t
    as
    select table_name, x.*
      from (select table_name, 'ora:view("' || table_name || '")' tabs from master),
           xmltable (tabs columns id int path 'EMPNO', ename varchar2(20) path 'ENAME') x
    View created.
    SQL> select * from v_t
    TABLE_NAME              ID ENAME              
    t1                    7369 SMITH              
    t1                    7499 ALLEN              
    t1                    7521 WARD               
    t2                      10 ACCOUNTING         
    t2                      20 RESEARCH           
    t2                      30 SALES              
    t2                      40 OPERATIONS         
    t2                      50 SALES              
    8 rows selected.
    SQL> create table t3 as select object_id empno, object_name ename from user_objects where rownum <= 3
    Table created.
    SQL> insert into master values (3, 't3')
    1 row created.
    SQL> select * from v_t
    TABLE_NAME              ID ENAME              
    t1                    7369 SMITH              
    t1                    7499 ALLEN              
    t1                    7521 WARD               
    t2                      10 ACCOUNTING         
    t2                      20 RESEARCH           
    t2                      30 SALES              
    t2                      40 OPERATIONS         
    t2                      50 SALES              
    t3                  187449 ABC                
    t3                  187448 ADDRESSES_EXT_TAB  
    t3                  187446 ADDRESSES_EXT_TYP  
    11 rows selected.Note: above will work only in 11g.

  • Power View with dynamic connection string, but server-side

    We'd like to evaluate using Power View to provide exploratory BI over data output from HDInsight, onto Azure Storage. We need to let users select which segments of data to load but through a web-ui (not Excel on the desktop). We expect to have a standard
    data model, it's just the segments of data that will be dynamically selected by the user. Basically the Power Query will need to be updated dynamically, but on the server-side. Is this scenario currently possible?

    Any suggestions for SFiorito?
    Thanks!
    Ed Price, Power BI & SQL Server Customer Program Manager (Blog,
    Small Basic,
    Wiki Ninjas,
    Wiki)
    Answer an interesting question?
    Create a wiki article about it!

  • How to generate a view with dynamic name?

    I want to generate a view from several tables;
    create view sample as select * from book1;
    But I hope to create a serial views in my program,that is "sample" maybe "sample20010401" and "sample200010501" ect.If I define a variable,how to pass the value to the view?
    Any words are help to me?thanks.
    [email protected]
    null

    Use dynamic SQL
    null

Maybe you are looking for

  • Error in Proportional Factor Calculation Program

    Hi , I have developed an ABAP Program to calculate Proportional Factor(PF) as below. Generally,to calculate the PF for a period , we need to use transaction /sapapo/sdp94 to create a profile .After doing that , to calculate PF we need to go transacti

  • Iphone 4 can't hear me, but I hear them

    My iphone 4 I can hear them, but they can't hear me. They can hear me on speaker and they can hear me with my Bluetooth. This happened a couple of months ago. I went to the Apple store. They told me that the moisture indicator was orange at the botto

  • Error message says redirecting to never ending loop may be due to refusal to accept cookies. How do I fix it?

    I was trying to sign into Netflex. I entered all info and then enter, but got a message something to the effect that Firefox was redirecting my attempt in ways that would never complete. Suggested that it might me due to refusal to accept cookies. I

  • Condition type MWST

    Hi Friends, We set up condition type MWST (output tax) for our European customers. The rate is 17.5%. Our issue is for some customers we won't charge 17.5% at all. (two scenarios could apply to one customer) My question is Is that possible that I am

  • Finding a common Time Dimension in DSO and InfoCube

    Hi, I am working on creating a MultiProvider which is a combination of 2 COPA InfoCubes, Open Orders DSO and a Shipment Data DSO. I want to use the 'Requested Delivery Period' from Open Orders DSO and a custom field ZSHIPMONTH from the Shipments Data