Default or Static Item in Layout within ListView

I am trying to have a static item show up within the layouttemplate of my listview. Anyone can show me some examples of this? I have a lv_serviceLocations_DataBound event that fires the ListView to be visible, but I am unsure of how to take the data within
my DataTable and have a default location be visible once the ListView appears. Here is some of my code...
<asp:ListView ID="lvServiceLocations" runat="server" DataSourceID="sdsServiceLocations"
DataKeyNames="user_service_location_id" InsertItemPosition="FirstItem"
OnItemInserting="lvServiceLocations_ItemInserting"
OnDataBound="lvServiceLocations_DataBound" >
<LayoutTemplate>
<table class="location-selection-table ui-widget-content"><tr>
<th colspan="4" class="ui-widget-header">Locations</th></tr>
<tr id="itemPlaceHolder" runat="server" />
</table>
</LayoutTemplate>
<ItemTemplate>
<tr class="location-selection-item-row">
<td class="location-selection-actions">
<asp:LinkButton runat="server" Text="Remove" CommandName="Delete" /></td>
<td><%# Eval("selected_state") %></td>
<td><%# Eval("selected_county") %></td>
<td class="location-selection-actions"></td>
</tr>
</ItemTemplate>

Hi Mosnet99,
Thank you for posting in the MSDN forum.
Since Visual Studio General Forum which discuss Visual Studio IDE usage, I’m afraid that it is not the correct forum for this issue. The issue seems more related to the ASP.NET Web Application,
so I suggest you can post the issue to the
ASP.NET forum and you will get more detail information about your issue.
Thanks for your understanding.
Best Regards,
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.

