Hide 'Add Fields' in af:query
Hi guys,
I just want to hide 'Add Fields' alone in advanced section of af:query.
Is it possible?
Thanks in advance
Dev
There are two possible solutions:
1. you can add a skin selector and hide hte footer component, which holds the button to add fields.
in your skin.css file add
.AFMyQuery af|query::footer-facet-content-style
display: none;
}and put this as AFMyQuery as styleClass onto the af:query
... styleClass="AFMyQuery"...2. you add a af:spacer into the footer facet of the af:query and set it's height and width to 1px. This will hide the button too. From the doc
. If a footer is not specified then an 'Add Fields' dropdown is automatically added to the facet. If a footer facet is specified, (that includes custom buttons for example) the default 'Add Fields' dropdown will not appear and users are required to specify it explicitly in the footer facet along with the other content if this functionality is desired.add this to the af:query
<f:facet name="footer">
<af:spacer width="1" height="1" id="s1"/>
</f:facet>
</af:query>Timo
Similar Messages
-
Add field in a query (logical data base)
Hi,
I want to add a field in a query .
The data source of its infoset is logical database .
When i tried to drag and drop the field, the alv grid turned to alv list.
Can you help me.
thanks,
Meriem.Hi Merim,
As KAMESH mention,
you can add additional fields in your infoset and put the logic for that field in your infoset program and assign the same field in your existing group within infoset.
once you assign the infoset and generate the infoset then your field will be reflected in sap Query .
you can add additional field in your output.
Regards,
Prasenjit Mishra -
How to control attributes in 'Add Fields' in af:query Advance mode
Hi,
The VO attributes those set Queriable=false doesn't appear in the Add Fields dropdown in ad:query advance mode.
But I have few attributes in a VO those required to use in VO query so I cannot set those attrbutes Queriable as false.
Also observed that QBE doesn't work for the attributes whose Queriable set as false.
So can someone please suggest me how to achieve below,
VO attribute which having Queriable=true but doesn't appear in 'Add Fields' dropdown in af:query advance mode.
JDeveloper version 11.1.1.7.0
Edited by: user12820425 on Mar 21, 2013 10:16 AMHi Naresh
Thanks for your reply.
In ViewCriteria -> UI Hints we can set attribute Rendered Mode as never, but that perticular attribute still appear in 'Add Fields' section.
I think renderedMode=never means that attribute doesn't appear in Advance or Basic mode user need to manually select that attribute.
So please suggest me how to achive my requirement. -
Hi,
Please let me know , how to add two fields in ABAP Query. Please it showing two fields in list fileds but i want to add two into one.
thanks,
SonarThanks for Inf
Here I want to print total of two fields into one field, where concatenate should be there
mv_abrmenge, mn_abrmenge
select ebelnr, htariftyp, csparte, cvertrag, cvkont, mbelzart, cbegabrpe, cendabrpe, mv_abrmenge, mn_abrmenge, e~budat
from erchc as e
join dberchz1 as m
on ebelnr = mbelnr
join erch as c
on mbelnr = cbelnr
join ever as r
on cvertrag = rvertrag
join eanlh as h
on hanlage = ranlage
where h~tariftyp in @p1@
and c~erchc_v = 'X'
and c~simulation = space
and c~tobreleasd = space
and e~budat in @p2@
and e~simulated = space
Thanks,
Sonar -
How to hide some fields in ABAP Query
Hi,
My ABAP Query has a long list of extracted fields. I wanted to set some of these output to "HIDE".
This allow User the flexibility to decide what fields to show.
How can I set the field to "HIDE" in my query?
Thanks
byeHi Tim,
You can do this by setting the Report layout variant in following steps:
1. First define the parameter on selection screent for report variant.
2. Data decelaration for variant.
3. Value request to get already present variants on report:
4. If doesn't choose the layout take out the default report layout.
5. Initialize the report variant.
6. Apply the variant to the REUSE_ALV_GRID_DISPLAY funtion module.
Here to generate report variant first to open report output and then as per according to user set the layout of report using the layout icon of ALV with summation on value fields (as required) and create layout name.
*Data Deceleration as below:
Data :g_save(1) TYPE c,
** g_default(1) TYPE c,
g_exit(1) TYPE c,
gx_variant TYPE disvariant,
g_variant TYPE disvariant.
*First Define the parameter to give layout of Report variant.
SELECTION-SCREEN BEGIN OF BLOCK 3 WITH FRAME TITLE text-003.
PARAMETERS: p_vari TYPE disvariant-variant.
SELECTION-SCREEN END OF BLOCK 3.
* Process on value request
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_vari.
PERFORM f4_for_variant.
* Selection-Screen Checking
AT SELECTION-SCREEN.
PERFORM pai_of_selection_screen.
INITIALIZATION.
w_repid = sy-repid.
PERFORM variant_init.
* Get default variant
gx_variant = g_variant.
CALL FUNCTION 'REUSE_ALV_VARIANT_DEFAULT_GET'
EXPORTING
i_save = g_save
CHANGING
cs_variant = gx_variant
EXCEPTIONS
not_found = 2.
IF sy-subrc = 0.
p_vari = gx_variant-variant.
ENDIF.
FORM f4_for_variant .
CALL FUNCTION 'REUSE_ALV_VARIANT_F4'
EXPORTING
is_variant = g_variant
i_save = g_save
IMPORTING
e_exit = g_exit
es_variant = gx_variant
EXCEPTIONS
not_found = 2.
IF sy-subrc = 2.
MESSAGE ID sy-msgid TYPE 'S' NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
** ELSE.
** IF g_exit = space.
** ENDIF.
ENDIF.
ENDFORM. " f4_for_variant
FORM pai_of_selection_screen .
IF NOT p_vari IS INITIAL.
MOVE g_variant TO gx_variant.
MOVE p_vari TO gx_variant-variant.
CALL FUNCTION 'REUSE_ALV_VARIANT_EXISTENCE'
EXPORTING
i_save = g_save
CHANGING
cs_variant = gx_variant.
g_variant = gx_variant.
ELSE.
PERFORM variant_init.
ENDIF.
ENDFORM. " pai_of_selection_screen
FORM variant_init .
CLEAR g_variant.
g_variant-report = w_repid.
ENDFORM. " variant_init
**While Showing report pass the variant :::
g_save = 'A'.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = w_repid
i_structure_name = 'IT_MAIN'
is_layout = i_layout
is_print = i_print
it_fieldcat = i_fieldcat[]
it_events = i_events[]
i_save = g_save
is_variant = g_variant
TABLES
t_outtab = it_main
EXCEPTIONS
program_error = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
Many Thanks / Himanshu Gupta -
Using jquery to hide/show field based on query results
I have a form that includes fields for country and state/province. Initially, the state field is hidden. When the user selects a country, I use a bind expression in the state field to get the states in the selected country. I want to display the state field only if the country has states (since some countries don't). Can someone tell me how to do this? Here's the relevant stuff:
<script>
$(document).ready(function() {
$('#stateID').hide();
$('#stateIDLable').hide();
</script>
Country:
<cfselect name="countryID" query="qryCountries" value="countryID" display="country" />
<div id="stateIDLable">State or Province:</div>
<cfselect id="stateID" name="stateID" bind="cfc:geography.getStates({countryID})" />
Thanks.
PeteI presume you have a JavaScript function that handles the results of the cfc binding?
If you don't you will need to incorperate one. Then, as well as populating the second select, this function can use logic to show the second set of controls. -
How to custom Add Fields in af:query?
Dear all,
I try to customize the af:query as follows:
The search criteria have two attributes, and when the addFields option is
chosen (in Advanced Mode), the already existing fields (the two attributes
of the search criteria) shouldn't be listed as possibility to be added in the
search criteria.
Does anyone know if there is a solution?
Thanks,
Mirelasay suppose you have field A and field B...
there might be a case... like you want to query like
A contains 'S' or A contains 'X'.. for this case you need to show the field that is already existing in the query panel.. -
ADF Query Panel with Tree Table -- Add Fields
I created ADF Query Panel with Tree Table using JDeveloper 11G. Under Advance Search, Add Fields pull down only list the fields in the master table. My questions are,
1) Can I search fields in detail table? If yes, how can I do it?
2) How can I customized this pull down list? Currently it just show the entire view of master table with unnecessary id type data.
Thanks in advance.
Edited by: kxc on Nov 9, 2009 9:21 AM1) Can I search fields in detail table? If yes, how can I do it?
Are there anyway to search the second level node?You can. But you need to evaluate if the arrangement works for you.
I assume you have a view link from the master to detail VO.
To do so, in your master view criteria (the one which you use in the query panel), shuttle the attributes of your detail VO (in master attributes list, you'l see the detail view link accessor - on selecting this, the detail atteributes are available to you)
In the Add Fields, it shows as student_id AND student_name. I was unable to delete the student_id field in the view since it is PKYou can set its 'display' UI hint to 'hide' in your VO. -
Af:query lable hide some fields
HI ,
I am using the jdev 11.6 .
i have implemented the af:query and have some of dependencies fields on af:query .
Dependencies field should not display the label ? i haven't provided the label in vo and even though its displaying the attribute name in a:query .
How can i make label are empty for the dependencies fields in af:query ?(I .e no need to display the label for few fields)
thanksJDEV: af:query hide &#8216;Add Fields&#8217; from query panel via custom skin | JDev &amp; ADF Goodies
-
How to add and hide more fields in PPM?
Hello,
Im new to this tool and I would like to know how to add and/or hide customized fields. I've only know that Its somewhere under SPRO > Global Enhancements to Project Elements but Im a little bit lost there. Can somebody explain to me with details how to do this and also, does this need a specific access of developer to do this customization?
As this is a basic need for all, anybody that is new on the tool and search for this will have a good reference on this thread.
Thanks in advance.
Many regards!The path is SPRO > Global Enhancements to Project Elements > Setup field control.Herein,once you select the field control you may proceed towards defining the conditions that influence the same. A step by step approach is explained in the below article that will aid you to change properties of custom fields.
http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/3053cee2-4bca-2d10-38ae-efff39ad248e
Regards,
Pradeepkumar Haragoldavar -
af:query component "Add Fields" clarification
Hi, in the advanced mode of <af:query> using the "Add Fields " function , duplicate fields(same search field can be added multiple times) can be added. Is this a bug or a feature. Where can i refer the doc to confirm this . Thanks.
I don't know that the documentation specifically says anything about this. [url http://download.oracle.com/docs/cd/E14571_01/web.1111/b31973/af_query.htm#BGBCHFEF]here is one piece of documentation.
-
ABAP Query: add field on layout based on Company code
Hello Experts,
I currently working on ABAP Query report for asset master issues and would like one more field added to layout for Company code XXXX . Is it possible to add fields to this layout based on company code .
Thanks in Advance
NupurHello Andreas,
I'm asking is that possible to change ABAP Query report layout based on Company code.
For Instance:
Company code :1111
Layout should : A B C D E F
other than 1111.
layout should : A X Y Z F
My scenario is :
ABAP Query is working fine but users from UK wants some more fields on the layout but rest of the country users other than UK, they don't want such changes.
Regards,
nupur -
No hide fields or select fields in SAP Query Extractor?
HI Gurus,
I want to generate a data source, extraction data from SAP Query.
Now I want to hide some fields or to mark some fields as relevant for selection.
But after saving my settings are unavaiable...?
Does somebody have an idea? Is this standard when extracting from Query or is this maybe an OSS...?
ThanksHello,
Just logoff and Login again, then check it.
Also see
SAP Note 1014073 DFG: Changes to the DataSource are displayed incorrectly
SAP Note 1073714 DataSource in RSA6: Unable to display/change customer fields
SAP Note 925398 RSA6: DataSource enhancement only visible after restart
Thanks
Chandran -
How to show attributes only in query panel but not in Add fields.
Hi,
Jdev - 11.1.1.7.0
I have a requirement where I need to show attribute only in search panel but not in Add Fields list which is available in advanced section.
Thanks for your time and help.
Regards,
Dileep.Hi,
Is it really possible implement this kind of scenario, I could not find any property to disable the attribute only 'Add Fields' but not in query panel.
Please some one confirm me this behavior.
Thanks,
Dileep. -
Add field dynamically in ABAP Query Report.
Hi All,
Can we add fields dynamically in the ABAP Query Report?
There is a field in my report which should occupy the line only if it has value. But if we drag-drop the filed in the report it automatically occupy the line though it doesn't have value.
Thanks in Advance!!!hi rohini,
we can add fields dynamically in the ABAP Query Report,in this way we can to,
first of all u create ur selection-screen with all the fields and make the field invisible i.e the one which u want to add dynamically. and based on ur requirement change that invisible to visible and use modify screen.
in this way we can solve.
search for invisible and modify screen in sdn u can get better information and u can understand what i am saying.
Maybe you are looking for
-
I use calendar in icloud all the time but when I try to print it all I get is a dark background....like the dard barkground on the main screen when accessing icloud. This happens on all devices...iphone, ipad and PC. Cant figure out how to get it
-
Lumia 630 Wi-Fi problem.
Whenever I try to connect to my Wi-Fi(Bsnl router) it shows that"your modem did not respond" or something like that.. I don't know why this is happening.. I have tried with my android phone but its connecting after changing the setting in mobile Wi-F
-
I have some DVD's that I have burned in the past. But I want to edit them now. I coppied the files to my hdd and imported them into Premiere Pro. I looked and see that .vob files ARE supported by PrPro, but when I place them into the timeline, the
-
Auditing drop tablespace in Oracle 10.1
Hi all, I want to audit the drop table and drop tablespace statement for all users in the oracle database 10.1. So, could someone gives me a help to do this? The audit_trail is already set to db in the database. Regards
-
How to Convert OST to PST & Restore Microsoft Exchange Orphaned Offline database
This past weekend we lost power for a long duration at our main facility. When power was restored everything started up normally, but on Monday we started to have networking issues. I did some fast troubleshooting, then realized perhaps I should get