Dynamic List of Checkboxes and their Default Values
Hello,
I have spent more than five hours feebly attempting to figure out how to make a dynamic list of checkboxes (using an LOV) adhere to the values in the database which those checkboxes represent. The LOV itself works; I can get a nice list of checkboxes with the appropriate names, but I can't get HTML DB to check the boxes that have a value of 'Y' in the database. The code for my LOV follows:
SELECT mesg_name n, mesg_id r
FROM notifications
WHERE mesg_id = (SELECT mesg_id
FROM subscriptions
WHERE upper(network_id) = upper(:APP_USER))Since this is a dynamic list of checkboxes, I obviously cannot use the "Label" property to set the labels of each checkbox. That is what n is in the query above. r is the unique ID of the message (a varchar2) that I will need to pass back to the program after the page is submitted by the user for processing. I cannot take up the value field of the checkbox with a "Y" or something as equally vague. The ID of the subscription that the user is subscribing to or unsubscribing to must be passed back to the program so the appropriate modifications to the database table can be made.
I would most appreciate it if anyone could lend assistance.
Thank you,
Marc Weil
Marc,
I think I see what you're trying to do. You'll have to separate process that renders the LOV as a series of check boxes from the process that sets the checked values for each user.
Before the LOV is rendered on a page, make sure you set the session state value of the LOV item to a colon separated set of IDs based on your query:
SELECT mesg_id
FROM subscriptions
WHERE upper(network_id) = upper(:APP_USER)
If you have trouble, let me know, I'll try to come up with an example.
Sergio
Similar Messages
-
How can I list all users and their DEFAULT tablespace?
How can I list all users and their DEFAULT tablespace?
PeterPeter, the following short article that lists the most heavily used Oracle rdbms dictionay views might be of interest based on your question:
How do I find information about a database object: table, index, constraint, view, etc… in Oracle ? http://www.jlcomp.demon.co.uk/faq/object_info.html
HTH -- Mark D Powell -- -
Dynamic LOV with dates and selected default value
Hello,
I have a dynamic lov with dates. Query looks like this:
select distinct concat(to_char(b.send_day_time,'YYYY.MM.DD HH24'),':00') display_value, to_char(b.send_day_time,'YYYY.MM.DD HH24') return_value
from ...
No I want to select a specific date as the default value. I put the following code for the default value:
declare
begin
return to_char ('2008.02.19 10:00');
end;
But it doesn't work.The date (string) exists in the lov but it is not selected.
Can someone tell me where the problem is?
Thx in advance.
Greetings,
hamburgerHi hamburger,
As return value you specified to_char(b.send_day_time,'YYYY.MM.DD HH24'),
so your default value should be like to_char('2008.02.19 10'). Also pay attention to select the "Default Value Type".
Hope this helps.
chrissy -
Pass variable and set default value based on user's group
Hello
I'm using SharePoint 2010 and SQL 2012. I need to send a variable to the page and based on its value, set default value for a drop down list and send it to other web part to filter the data. Is it possible for certain users to send that value as a default
and limit user to see only this value in the text field or drop down list; for others - to allow to see the drop down list, but also set the default value for that list?
The main page was designed in SharePoint designer, using web parts (aspx page). I had setup a connection to Active Directory and already have the code to get user's groups and based on their group, I have that variable pulled into the web page for further
use. But I don't know how to pass that value as a default value to the web part (currently using SharePoint Filter web part). When I tried to set a default value for the web part - it automatically puts the quotation marks around the name of the variable
and shows it as a text instead of showing the value of the field.
Thank you!
P.s. I have limited knowledge of SharePoint and need guidance (links, examples, recommendations)!
Alla SandersThank you for your response. I'll try to give you more details. On PageA I check user's groups and based on the group, assign the value and pass it to the next page (no input from the user, all done behind the scene and user is redirected to PageB).
On the next page I read that value and would like to send it to the SharePoint List Filter Web as a default value, as well as send it to another web part that displays the list from SQL, filtered using that default value. Ideally, if the user is from Group
A, I'd like for them to have only one value in that drop down list; if user is from Group B - give him drop down list with 40 items to choose from. Below there is a part of the code and variable fnum has the value from PageA (if I print the value on the screen
- I do see that it has correct value, so the code that gets groups from Active directory works correctly). If I assign fnum as a default value of the list, it shows "fnum" instead of the value of variable fnum. I connect to SQL database, using external
content - so the other list that I'm filtering based on the value in that drop down list - is XSLT Data View Web part. I also have 2 more filters on that page, that user will have full access to and based on their input, it is also sent to the XSLT web part
to filter out more data. Since one of the filters is the date and I am filtering data starting from the date that user chooses - XSLT is the only web part that I was able to make it work with.
I looked at the link you provided (thank you). It is using Content Query Web part. Will it work with external content, as well as accepting multiple filtering, including custom starting date? I appreciate your help!
<%
string fnum = Request.QueryString["field1"];
%><table cellpadding="4" cellspacing="0" border="0" style="height: 1000px">
<tr>
<td id="_invisibleIfEmpty" name="_invisibleIfEmpty" colspan="2" valign="top" style="height: 101px">
<WebPartPages:WebPartZone runat="server" Title="loc:Header" ID="Header" FrameType="TitleBarOnly"><ZoneTemplate>
<WpNs0:SpListFilterWebPart runat="server" FilterMainControlWidthPixels="0" RequireSelection="False" ExportMode="All" PartImageLarge="/_layouts/images/wp_Filter.gif" AllowHide="False" ShowEmptyValue="True" MissingAssembly="Cannot import this Web Part." AllowClose="False" ID="g_1ccc4bca_3ba1_480b_b726_adfdb1e9e02d" IsIncludedFilter="" DetailLink="" AllowRemove="False" HelpMode="Modeless" AllowEdit="True" ValueFieldGuid="fa564e0f-0c70-4ab9-b863-0177e6ddd247" IsIncluded="True" Description="Filter the contents of web parts by using a list of values from a Office SharePoint Server list." FrameState="Normal" Dir="Default" AllowZoneChange="True" AllowMinimize="False" DefaultValue="fnum" Title="Facilities List Filter" PartOrder="2" ViewGuid="2da5d8db-6b55-4403-80a8-111e42049f8b" FrameType="None" CatalogIconImageUrl="/_layouts/images/wp_Filter.gif" FilterName="Facilities List Filter" HelpLink="" PartImageSmall="/_layouts/images/wp_Filter.gif" AllowConnect="True" DescriptionFieldGuid="2d97730a-cd0d-4cb9-8b55-424951201081" ConnectionID="00000000-0000-0000-0000-000000000000" ExportControlledProperties="True" TitleIconImageUrl="/_layouts/images/wp_Filter.gif" ChromeType="None" SuppressWebPartChrome="False" IsVisible="True" ListUrl="/Lists/FacilitiesList" AllowMultipleSelections="False" ZoneID="Header" __MarkupType="vsattributemarkup" __WebPartId="{768E2035-0461-4A09-8DDD-CA7020C2B23D}" WebPart="true" Height="" Width="615px"></WpNs0:SpListFilterWebPart>
Alla Sanders -
Report to list all computers and their collection membership
Hi
I am currently working on a site where direct membership is used for collections but a need has arisen to move to AD Queries.
I have created a simple powershell script that creates groups based on the contents of a csv file and another script which populates this with the members listed in another csv file.
To help speed up the process is there a way to generate a report that lists ALL Computers and their Collection membership?
The only reports I seem to find that are built in require an inputted value of either computer name of collection ID. I simply need a report that lists Computer Name is column 1 and Collection Name in column 2 for all computers and all collections.
Many Thanks,
Matt Thorleyselect
FCM.Name,
C.Name
from
dbo.v_Collection C
join dbo.v_FullCollectionMembership FCM on C.CollectionID = FCM.CollectionID
Thanks to Garth for original query. I just modified it :)
Anoop C Nair (My Blog www.AnoopCNair.com)
- Twitter @anoopmannur -
FaceBook Forum For SCCM -
Each time I restart my application, I would like all global variables to be reset to their default values without having to reset each one individually. Can I do this? If so, how?
Sure you can do it. Enclosed is a VI which checks all VIs in memory and reinitializes any that are of type Global VI.
Attachments:
Reinit_Globals.vi 22 KB -
List of users and their decimal notation settings in SAP system
Hi all, i'm looking to get my hands on a list of all users in our SAP system and their respective decimal notation settings? I know that these can be mass changed using SU10 however I am unable to determine how to view a list of users and their settings.
Thanks,
JamesHi James,
You can find many useful reports, in SUIM transaction to see user details, but not decimal notation field. I don't know a report to show decimal notations, but as a workaround, in order to see the decimal notation, you can check "USR01-DCPFM" by using "SE16".
Best regards,
Orkun Gedik -
Thru OEM get list of queries and their schemas that accessed my objects
Hi,
I have a list of objects on my schema and i need to track the list of sql queries by different users that accessed by object during this time period.
i haven't enabled any auditing yet.
is there any way i can get that list of queries and their schemas that accessed those particular objects during a particular time period through OEM.
Can someone guide me please.
Thanks in advance.
Philip.create a name property in your class and assign a name property to your instances (either in the contructor) and/or using getters/setters. (you'll need a getter anyway.)
-
[svn:fx-trunk] 8530: Change Slider and NumericStepper default value
Revision: 8530
Author: [email protected]
Date: 2009-07-13 11:17:46 -0700 (Mon, 13 Jul 2009)
Log Message:
Change Slider and NumericStepper default value
http://bugs.adobe.com/jira/browse/SDK-18380 - FxHSlider and FxVSlider have default max of 100, should be 10
Changed the default value for Slider by setting the value to 10 in the constructor. I changed NumericStepper?\226?\128?\153s implementation to match Slider. The problem with NumericStepper?\226?\128?\153s previous implementation was that it wasn?\226?\128?\153t calling Range?\226?\128?\153s maximum setter. Thus there was some important logic in Range.commitProperties that wasn?\226?\128?\153t called.
QE Notes: Update tests with new default
Doc Notes: Update docs with new default
Bugs: SDK-18380
Reviewer: Hans
Ticket Links:
http://bugs.adobe.com/jira/browse/SDK-18380
http://bugs.adobe.com/jira/browse/SDK-18380
Modified Paths:
flex/sdk/trunk/frameworks/projects/spark/src/spark/components/NumericStepper.as
flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/Slider.as -
List of tcodes and their purpose starting from SE71 to SE84
Can i get the list of tcodes and their purpose starting from SE71 to SE84.
hi,
u can find these details in table TSTC.
SE71 SAPMSSCF 1100 4 SAPscript form
SE72 SAPMSSCS 1100 4 SAPscript Styles
SE73 SAPMSSCO 500 4 SAPscript Font Maintenance
SE74 SAPMSSCU 1 4 SAPscript format conversion
SE75 SAPMSSCC 1 0 SAPscript Settings
SE75TTDTGC 2 SAPscript: Change standard symbols
SE75TTDTGD 2 SAPscript: Display standard symbols
SE76 SAPMSSCG 1100 0 SAPscript: Form Translation
SE77 SAPMSSCG 1200 0 SAPscript Styles Translation
SE78 SAPMSSCH 2000 0 Administration of Form Graphics
SE80 SAPMSEU0 2 Object Navigator
SE81 SAPMSEU10 1000 84 Application Hierarchy
SE82 SAPMSEU9 1000 84 Application Hierarchy
SE83 2 Reuse Library
SE83_START RLB_BROWSER_START 1000 80 Start Reuse Library
SE84 RS_INFOSYSTEM_START 1000 84 R/3 Repository Information System
reward points if hlpful. -
How to find out list of users and their access on Sharepoint
Hello Everyone
How can i find out list of users and what access they have on SharePoint site? I want to create table with list of the users and their access?
Thanksyou can get the report using below powershell scripts. first one gives list of users in a site collection level.
The second link generates the permissions reports for each user.
http://techtrainingnotes.blogspot.com/2010/12/sharepoint-powershell-script-to-list.html
https://sp2010userperm.codeplex.com/
My Blog- http://www.sharepoint-journey.com|
If a post answers your question, please click Mark As Answer on that post and Vote as Helpful -
List of variables and their classes from working script?
I have a working script that has many variables containing finder references and file path descriptions as strings or Unicode text. It is not easy to remember what these variables refer to. Is it possible to get a listing of all of a scripts variables and their respective class?
The only way I've seen to do this is with Script Debugger, an alternative script editor that has significant debugging tools such as breakpoints, stepping, variable inspection and more.
-
Creating a filter and Sending default value to it using designer on SAP BW
Hi All,
Data Source: SAP BW
BI Layer: BO 3.1
Here goes my question:
We have a cube which contains HR related data. I want to query data in such a way that it gets me data for the current month and year. The time dimension contains a hierarchy called Calendar Year/Month which has values u201CFEB 2009u201D, u201CMAR 2009u201D and so on. I want to create a WebI Report which should take Current month as MAR (since current month is March) and Current Year as 2009 and pass u201CMAR 2009u201D to the query without useru2019s intervention so basically itu2019s a default value. Similarly, when the month and year changes, this value should reflect the new values (i.e. APR 2009 when April 2009 arrives).The final outcome should be a dashboard displaying information using WebI Report.
Kindly guide me step by step if there is a possible way to achieve it on SAP BW (OLAP datasource) using BO Universe designer/WebI and by using MDX wherever necessary.
Otherwise, is there a possibility of creating Filter in Universe which takes something like Month(Current Date) and Year(Current Date), append them and pass it as a parameter to BW cube; If yes, how?
Kindly guideCouple of things, first you need to make sure you assign navigation for the buttons, which is why the remote control on the DVD Player did not work, yet you can mouse over in the computer [Assign Navigation|http://dvdstepbystep.com/buttons07.php] and [a thread|http://discussions.apple.com/thread.jspa?messageID=9134310�]
As to overlays, buttons will not appear (the highlights) until the loop point of the menu, but if ellements are in the background (video) then they will appear. If you do not want those items (in the background) to appear to the loop point you need to fade it in or otherwise do whatever effect you want in the background video. [Motion Example|http://dvdstepbystep.com/motion.php] -
How to dynamically set Min count and Max Count values in Adobe Print Form?
How to set the Min Count and Max Count values dynamically in a Print Form?
The values when set should over ride the values set in Binding Tab.
This is all needed to print multiple Material Number labels on a single page - and the number of labels to be printed needs to be under user control - something like an Avery Address labels
Please advise.
Thanks,Here is a work around that works for me and may not be an intelligent solution .
I kept the Min Count to 1 on the subform binding properties.
Per the number of labels required, I appended the same item to the internal table so many times and passed it to the label.
it works fine for my requirement.
However - leaving out the post for a while to see if this can be done at the form level via scripting.
Thanks, -
Cisco Prime - extract list of hostnames and their serial numbers.
Hi all,
is there a way of extracting a list of hostnames ( for devices in EMEA ) and their associated serial numbers from Cisco Prime and into say a csv file?
Many thanks,
PaulHi Paul,
if you have Prime Infrastructure then run the below report :
Report > Report Launch Pad > Device > Detailed Hardware > Detailed Hardware Report Details
If Prime LMS then :
Reports > Inventory > Detailed Device
Hope it will help
Thanks-
Afroz
***Ratings Encourages Contributors ***
Maybe you are looking for
-
Consignment stock in an storage location for one customer
We have one procedure for consignment to customers. We create one sales order type KB (consignment fill up), and after receiving the material after creating PO and inbound delivery, we create the outbound delivery and then goods issue to send the mat
-
Settings don't have MTU settings for Xbox Live
I've been having problems connecting to Xbox Live. All of my PCs wired and wireless can connect to the internet except for my 2 Xbox 360s one wired and one wireless. Some times it says that there isn't enough MTU or can't connect to the network when
-
By mistake I purchased Geo news aap.now I don't want it ,and want to unsubscribe its .don't want to pay bill.How can I do this?
-
Can i show an HTML text on JLabel
Can any body help me about showing HTML text on a JLabel component!! Thanks. Neeraj
-
Re: Problème de compatibilité?
bonjour, voila moi je suis passé a cs6 extented et je n'est pas accés a la 3d!!! pouvez vous me guider et me dire de quoi cela peu venir s'il vous plait car je suis passé a cette version expres pour ca, peut ma carte graphique est trop vieille....voi