How to control the number of fields in the Advanced mode in af:query
Hi,
How to control the number of fields in the Advanced mode in <af:query>?
Say i have 20 fields in my table and i created a view criteria with 2 fields. It would work perfectly in Basic mode. But in the Advanced mode all other fields selection is possible on clicking the ADD Fields button. I did not want the client to make a search with all 20 fields. Only 10 fields are to be listed in the Advanced Mode even though there are 20 fields in my table.
How do i control the list of fields in ADDFields button?
Any ideas?
KR
You can uncheck the Querable property of the attributes which you need not show up in the Advanced Mode (but they will not show up in other modes too !) or programatically set the same as mentioned here -
http://adfcodebits.blogspot.com/2010/11/bit-27-setting-view-object-attributes.htmlAlso you can hide the AddFields button as suggested here - http://www.notjustjava.com/2011/12/cool-tips-to-showhide-components-of-the-query-control-of-adf/
Similar Messages
-
How can I determine the number of field in the FIELD-SYMBOLS
Hi, in the following code example I have structure u201Czfsl_sd_credit_balu2019 I define a workarea like that structure and assign that wa to FIELD-SYBOLS. Now can I calculate the number of filed in that FIELD-SYBOLS for further processing on that FIELD-SYBOLS.
DATA: wa_credit_bal LIKE zfsl_sd_credit_bal.
"wa_credit_bal-audat = '20081210'.
wa_credit_bal-vehno = '0as10'.
wa_credit_bal-VBELN = 'aaad'.
wa_credit_bal-MOVMT = 'asdfa'.
wa_credit_bal-quantity = 10.
wa_credit_bal-recc = 10.
wa_credit_bal-recb = 10.
wa_credit_bal-issc = 10.
wa_credit_bal-issb = 10.
wa_credit_bal-balc = 10.
wa_credit_bal-balb = 10.
wa_credit_bal-cbalc = 10.
wa_credit_bal-cbalb = 10.
wa_credit_bal-last_line = 2.
FIELD-SYMBOLS: <f1>, <f2>, <f3>.
ASSIGN wa_credit_bal TO <f1>.
In the bellow u2018FORMu2019
FORM getsum USING in CHANGING out etext.
FIELD-SYMBOLS: <f1>, <f2>.
ASSIGN in TO <f1>.
out = 0.
DATA: cin(50),
iin TYPE i.
DO 14 TIMES.
CATCH SYSTEM-EXCEPTIONS conversion_errors = 1.
ASSIGN COMPONENT sy-index OF STRUCTURE <f1> TO <f2>.
iin = <f2>.
ENDCATCH.
IF sy-subrc = 1.
ELSE.
ADD: <f2> TO out.
ENDIF.
ENDDO.
I did u201CDO 14 TIMESu201D because I know that there are 14 field in that structure but it will be problem when user will give a different structure like more then 14 fields in it. So I want to get the no of fields and store it to a variable and replace u201814u2019 with that variable
Kind regards,
FaisalThanks, Tahir
my problem has solved
Kind Regards,
Faisal -
How to find out the number of fields in generated proxy structure?
Hi All,
Can anybody help me to find out the number of fields in generated proxy structure in back end system along with controller fields.
i know how to get number of fields in XI system but i want the number of fields in back end system when we generate proxy including automatically generated controller fields.
Thanks in advance.
Regards,
UjwalkumarU mean u want to know at runtime?
Get the output from ur proxy as a string, count the number of "<" characters and divide it by 2. :-P
Of course, you'll have to treat the header fields separately.
Regards,
Henrique. -
How to give out a status message indicating the number of fields selected
Hi experts,
I hope some one might have done what I'm trying to do. Could some one please show me how to give out a status message saying for example how many fields have been give out(or selected) in the t_ouput in an alv grid? Is there a FM that could do this? I mean like giving the FM the t_output and it will show a status message with the number of fields selected?
Thank you for your input.
Nadin
Message was edited by:
nadin ramHi Ram,
Write this code,
Message 'Select Only Ten Fields' type 'I'.
It displays The Message in Message Box.
Or if you want the Error Message means,
Message 'Select Only Ten Fields' type 'E'.
Thanks,
reward If Helpful. -
How to increase the number of fields to be displayed in search tab
HI,
I have and opportunity search tabOPP_DISPLAY_SEARCH_RESULT. Currently it is displaying only 9 fields . I have 12 fields as mandatory fields but 3 fields are missing still how to get them. We need to enforce this for all users.
Thanks
NaveenHi Raj,
Thank you for the reply but the problem is if you see in the personalization we see the fields but I want to make it displayed so that default search list contains the field. The field which I was see by default is a EEWB field and another thing is there any way to remove the number of fields to be displayed as Currently I see only 9 fields in the default list. How can i increase it.
thanks
naveen -
How to fetch the data & display the data if fields got the same name in alv
hi frnds, i need ur help.
how to fetch the data & display the data if fields got the same name in alv grid format.
thanks in advance,
Regards,
mahesh
9321043028Refer the url :
http://abapexpert.blogspot.com/2007/07/sap-list-viewer-alv.html
Go thru the guide for OOPs based ALV.
Use SET_TABLE_FOR_FIRST_DISPLAY to display the table:
CALL METHOD grid->set_table_for_first_display
EXPORTING
I_STRUCTURE_NAME = 'SFLIGHT' Structure data
CHANGING
IT_OUTTAB = gt_sflight. Output table
You can also implement
Full Screen ALV, its quite easy. Just pass the output table to FM REUSE_ALV_GRID_DISPLAY.
For controlling and implementing the FS-ALV we have to concentrate on few of the components as follows :
1. Selection of data.
2. Prepare Layout of display list.
3. Event handling.
4. Export all the prepared data to REUSE_ALV_GRID_DISPLAY.
Regd,
Vishal -
How do I copy/paste full numerical-only account strings into the Projects WebADI template when the account segment fields in the template require use of the dropdown because they're formatted as alpha-numeric values? I'm using the Integrator named "Projects - Transaction Import" and a custom Layout created based on the seeded Layout named "Transaction Import - Accounted". Do I need to somehow change my Layout to make the Document accept numerical values instead of requiring alpha-numeric values? I need to be able to populate the Document with a large amount of transactions and cannot feasibly go through every transaction to add the alpha-valued name of the account segment to every segment that requires it. The segments in particular causing the problem are "Expnd Type" and "Organization Name" which are both alpha-numeric and as such contain the segment number and name; I need to be able to only have to enter the Natural Account Number (6-digit number only) and the Organization Number (5-digit number only).
How do I copy/paste full numerical-only account strings into the Projects WebADI template when the account segment fields in the template require use of the dropdown because they're formatted as alpha-numeric values? I'm using the Integrator named "Projects - Transaction Import" and a custom Layout created based on the seeded Layout named "Transaction Import - Accounted". Do I need to somehow change my Layout to make the Document accept numerical values instead of requiring alpha-numeric values? I need to be able to populate the Document with a large amount of transactions and cannot feasibly go through every transaction to add the alpha-valued name of the account segment to every segment that requires it. The segments in particular causing the problem are "Expnd Type" and "Organization Name" which are both alpha-numeric and as such contain the segment number and name; I need to be able to only have to enter the Natural Account Number (6-digit number only) and the Organization Number (5-digit number only).
-
Hi experts,
How do you obtain the number of fields of a particular table ?
I want the count of the fields of a table.
Thanks in advance,
Chithra.Check the code below:
DATA: d_ref TYPE REF TO data,
i_alv_cat TYPE TABLE OF lvc_s_fcat,
ls_alv_cat LIKE LINE OF i_alv_cat,
fname TYPE fieldname,
ncomp(9) TYPE n,
rcount(9) TYPE n,
fcount(3) TYPE n.
TYPES: BEGIN OF itab1,
message(50) TYPE c,
END OF itab1.
DATA: g_itab1 TYPE STANDARD TABLE OF itab1.
DATA: wa_itab1 TYPE itab1.
ncomp = 1.
rcount = 0.
TYPES: tabname LIKE dcobjdef-name,
fieldname LIKE dcobjdef-name.
PARAMETER: p_tablen TYPE tabname. "Input table field
DATA: BEGIN OF itab OCCURS 0.
INCLUDE STRUCTURE dntab.
DATA: END OF itab.
FIELD-SYMBOLS : <f_fs> TYPE table,
<f_fs2> TYPE ANY,
<f_fs3> TYPE ANY,
<f_fs4> TYPE ANY.
REFRESH itab.
CALL FUNCTION 'NAMETAB_GET' "Fetches the fields
EXPORTING
langu = sy-langu
tabname = p_tablen
TABLES
nametab = itab
EXCEPTIONS
no_texts_found = 1.
LOOP AT itab .
ls_alv_cat-fieldname = itab-fieldname.
ls_alv_cat-ref_table = p_tablen.
ls_alv_cat-ref_field = itab-fieldname.
ls_alv_cat-seltext = itab-fieldtext.
ls_alv_cat-reptext = itab-fieldtext.
APPEND ls_alv_cat TO i_alv_cat.
fcount = fcount + 1.
ENDLOOP.
WRITE:/ fcount.
WRITE: ' number of column'.
internal table build
CALL METHOD cl_alv_table_create=>create_dynamic_table
EXPORTING
it_fieldcatalog = i_alv_cat
IMPORTING
ep_table = d_ref.
ASSIGN d_ref->* TO <f_fs>. " Dynamic table creation with fields of the
*table
DATA: l_field TYPE fieldname,
l_field1 TYPE fieldname.
SELECT * FROM (p_tablen) INTO CORRESPONDING FIELDS OF TABLE <f_fs>.
"Fetching of the data from the table
rcount = 0.
LOOP AT <f_fs> ASSIGNING <f_fs2>.
rcount = rcount + 1.
DO fcount TIMES.
"Here u can check the validations and process
ASSIGN COMPONENT ncomp OF STRUCTURE <f_fs2> TO <f_fs4>.
IF NOT <f_fs4> IS INITIAL.
MOVE <f_fs4> TO l_field1.
ncomp = ncomp + 1.
ELSE.
CONCATENATE 'IN ROW' rcount 'COLUMN' ncomp 'IS BLANK' INTO wa_itab1.
APPEND wa_itab1 TO g_itab1.
ncomp = ncomp + 1.
ENDIF.
ENDDO.
CLEAR:ncomp.
ENDLOOP.
LOOP AT g_itab1 INTO wa_itab1.
WRITE:/ wa_itab1 'is blank'.
ENDLOOP.
regards
Kannaiah -
How do I reduce the number of rings on the iPhone from 5 to 2?
How do I reduce the number of rings on the iPhone from 5 to 2 rings?
With thanks in advance -Contact your carrier, as the number of rings before voicemail is controlled by them. Some carriers have a way to adjust this using GSM codes. You can look on your carrier's site for instructions.
-
Hi, I use licensed Adobe Connect. Earlier in the meeting could involve up to 100 people. Now only 25. How, using Adobe Connect can increase the number of participants in the meeting? I need more than 25 people.
Thanks for your help.The purchasing option through adobe.com only allows up to 25 attendees. If you need more than that, you will need to purchase through a reseller. You can find one that is able to sell in your part of the world, here: Adobe Connect Partners. Just reach out to one of the Global Partners.
-
How do I set the "reply to" field in the iPad 2 Mail app? I use an email forwarding service (not an actual email account) that I would like people to reply to, so setting up an account with the correct reply-to address doesn't work because there's no associated outgoing mail server. I had this working under iOS4 but it seems to have disappeared when I upgraded to iOS5.
Welcome to the forum, NicoleYM. I don't think the Touch Mail has as many options as the Mac Mail app. However, you could set a standard signature. Go to Settings > Mail, Contacts, Calendars > Signature. There you can type a reply address and hope people see it.
Alternatively, you can go to your GMail account in your web browser and click on Settings > Forwarding and POP/IMAP. There you will have an option to forward all emails (or only some, if you set up a filter) to your other address.
Good luck! -
when i send a imessage it sends it from the number that was on the sim before i transfered my number how do i change it to my number?
ive tried to change it in message settings but the number is grey so im unable to de-select it ?
any ideas?
cheers DanHello joinerdan,
It sounds like you are unable to change the phone number that Messages is sending messages from because it is grayed out. I recommend the steps outlined in the following article named:
iOS and OS X: Link your phone number and Apple ID for use with FaceTime and iMessage
http://support.apple.com/kb/HT5538
Unlink a phone number
To remove a phone number from an Apple ID, sign out of FaceTime and Messages on your iPhone:
Settings > Messages > Send & Receive. Tap your Apple ID, then tap Sign Out.
Settings > FaceTime. Tap your Apple ID, then tap Sign Out.
This should remove your phone number from other devices using the same Apple ID with FaceTime and Messages. If the phone number is still available on other devices after you sign out of FaceTime and iMessage on the iPhone, you may need to sign out of iMessage and FaceTime on all your devices, then sign in to FaceTime and Messages again on devices you want to use.
Note: If you no longer have access to the iPhone that is using the number you want to remove, reset your Apple ID password.
Thank you for using Apple Support Communities.
All the best,
Sterling -
How to create a duplicate of the Manager ID field in the Create user menu
Hi,
I´m trying to create a duplicate of the Manager ID field in the Create user menu (with a different label). I need to add it a field with the same funtionality of the Manager ID field (search users with filters) but I don´t know how.
I try to made a new adapter using the Thor.API.Operations.tcUserOperationsIntf but it don´t let me to map the input parameters.
Also I try to assing an existent Lookup to a new UDF, but I couldn´t find the correct one.
Did anybody do that??
Thanks!Hi Kevin,
First I created a a user defined field called USR_UDF_CONDUCTOR (Lookupfield type).
Then I added the following lines to de FormMetaData.xml file:
</Attribute name="-750" label="global.label.conductor" displayComponentType="LookupField" variantType="long" dataLength="50" map="USR_UDF_CONDUCTOR">
<ValidValues lookupMethod="findUsersFiltered" operationClass="Thor.API.Operations.tcUserOperationsIntf" displayColumns="Users.User ID,Users.Last Name,Users.First Name" selectionColumn="Users.User ID"/>
</Attribute>
<AttributeReference editable="true" optional="true">-750</AttributeReference>
When I try yo Create a new user, the OIM System Administrator returns a System Error. -
In i photo11,how do I change the number of thumbnails in the rows?
In I photo 11, how do I change the number of thumbnails in the rows? I now have 5 large thumbs across, but
I would like to have 10 or 12 normal sized thumbnails in each of the rows. Thankstab --
Here's where to read up on your question.
If you don't find your answer, post a new topic there:
https://discussions.apple.com/community/ilife/iphoto -
How can I view the number of tunes in the Library? The number shows for Playlists but not for the total Library.
Hello,
I apologize for submitting this question. Soon after I posted it I saw a similar question that had my answer..
Again, my bad for not looking first.
Ron Morris
Maybe you are looking for
-
Hi all, I went to check my email in mail last night and my mobileme account was offline. (Gmail account is online no problem). I clicked to take it back online, but it wouldn't accept my password. My parents also have this address on their mail (2 x
-
How can I check to see all devices ever linked to my iTunes account?
I just had 2 older iPods stolen from my car overnight. I am trying to fill out a police report and need info on them. One was an original ipod with the click wheel (~2007 or so) and the second was an iPod Nano 4th Generation. I dont expect to get the
-
My iCloud storage is almost full. I saved my pictures to my computer and deleted about 500 from my phone. My iCloud storage didn't move at all, it still says it's almost full. What can I do?
-
In 3 months time, it's the second time that my BB Curve won't receive powe. The first time Vodafone Portugal (where I bought th BB) said that the warranty had ended and that de BB could not be repaired. So, i bought a new one... Today, only 3 months
-
Trying to update my IPad and it gets stuck on "backing up."
I am trying to update my ipad. I downloaded the newest update of itunes and that seemed to work. Plugged in the IPad and now it has been running a Backup for an hour. Is this normal? It says it is Syncing, but it is taking a long time