Similar Messages

  • ORA-01400 - not null column with default value and item with authorization

    I've searched - I would think someone has run into this. APEX 3.0.0.00.20 - I've created a simple form on a table. One of the column is a not null column with a default value. I have a select list on that item, but it has security on it - authorization scheme. So, it checks the user and if that user isn't of the right role, it will not even display that item. However, APEX appears to still send in the column in its sql! So, the default value is useless, it sends in null each time. Even if I set the default at the Item level, I get null. Argg. That's got to be a bug...
    In debug, I do not see the item listed at all. It's not used. That's fine - but why is it trying to insert the value? I would think it would leave it off??? I think because the item is associated with a database column. But, getting around this is ugly. Having to create a hidden item for each one, and then check to see if I need to take the list value... horrible. Any way to get around this???

    I should add - I guess I can always put my own custom process in to replace the DML. Just seems like a simple thing - if the value doesn't appear on the debug, isn't set with any default value... don't include it in the DML.

  • Is it possible to create a new tab in 'Default settings for items' option?

    Hi everybody
    I am Raghu working in EBP2.0 & I have come across a difficlty and that is of creating a new tab and also the fields 'GL a/c', 'cost centre' or 'internal order' in this new tab.
    First of all please let me know whether is it possible to create a new tab for these fields.
    The purpose of this new tab is to default the cost centre and GL account with reference to shopping cart.
    As per current scenario, user has to enter the cost centre & the GL code as many times as the number of items in a shopping cart. I mean, if you have 10 items in your shopping cart then 10 times user has to input the cost centre & GL account. To avoid this we are required to add new tab so that per shopping cart we can enter the GL account & cost centre only once.
    Your immediate response would be very much apprecited.
    Regards
    Raghu

    hi Ram & Sreenivas
    Thanks for your immediate response.
    Ram, we can default GL a/c & cost centre in org structure since client wants to us to keep the option of entering these for every shopping cart.
    Sreenivas, I checked the 'copy to clipboard' option & its not there in EBP2 and I feel what you meant as cost centre tab is account assignment tab.
    Let me explain you more clearly about this requirement.
    Current Scenario
    1.Say a user has added 5 items to his SC.
    2.User has to enter cost centre & GL code 5 times & then he can order
    Required scenrio
    1.Say a user has added 5 items to his SC.
    2.As per the proposed functionality, user will click on 'Default settings for items' button. Three tabs will appear-->Basic data, Internal note & Delivery Address.
    We have to provide a new tab here where in user will default his GL & cost centre for this shopping cart & then order. This will help user to avoid entering GL & cost centre 5 times.
    For some reasons our client is not interested in defaulting this data.
    Please help in this regard if time permits.
    Thanks
    Raghu

  • How can I permanently delete the default bookmark toolbar items (getting started, most recent, etc.)?

    I can't seem to permanently delete the default bookmark toolbar items. They show up frequently on start-up, even after manually deleting them in a previous session. I use 3.6 x_32 on Linux (for Flash) and 4.0 RC 1 x_64 (for non-flash) sharing the same profile.
    I use the X-marks extension and I thought that was the cause the problem, but the problem keeps happening even after deleting all of the the default items in each version and then overwriting my x-marks server data with a forced upload both times.
    I'm guessing that x-marks will be most people's prime suspect. I just want to make sure that firefox isn't recreating the items as a default behavior.
    I know it's a minor annoyance, but I keep my bookmarks toolbar pretty full. Thanks.

    Does it still happen if you temporarily disable Xmarks?
    Doesn't it work if you hide the Bookmarks Toolbar?
    You can check:
    * http://kb.mozillazine.org/Corrupt_localstore.rdf

  • GL account given in Default Settings for Items is not taking precedence

    Hi All,
    Could you please give your valuable inputs for my query
    Which takes precedence....GL account given in Default Settings for Items at the top of the shop screen or the Product category and GL account assignment maintained in SRM GUI?
    Scenario: I input a GL account in 'Default Settings for Items' at the top of the shop screen. Then click on Describe Requirements. Here I change the Product Category and add the line item to shopping cart.
    What GL account will appear in the cost assignment? Default value maintained at the top or the value maintained in the Product category table.
    Thanks
    Deepthi....

    Hi Muthu,
    Thank you for your response.
    It is not picking the default G/L account assigned to cost center( I believe you are talking abt OKB9 trans). It is picking the G/L account which is assigned to the product category in the customising. This is happenning only if the product category is changed for the line item while adding the item to shopping cart. Otherwise the same G/L account given at the header is appearing in the line item too.
    Also While changing the G/L#  information in Default settings for items at top, if Cost center is also changed then the same cost center is appearing in the cost assignment section for the line item but not the G/L.
    Wanted to know if this is a standard design or not. I would like to have the header data to take precedence over the product category and G/L assignment. Any suggestions please
    No ..... I checked in csks table.There are many cost centers for the company code.
    Thanks
    Deepthi..

  • Set as default value the Item Category in the Maintenance Order

    Hello everyone,
    We are trying to find a user exit in order to set as default value the item category in the Maintenance Order once the Material has been introduced (Tag Components).
    SAP Customizing let the user set the Item Category automatically per Material Type, but we need to set different Item Categories to materials belonging to the same material type.
    We would really appreciate any help relating this issue.
    Thank you very much,
    Víctor Liedo

    Dear Paul,
    Thank you very much for your response.
    I had already tried customizing mentioned by Pithan, but it did not work because we need to set different Item Categories for Materials with same Material Type.
    We have been searching for exits which may let us set Item Category in the Maintenance Order, but it does not seem to be possible.
    What you say about adding some custom validation through user exit, not to set item category as default value, but to check if the one entered is valid, sounds the best way of achieving our commitments.
    I have tried to look for CNEX0037 & CNEX0038, by using transactions SE37 and SE38, search for programs and functions modules, but it did not work. Could you please tell us what kind of objects are?
    Thank you very much in advance.
    Víctor Liedo

  • How to set static item in PL/SQL

    I know this may sound like a stupid quesiton but here's the issue.
    I need a PL/SQL function that will set a application item, or page item etc. The items that need to be set are static items. Ex: P1_FIRST_NAME
    I know if I use a PL/SQL function withing HTMLDB I can use the :P1_FIRST_NAME := 'Martin';... Problem is that you can not use that syntax if you store the function in Oracle itself.
    So I need to know the syntax to set items.
    Thanks.
    M.

    HTMLDB will also recognize variables using the format &VARIABLE_NAME. (with the period at the end). Have you tried this variable naming convention? Oracle may store it as it looks like a runtime variable.
    I don't know if it will work for your scenario or not...
    Adam Cumming
    Marion County

  • Default settings for items is not getting copied to items in Shopping Cart

    Hi SRM GURU's,
    I am facing a problme while creating shopping cart.
    I maintained default settings for items like Product catagory,Internal Notes etc.
    While adding items in shopping cart these default settings are not getting copied to any items.
    If anybody is having any clue Plz let me know I will award points for sure.
    Our integration testing is affected because of this issue.
    Thanks in Advance.
    Atulp
    +919822761641

    Dear Laurent,
    Yeah, this is a very strange issue and also a rare one. We have already tried this option. User deleted the cart and created a new cart. But still no luck. The new cart is also not getting released from SOCO. User created many carts previously for different product categories, vendors and all carts were through. But for this cart,it is not getting released. If you could have any other idea, you are most welcome.
    Anyway, thanks so much for your time and patience. Appreciate your help!!
    Regards,
    Aswini

  • In Initial View, can you set defaults for Navigation tab, Page layout, and Magnification?

    Adobe Acrobat 9 Pro V9.4.0
    Win7 Pro x64
    Problem: In Initial View, can you set defaults for Navigation tab, Page layout, and Magnification?
    Every time Acrobat scans a document, I have to go to Initial View to set Navigation tab, Page layout, and Magnification. It does not remember the settings I last used.
    Thanks in advance.

    See my response to this post

  • How to configure the maintenance item screen layout

    Hello experts,
    I need to configure Maintenance Item Screen layout .
    How do I do that? I checked in SPRO and could not find a place.
    Need to make some some fields as required.
    Thanks,
    Raneetha.

    There are some fields that can be made mandatory using Field Selection for Notification & Order.
    Some fields should be made mandatory using development (User Exit IPRM0004)

  • Service entry short text needs to default in MIGO item text

    Dear SAP Gurus,
    How service entry short text can be default in MIGO item text,
    currently system is defaulting service text in Text filed in MIGO(MSEG - SGTXT )
    can any body let us know.
    Thanks in advance
    Vinod
    Edited by: Vinod Malagi on May 25, 2009 1:58 PM

    Hi Chakrapani,
    The functionality i am awere, in that while passing service entry sheet both service number and backend MIGO transaction will be called for MIGO transaction the service text from the service entry sheet needs to populate in MIGO text ,
    but the standard functionality is defaulting from item service text
    please suggest the same.
    VInod

  • Addition of field in personal setting-default value-po item

    Hi,
    can any one tell me how to incorporate following senario while executing  me21n tcode
    I want to add  a new field “Shipping Instructions” EKPO-EVERS in the personal setting – Default Value – PO Item.
    please tell me the steps to do so
    thanks

    Hi
    please refer to this
    <b>New tabs in the header tab-sheet of ME21N/ME22N/ME23N

  • Cfchart static items

    I have a query that I am outputing to a chart. That is all
    working fine. The question I have is has anyone out there added
    static items to a cfchart. I need to add to horizontal lines and
    one sloping line to my chart and they are always in the same
    locaiton on the chart. I would also like to lable the areas between
    the lines with text.
    I can see that cfchart is very limiting but has anyone found
    a workaround? If I could just find a way to overlay these items it
    would be perfect. Any suggestions would be greatly
    appreciated.

    Hi,
    Firstly, if you create the form, using the Form wizard and based on the TBL_SAMPLE table, then Apex will generate everything you need to insert records.
    If you do want to manually insert records, you would need to create a PL/SQL process that runs "After Submit" and triggered by a button.
    The process code would be something like:
    BEGIN
    INSERT INTO TBL_SAMPLE (XNAME, XNAME2, Q1NUMBER, Q2NUMBER, Q3NUMBER, Q4NUMBER, Q5NUMBER, TRANSACTION_DATE)
    VALUES (:TXT_NAME1, :TXT_NAME2, :RGRP_Q1, :RGRP_Q2, :RGRP_Q3, :RGRP_Q4, :RGRP_Q5, SYSDATE);
    END;I have not included TRANSACTION_NO in the fields to be updated as you should have a sequence and trigger to handle the creation of new primary keys.
    Andy

  • Shopping Cart - Default Setting for Items

    Since the default setting for items requires user to enter the default values on each shopping cart creation. We would like to use the BADI BBP_DOC_CHANGE_BADI to set a default value, so that user would not have to entry it over and over.
    After I check the BADI, where I cannot find any export parameters associate to these default fields.
    Regards

    Hi Vadim,
    I also have a similar requirement where our customer wants to change or prepolulate the PO type in the Default settings for items.I wanted to knwo if this is user based and if there is any waye we can keep updating them based on some action on the portal.Ideally in our case we have to do it from teh portal.So if there is any RFC that can update or fill these details we can use webdynpro applications to trigger them at runtime and then update them.Any ideas ?
    Thanks,
    Best Regards,
    Muinul

  • Different Layout within a webflow for one Portal Page

    Hi All,
    Can I set different layouts within one portal page journey depending on the hyperlink
    I click on one of the portal page with in a webflow.
    My requirements is such that if user clicks on one of the link on one of the portlet,
    I want to show them the next page with different content in a different layout
    with in same portal page journey.
    Can anyone post the sample code to achieve this.
    Thanks
    Nitin

    1 - you can not change the photo frame size if that is what you are asking
    2 - you can enlarge the photo within the frame by selecting it and using the slider above the frame
    3 - you can use a different page layout -- or even theme -- see Liz Castro's web site for examples of all available layouts for each theme -- http://www.lizcastro.com/iphotobookthemes/
    LN

Maybe you are looking for