How retrieve custom fields only when using SPListItemCollection?
Hi with following code I am retrieving a DataTable from a List:
using (SPSite site = new SPSite("http://..."))
using(SPWeb web = site.OpenWeb())
SPList oList = web.Lists.TryGetList("Serverliste");
if(oList != null)
DataTable dt = oList.Items.GetDataTable();
This works fine. My problem is that I only want to get custom ListFields. When working with Fields one can simply call
FromBaseType which will show if a Field is custom or not. The only value which seems right is
IsCustomType. Though it is listed under Not public members, which makes it unaccessable via code for me, right?
Well a dirty approach would be to iterate through ListFields, match them with DataColumns and check whether they are custom or not.
Is there any clean, efficient solution for this? Is this possible using CamlQueries? If yes, how would that query look like?
Algorithmen und Datenstrukturen in C#:
TechNet Wiki
Hi,
To retrieve the custom fields, CAML query is incapable, do a iteration with SPField.FromBaseType or the SPField.SourceId property seems the only way at this moment.
Thanks
Patrick Liang
Forum Support
Please remember to mark the replies as answers if they
help and unmark them if they provide no help. If you have feedback for TechNet
Subscriber Support, contact [email protected]
Patrick Liang
TechNet Community Support
Similar Messages
-
I changed language (based on an answer in this forum) from EN-GB to EN-US but my keyboard is still British (only when using FF). How can I change it to EN-US?
Should I just export my bookmarks, uninstall and reinstall the proper version? That may just be shorter than anything else.GREAT!. Thanks a lot for educating me. There seem to be a million things we have to learn about our computers and when we run into them the first time they seem insurmountable. You pointed me to the solution. Thanks again. Ben
-
Prompting for password and username only when using dynamic parameters
Post Author: Co3023
CA Forum: Crystal Reports
How do I stop CR XI prompting for password and username only when using dynamic parameters. When no dynamic parameters are used CR XI isn't prompting for the DB user name and password. The report is run from an application which passes the user name and password. I am using Oracle and the problem is both with the native oracle driver and the ODBC RDO driver.Post Author: jehanzeb
CA Forum: Crystal Reports
I didnt ask you to change it to static I said I took the parameters totally out of the report. Saved it. Then re-enter the dynamic parameters into the report and it worked for me. That might have worked for you, not sure why you changed it to static.
Ok I have just created a quick report using dynamic parameters, it didnt ask me for the username password.
Can you create a sample report - just to test the db? and see if it works? add only 1 or 2 fields in the report, create parameters (dynamic) and see if it works
why don't you embed the username and password in your application, it won't ask for username password then. -
SoCo : new customer field only in SRM
Hi All,
I would like to have some information concerning the possibility to add customer field in SoCo.
My customer want to see some customer field only in SoCo, but he don't want to send this info to the backend.
I try to explain better ....
i receive the RdA from ECC and every time i receive the same one, i need to verify if the quantity are the same. if the quantity are different I need to show this different in the SoCo. To do the calculate I use the BADI BBP_DOC_CHANGE_BADI, but where I must define the new field in ddic and how show it in SoCo ?
can you help me giving some documentation or something else ?
thanks
barbaraHi Barbara,
To add customer fields to the SOCO screen you need to add these fields to the shopping cart first.
You need to add these custom fields to custom structure and append those structure to the following structures:
INCL_EEW_PD_ITEM_CSF_SC and INCL_EEW_PD_ITEM_CSF.
See OSS Note: Note 672960 - User-defined fields 2
After adding these fields to the above given structure you need to activate them and then you need to regenerate the sourcing cockpit screens.
For regenerating SOCO screens follow the step in below given OSS Note:
Note 632982 - Generation of the screens for the sourcing
Hope this Helps.
Thanks,
Pradeep -
How to hide system tables when using the Oracle SQL Developer?
Hi,
I would like to know how can I show only the tables that I created under the Tables tree? I didnt find a way to create a separate database using the Oracle Sql Developer. I see all the tables together, and would like to differentiate between different databases.
Can anyone explain to me how to do these things?
Thanks,Hi,
I would like to know how can I show only the tables that I created under the Tables tree? Your posting is not clear,again tell something more on tables tree,what u want to achieve with it.
How to hide system tables when using the Oracle SQL Developer? if u connected with sys, system or user with dba role then u have a privilege to see these tables,so revoke the privilege/role from ur user to view this tables if ur connected other then sys,system,
I didnt find a way to create a separate database using the Oracle Sql Developer. DBCA is a tool for creating the new database.
Kuljeet -
Ques;How do you secure imail when used being used in iweb. People can mess
How do you secure imail when used being used in iweb? People can mess w/my settings in iweb imail window.
What is iMail?
And what is an iWeb iMail window?
iWeb is part of iLife 06 which is an application used to create websites hosted on .Mac.
Are you referring to Apple's Mail application and webmail access using a browser such as Safari to access your .Mac account?
Which people can mess with what settings? You shouldn't allow anyone else to access your Mac when logged in to your account and home folder/directory. OS X was designed for multiple users of the same Mac with each regular user having their own computer login account (with or without admin privileges) and associated home folder/directory to store and access their data and settings for their login account only. -
Get ORA-01031: insufficient privileges error, but only when using dbstart.
I am getting ORA-01031: insufficient privileges error, but only when using dbstart. the listener starts but not the database. How come I can start it from SQL prompt but not from dbstart scripts as the oracle user?
[oracle@mallard bin]$ ./dbstart
Processing Database instance "gf44": log file /prod/oracle/10/startup.log
[oracle@mallard bin]$
Log file:
Wed Aug 20 10:15:02 CDT 2008
SQL*Plus: Release 10.2.0.1.0 - Production on Wed Aug 20 10:15:02 2008
Copyright (c) 1982, 2005, Oracle. All rights reserved.
SQL> ERROR:
ORA-01031: insufficient privileges
SQL> ORA-01031: insufficient privileges
SQL>
/prod/oracle/10/bin/dbstart: Database instance "gf44" warm started.
>
oratab file:
gf44:/prod/oracle/10:Y
dbstart file section:
# See if it is a V6 or V7 database
VERSION=undef
if [ -f $ORACLE_HOME/bin/sqldba ] ; then
SQLDBA=svrmgrl
VERSION=`$ORACLE_HOME/bin/sqldba command=exit | awk '
/SQL\*DBA: (Release|Version)/ {split($3, V, ".") ;
print V[1]}'`
case $VERSION in
"6") ;;
*) VERSION="internal" ;;
esac
else
if [ -f $ORACLE_HOME/bin/svrmgrl ] ; then
SQLDBA=svrmgrl
VERSION="internal"
else
SQLDBA="sqlplus /nolog"
fi
fi
Permissions of file:
[oracle@mallard bin]$ ls -la dbstart
-rwxrwxr-x 1 oracle oinstall 10407 Aug 19 12:27 dbstart
[oracle@mallard bin]$
User permissions:
[root@mallard 10]# id oracle
uid=503(oracle) gid=503(oinstall) groups=503(oinstall),504(dba)
[root@mallard 10]#
I can start the listener manually using "./lsnrctl start" and start the database manually from sql prompt using "SQL>startup" (as sysdba) with no problems. this only happens when using dbstart file. I am logged in as oracle user and all environment variables are set
Thank you for any help you could provide.I have the same problem, but i don't want insert this string
Connect sys/{password} as sysdbaI have deployed an Oracle 10g with os SunOS
$ uname -a
SunOS DB02 5.10 Generic_141444-09 sun4v sparc SUNW,Sun-Blade-T6320
I can connect with sys/password, but I can't login with
$ sqlplus /nolog
SQL*Plus: Release 10.2.0.1.0 - Production on Thu Jan 7 15:19:50 2010
Copyright (c) 1982, 2005, Oracle. All rights reserved.
SQL> connect / as sysdba
ERROR:
ORA-01031: insufficient privilegesthe the startup and dbshut don't work.
Someone maybe help me?
Thanks,
Regards.
Lain -
Honestly I'm not sure if these began just after I updated FF to the current release, but it's been happening for at least 2 weeks. The arrow keys and page up and page down keys all work as if I'm pressing the 'home' and 'end' keys on my keyboard. This is only when using FF. Please contact me if you need more clarification. Thanks in advance!
Sounds that you have switched on caret browsing.
* http://kb.mozillazine.org/accessibility.browsewithcaret
You can press press F7 (on Mac: fn + F7) to toggle caret browsing on/off.
* Tools > Options > Advanced : General: Accessibility: [ ] "Always use the cursor keys to navigate within pages"
* http://kb.mozillazine.org/Scrolling_with_arrow_keys_no_longer_works
* http://kb.mozillazine.org/Accessibility_features_of_Firefox -
How to set field type choice using csom (c#)
I have a field type: Choice (menu to choose from) which is not multichoice. How do I set a value?
I have found code for multiple choice but it doesn't seem to work for single choice.Hi,
The following code snippet for your reference:
newListItem["ChoiceFieldName"] = "ChoiceValue";
newListItem.Update();
clientContext.Load(newListItem);
clientContext.ExecuteQuery();
If you are assigning a Value which is not in the Choice Column, You need to create a choice value then assign it to the item.
More information is here:
http://sharepoint.stackexchange.com/questions/124999/how-to-set-field-type-choice-using-csom-c
Best Regards
Dennis Guo
TechNet Community Support -
How to solve power error when using USB camera adapter in your camera
Hello Everyone,
First of all I wanna say reducing the output of the USB camera adapter from 100mA to 20mA just to save battery life is by far the most incredible adjustment in the history of @)#*$#%*($#!
I know most of us bought the USB Camera adapter so we can use it as a USB adapter for the Camera (saves us from taking the memory card on and off the camera) but sadly the "Ginues Apple" reduced it to 20mA which decreases the range of cameras and flash drives that will work with it. I use Gopro Hero 3+ black and everytime I plug it with the adapter to my ipad I keep on seeing this @#@$#@ power error. I didn't want to waste the expensive adapter so I tried to look for a micro sd card reader but I don't think 20mA readers still exist.
Now to solve this problem is very simple add a power source to help that 20mA up, most of the my friends bought a powered port hub but it's not my type because it's bulky, needs an outlet and not portable.
So I found a better solution on how you can add a power source and still be portable, the answer is power bank or portable charger.
Things you need:
Camera
USB camera adapter (Ginues Apple product)
Power bank (I'm using 8,400 mAh)
Dual USB Male to 5 Pin Mini USB Y Cable
Ipad
Procedure:
Camera --- 5 Pin Mini USB ------------------ USB camera adapter ---------- Ipad
'---------- Power Bank
Attach you camera to the 5 pin mini usb then the USB1 male to the female apple's USB camera adapter then to the Ipad. = this will show the power error.
Then attach the USB2 to the power bank/portable charger to power it up.
your welcomeyocto yotta wrote: How to charge iPad Air when using the camera connection kit?
No can do, Skippy! -
Mac book pro (late 2013) has a lag when sculpting and rotating models in Zbrush, but only when using my Wacom-capture tablet (if I use a mouse or trackpad its fine no lag).
Also Premiere Pro CS5 playback is almost like watching footage in slow motion, Premiere Pro is installed on the main drive but the footage is on an external drive connected with USB 2.
I'm wondering if it is just a problem with the Mac USB drivers maybe not supporting USB 2 ? (Because I have also installed Window 7 on this same MacBookPro and tested the same software "Zbrush and Premiere Pro" And they both work perfectly on the Bootcamp Windows 7 install, and so its using the same hardware so it has to be the drivers right ?)
Any help would be great, Thanks
DariusMac book pro (late 2013) has a lag when sculpting and rotating models in Zbrush, but only when using my Wacom-capture tablet (if I use a mouse or trackpad its fine no lag).
Also Premiere Pro CS5 playback is almost like watching footage in slow motion, Premiere Pro is installed on the main drive but the footage is on an external drive connected with USB 2.
I'm wondering if it is just a problem with the Mac USB drivers maybe not supporting USB 2 ? (Because I have also installed Window 7 on this same MacBookPro and tested the same software "Zbrush and Premiere Pro" And they both work perfectly on the Bootcamp Windows 7 install, and so its using the same hardware so it has to be the drivers right ?)
Any help would be great, Thanks
Darius -
Does anyone know how to load ACR presets when using ACR in the creative cloud?
Does anyone know how to load ACR presets when using ACR in the creative cloud?
Moving the discussion to Adobe Camera Raw forum.
Thanks,
Atul Saini -
How to avoid data repetation when using select statements with innerjoin
how to avoid data repetation when using select statements with innerjoin.
thanks in advance,
satheeshyou can use a query like this...
SELECT DISTINCT
frg~prc_group1 "Product Group 1
frg~prc_group2 "Product Group 2
frg~prc_group3 "Product Group 3
frg~prc_group4 "Product Group 4
frg~prc_group5 "Product Group 5
prc~product_id "Product ID
txt~short_text "Product Description
UP TO 10 ROWS
INTO TABLE l_i_data
FROM
Joining CRMM_PR_SALESG and
COMM_PR_FRG_ROD
crmm_pr_salesg AS frg
INNER JOIN comm_pr_frg_rod AS prd
ON frgfrg_guid = prdfragment_guid
Joining COMM_PRODUCT and
COMM_PR_FRG_ROD
INNER JOIN comm_product AS prc
ON prdproduct_guid = prcproduct_guid
Joining COMM_PRSHTEXT and
COMM_PR_FRG_ROD
INNER JOIN comm_prshtext AS txt
ON prdproduct_guid = txtproduct_guid
WHERE frg~prc_group1 IN r_zprc_group1
AND frg~prc_group2 IN r_zprc_group2
AND frg~prc_group3 IN r_zprc_group3
AND frg~prc_group4 IN r_zprc_group4
AND frg~prc_group5 IN r_zprc_group5.
reward it it helps
Edited by: Apan Kumar Motilal on Jun 24, 2008 1:57 PM -
Dead pixel only when using Pages
One dead pixel. Always the same one, only when using Pages. Has anyone else seen this?
MacBook Air 11", 1.6 GHz Core i5 CPU, OS 10.8, Pages 4.2This has been happening to me ever since I upgraded to Mountain Lion. Certainly a software issue, I expected an update to iWork to resolve this after the release of 10.8 but it seems Apple have all but forgotten about their iWork suite...
Below are images of the effected area when a Pages window is selected and unselected.
OS X 10.8.2 - Pages 4.3 - Mid 2011 2.3 GHz Mac Mini - 23" Apple Cinema Display (Old Alu, not that it matters) -
TS4268 Does Iphone4 support Facetime Audio/Video using 3G? Or only when using Wifi?
Does Iphone4 support Facetime Audio/Video using 3G? Or only when using Wifi?
iPhone 4 does not support FaceTime over cellular, only Wi-Fi.
You need iPhone 4S or later and also only if the carrier supports it,
Maybe you are looking for
-
How can I put my recently purchased iTunes movies onto my thumb drive and WD my passport external hard drive.My Mac is saying that can't be copied because it is too large for volumes format
-
Goods receipt of by product in subcontracting process
the by-product are produced in subcontracting. we have to take back this by product into our company from the subcontractor. we have to use which movement type to take it back and the transaction code
-
Accepting Credit Card Payments
Please be patient, this is new for me. I know the bare minimum, and have only designed basic web sites. (I'm primarily a print designer.) I have a client that needs to be able to accept credit card payments on his site. No shopping cart, no products
-
How do you redownload adobe photoshop with the creative cloud without having to "buy" it since I already am paying for the subscription?
-
Fuzzy & Semantic Search in TREX
Hi Guys, Does anyone know how we can enable Fuzzy & Semantic Search in the ISA B2B application?