Conditionally enabling data fields
hey guys,i have a select control with two options(house and
land)and i have twelve fileds for installment payments.now i want
all the twelve to be active when the "house" option is selected and
only the first six fields when "land" option is selected.i tried
this code (visible="{PropertyType1.selectedItem != undefined}") but
it does not work can someone bail me out here.thanks.this is the
source guide me plizzzz
<cfscript>
//make query with property types
types = queryNew("label");
queryAddRow(types,2);
querySetCell(types,'label',"HOUSE",1);
querySetCell(types,'label',"LAND",2);
</cfscript>
<cfformgroup type="page" label="PAYMENT FORM">
<cfformgroup type="vbox" id="editForm3"
style="backgroundColor:##E1EFC2;">
<cfinput type="text" name="CustomerName" label="Client
Name:" />
<cfselect name="PropertyType1" display="label"
query="types" label="Property Type:"
width="150"></cfselect>
<cfinput type="text" name="PayPlotNumber" label="Plot
Purchased:" />
<cfinput type="text" name="Cost" label="Base Cost:" />
<cfselect name="PaymentType" display="label"
query="payment" label="Payment Type:"
width="150"></cfselect>
<cfinput type="datefield" name="PaymentDate"
label="Payment Date:" mask="mm/dd/yyyy">
<cfinput type="text" name="Balance" label="Balance On
Payment:" />
<cfformgroup type="vbox">
<cfformgroup type="horizontal">
<cfinput type="text" name="FInstallment" label="1st:"
width="180" hspace="2">
<cfinput type="text" name="SInstallment" label="2nd:"
width="180">
</cfformgroup>
<cfformgroup type="horizontal">
<cfinput type="text" name="TInstallment" label="3rd:"
width="180">
<cfinput type="text" name="FrInstallment" label="4th:"
width="180">
</cfformgroup>
<cfformgroup type="horizontal">
<cfinput type="text" name="FtInstallment" label="5th:"
width="180">
<cfinput type="text" name="StInstallment" label="6th:"
width="180">
</cfformgroup>
<cfformgroup type="horizontal">
<cfinput type="text" name="SvInstallment" label="7th:"
width="180" visible="{PropertyType1.selectedItem != undefined}">
<cfinput type="text" name="EtInstallment" label="8th:"
width="180">
</cfformgroup>
<cfformgroup type="horizontal">
<cfinput type="text" name="NtInstallment" label="9th:"
width="180">
<cfinput type="text" name="TnInstallment" label="10th:"
width="180">
</cfformgroup>
<cfformgroup type="horizontal">
<cfinput type="text" name="EvInstallment" label="11th:"
width="180">
<cfinput type="text" name="TwInstallment" label="12th:"
width="180">
</cfformgroup>
</cfformgroup>
</cfformgroup>
</cfformgroup>
</cfformgroup>
</cfformgroup>
Hi Jay,
As far as I am concerned, I would say that you will have to write a Data Selection formula.
However, if you want to restrict data before it comes to the report, there is this option to use a Universe (if in case you are using Business Objects Enterprise).
Hope this helps.
Regards,
Jay.
Similar Messages
-
Can i Use a time stamp vale in where condition with date field?
HI,
In a where condition the table field vale is of type timestamp and select options value is of type date.
How do i select data?Define a range for r_dt for timestamp field.
Initailize the range with the below values.
r_dt-sign = 'I'.
r_dt-option = 'CP'.
concatenate r_date-low '*' into r_dt-low.
concatenate r_date-high '*' into r_dt-high.
append r_dt.
Use r_dt in your select query where clause.
Note - r_date is the select-option for your date field.
Regards
Anurag -
Planning function to change date field value in layout
Hello experts,
I have 1 BPS layout with 2 date fields ( Start date, End date ). With a filter conditions, set of data comes in BPS layout on execution and 2 date fields also contain some value...I want to change values of these 2 dates...both the date fields are char infoobjects..in BPS layout, in planning function I got only 1 function ( Repost function ) to change the value of char infoobject based on some condition. but date field value is not the status field...i want to enter new date instead of old date..if i right exit function in that also i can change only keyfigs values..so please help me to solve this problem..
Thanks & Regards,
Priyanka JoshiHi Priyanka,
As of now master data planning is not so flexibly supported.
Still u can refer the below link which is enhancement of standard Repost function,and can be used to change master data.
[http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/10d2b273-0e12-2c10-fab3-a34bde559f92]
As far as my knowledge goes u cannot directly input date in rows.
regards,
Rajendra -
Which table stores Condition Pricing Date
Dear SDN experts,
Would like you to tell me which table stores Condition Pricing Date field (Sale Order Item)?
Thanks,
KhanhPass VBAK-KNUMV to KONV-KNUMV and you will get the item pricing conditions.
the condition pricing date is stored in field KONV-KDATU
Edited by: ksd on Dec 10, 2009 12:33 PM -
Issue regarding condition pricing date as system date for some condition types in sales order
Hi
I have already created a sales order on 30.04.2014. Today I am adding new line item to sales order in VA02 transaction. in this order new line items condition pricing date for conditions JEX2,JECX should show as 12.06.2014. But currently it is showing as 30.04.2014. I need condition pricing date as system date for above conditions.
Regards
prashantHi
When I am changing pricing date VBKD-PRSDT in sales order header . It is changing the condition pricing date for all. Sales order is created on 04.06.2014. I have added line item 150 on 14.06.2014.
After adding line item 150 , there I have changed the pricing date as 14.06.2014. in sales A tab of item 150. But still it is taking from Sales order header date as 04.06.2014 for all conditions. But my requirement is for line item it should take as system date for some conditions like JEX2,JECX& JA1Y but for other conditions it will take as Order creation date. Please suggest. I have also attached screen shot below. please go through it.
Regards
PK
Sales order header change mode VA02
Here pricing date VBKD-PRSDT = 04.06.2016
Item change mode
I have added new line item 150 on 14.06.2014
Changed the condition pricing date to 14.06.2014 & saved
After saving I have gone to Va02 screen of line item 150
& there I have gone to condition pricing date field from item condition tab
for JEX2 condition type but still here condition pricing date is showing as
04.06.2014 as below.
Condition pricing date
My requirement is like this
For some particular conditions like JEX2 condition pricing date will take as system
date instead sales order creation date when I will add a new item 150 on
14.06.2014.but for other conditions it will show as order creation date for the
same line item 150 . -
Infoset Join condition on Key feilds and data fields
Hi Guys,
I have a requirement to biuld the Info set with join conditon on two DSO's the info objects which i am using in the JOin condition are defined as data fieds in one DSO and defined as key fields in another DSO, is it possible to define join condition on key fields and data fields.
The two info objects are
0AC_DOC_NO
0ITEM_NUM
These two info objects are defined as data fields in DSO : 0LIV_DS1 Invocie verificaion
key fields in DSO: 0FIAP_0o3 FI AP Line Item
Please suggest me is it possible to define join the condtion on the data fields and key feilds.
Thanks
Best regards
SGHi
yes you can create join, you will get any issue in reporting level.
example: Say i want to create Info Set on 0MATERIAL and Sales DSO.
In 0MATERIAL Info Object it is key filed, but in my DSO 0MATERIAL is data field.Still we can create
Creation of join is dependent on fields common in your source objects.
check out the below document
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/2f5aa43f-0c01-0010-a990-9641d3d4eef7?QuickLink=index&overridelayout=true
Regards,
Venkatesh
Edited by: Venkateswarlu Nandimandalam on Sep 27, 2011 2:26 AM -
Chart report Condition fields and Data fields
Hi all,
i have tried chart report by adding two condion fields and one data field, the report is more meaning full in this scenario. the first condition field is taken as x-axis, the 2nd condition fields is taken as legend.
while adding more condition fields and data fields, i feel its not showing meaningfull data.
can anyone explain how the condition fields and data fileds are manipulated by crystal report.
i am using CR XI R2 Server.
Thanks
Padmanaban Vi am using Crystal Report XI R2 RAS Embedded in my server.
as we can add any number condition fields programatically using the method
ConditionField.Add(FieldObj), i would like to know how these fields are manipulated internally by the RAS server.
that means, what is the significance of condition fieldobject 1, condition fieldobject 2,condition fieldobject 3 etc...
if i add more than two condition fields , RAS Chart Report always returns 0 as legend value for all legends.
Thanks in advance
Regards,
Padmanaban V
Edited by: Padmanaban Viswanathan on Dec 22, 2008 9:53 AM -
Data not submitting when I have a conditional display on a date field
Hello all,
Could someone please help me with the following issue?
I have created an updateable report region with four updateable fields. 3 of the fields store a number values and the fourth stores a date value.
Each updateable report item has a conditional display, and whether they are displayed or not is controlled by the end user using a radio group (with submit). This provides the user with three options.
If I remove all conditional displays all data will commit to the database without any problems. If I apply the conditional display to the number fields only, again the data will commit as normal. However, as soon as I add a conditional display to the date field it all goes pair shaped. The data will then cease to commit, with no error message at all. Once I remove the conditional display normal service is resumed.
I'm certainly an APEX novice at the moment, so I wondered if anyone could shed some light on this.
Thanks in advance for your help
SteveStew,
Basically, I have edited each applicable report field column attributes, via the report attributes tab, and selected a conditional display 'Value of item in Expression 1 = Expression 2' for all of them.
In the same report region I have created a radiogoup with submit called p51_update_type, specifying three static return values; R, F and S
Condition e.g.
*"Expression 1"*
p51_update_type
*"Expression 2"*
S
All columns display as expected, and commits to the database are normal, that is until I apply a conditional display to the date field (which relates to a table column of type DATE in the database).
Thanks
Steve -
How to select data from a table using a date field in the where condition?
How to select data from a table using a date field in the where condition?
For eg:
data itab like equk occurs 0 with header line.
select * from equk into table itab where werks = 'C001'
and bdatu = '31129999'.
thanks.Hi Ramesh,
Specify the date format as YYYYMMDD in where condition.
Dates are internally stored in SAP as YYYYMMDD only.
Change your date format in WHERE condition as follows.
data itab like equk occurs 0 with header line.
select * from equk into table itab where werks = 'C001'
and bdatu = <b>'99991231'.</b>
I doubt check your data base table EQUK on this date for the existince of data.
Otherwise, just change the conidition on BDATU like below to see all entries prior to this date.
data itab like equk occurs 0 with header line.
select * from equk into table itab where werks = 'C001'
and <b> bdatu <= '99991231'.</b>
Thanks,
Vinay
Thanks,
Vinay -
Stablish conditions between a data field in a query
Hello all,
Firstly, I´ve got an infoCube "A" where every record has a field called "Init date" (date field) and another field called "finish date"
In a query (that retrieves data for the infoCube A) there is a pop up with a date that user must enter (interval). This query must show every record for which different conditions regarding interval date are carried out by init date and finish date.
For example:
User enter: 03.02.2007 -- 17.04.2007
Query must show every record where init date is minor than 03.02.2007 and finish date is greater or equal than 03.03.2007 and greater than 17.04.2007.
I think this must be done in BW exit but I don´t know abap code I must enter.
Anybody can help me?
Thanks a lot.
CarmenIf you want to restrict data for sertain period, and these values are entered in variable entry screen. Query will display only that data which satisfies the entered conditions.
What exactly you want ? Is,t this your requirement ?
Regards
SS -
BAM Alerts - When a data field in a report meets specified conditions
Hi ,
Please find the below mentioned issue , which I am facing at the time of creating BAM alerts.
I have created a data object, when i am creating the bam alert [ create new alert --> create rule --> when i select an even " When a data field in a report meets specified conditions" and "When a data field in a data object meets specified conditions" then below in rule expression I am unable to edit the expression of "this data fields has a specified condition of x".]
Appreciate your quick response.
VAMSI.PHi,
I am having the same issue, and I am on IE9. When I was on IE8 I had no problems. Are you also on IE9
Thanks
Judy -
Not able to put data selection condition in data selection tab of infopakag
I was loading data from data source as data mart ( export data sauce from ODS) to other ODS.
when I tried to do delta Initialization with data transfer , I am not able to put data selection condition in data selection tab of infopakage.
when I choose Full Update in Update tab . It enables data selection fields in data selection tab. and I could put the condition.
I have checked in transfer structure as well , the fields are marked for selection.
Please advice .
Please tell me what could be the reason for this problemAshutosh,
As you are doing delta upload the data selection tab will be disabled, if you want to do the selective load then you need to do init update with your selection.
When you do the full updtae then definitely the data selection tab will be enabled for all the objects.
Hope this helps...
*******Assign Points if it helps********
Thanks,
Gattu -
Query find form - customized search on a date field
Hi All,
I have a form which has query find behaviour enabled. When the user press on the search(torch light button) The query find form gets opened in a new canvas.
I have a date field on the query find form. The current functionality is that
"The form searches for the exact match on the date" but I want to have the results which satisfy <= "entered date".
How do I achieve it in Query find form.
Do I need to have the where condition appended in the Pre-Query on the results data block.
Please help me with an example. Thank you.
Srinivasa Mouli
Edited by: 889427 on 4 Oct, 2011 11:43 AMShort of adding your own query extensions, you must pass in a Date
parameter vs some stringified version.
Paresh wrote:
I want to query on a date field as follows
"createDate < '2003-08-20 12:00:00:000' "
createDate has DataType java.util.Date
When I try to execute this query it throws UserException.
If I use a parameter in the query string and pass a date object to execute
method then it works fine.
I just want to make sure that there in no way I can make the first
approach work
Steve Kim
[email protected]
SolarMetric Inc.
http://www.solarmetric.com -
View with selection conditions with system fields.
Hi Experts,
I have a view. Now i want to control the data that is selected using 'Selection Conditions'.
here i want to use system field SY-DATUM.
My requirement is i want to control the output like
Valid_From_Date GE SY-DATUM and
Valid_To_Date LE SY-DATUM
which means that i would be showing only active users in this view.
How can i go about this? System is not allowing system fields in comparision value.
Any help on this is highly appreciated. Thanks.
regards,
SimhaHi,
I am getting a warning first 'enter constant as comparision value'
when i trying to activate the view i am getting the below error.
A join condition on a field of the system table SY (or SYST) was defined.
This is not permitted for database views because the system table is not known to the database
Have tried to activate the view you created?
How to go about this?
Regards,
Simha -
Enable/disable fields in Workspace form
Okay here is my scenario. I need to disable some fields on a form depending on which user logs onto workspace to open the same form.
1. User1 logs onto workspace and opens leave request form, fields at the top of the form are enabled for the user to fill out, bottom fields which are for leave request administrator to fill out are disabled but visible.
2. User1 fills out top portion of leave request form and completes form. Workflow sends form to leave request administrators "To do" list in Workspace.
3. Administrator opens up submitted form in Workspace and sees User1's filled out data on the form and the bottom fields are now enabled for administrator to approve or dissaprove. Bottom fields only include two check boxes, two text fields and one date field.
Now how is this done? I am sure their maybe scripting involved? if so what is it and at what events in the form? Is this whole process done in the form or through Admin UI or Workebench as well? Please help!!!!!!!!!Hi Rahat,
You can use the same form and enable/disable some fields according to the user's role with only little scripting. Review the steps the below:
1-First place a hidden field ("user_role") in your form
2-Insert a script object into your form onder "Variables" in object hierarchy and write a script for enabling/disabling the fields (regarding the value of "user_role")
3-On the initialize and change events of the "user_role" call your script object
4-On your process design, put a SetValue service before User tasks. In the asssignment you should set the desired user_role to the form, so that the script is triggered in your form and the fields are enabled/desiabled
Fro further needs on your form or process design you can contact us from: http://www.kgc.com.tr/company_Contact.html
Oguz
http://www.kgc.com.tr
Maybe you are looking for
-
Migrating data from LookUp Table to Main Table without taking extract
Dear Experts, Is there any way if we want to migrate full data from LookUp Table to Main Table in the same repository without taking the extract from MDM DM and not importing it using Import Manager? Thanks Gaurav Kumar Sharma
-
Hi, I want to use the EXTRACT function in Discoverer. I went through the Help for the «Import PL/SQL function» without success.... When I click the «Import» button, I see a HUGE list of functions, and I don't recognize which is the one I want. I use
-
HT201250 Is there any disadvantages to Time Machine? Why doesn't everyone get it?
I am looking at Time Machine, and it looks great and really helpful. Are there any disadvantages? Why would anyone not get it? I am trying to figure out if I am missing something. Thank you!
-
/etc/crypttab doesn't create /dev/mapper/swap
I'm not lucky with encryption these days: keyfile on USB stick doesn't work ( http://bbs.archlinux.org/viewtopic.php?id=52507 ), so revert to the passphrase thing. I had swap encryption working using the old rc.local way etc. now there's a new way...
-
Some text displays incorrectly (in bright colours) or not at all on Macbook Pro Retina
The text in the image is actually white and say "learn more" but for some reason, it displays like this, and even worse exports like this. If I select the text, it looks like it should, but as soon as I deselect it, it reverts to the above corruption