Plot area width changes as the precision changes !?
need help to understand following thing:
If I increase the precision of a graph manually, the plot area size decreases and vice versa.
Otherwise there is an example posted demonstrating prcision change by property node which does not change plot area size.
I've attached an example to demonstrate both.
What I want is to change the precision manually with the default graph tools without decrease or increase plot area width.
Is this possible in LV 6.02 ?
Attachments:
MyScaleProblem.vi 60 KB
Hi.
Resizing of the graph is the default behavior. The Graph resizes in LabVIEW 7 in both cases. I woud suggest building a text indicator with a transparent background and reading the properties of the graph to display the correct values to the side. This should give the desired response.
-Erik
Similar Messages
-
How to get a fixed plot area in a Waveform Graph even if the Y scale's precision change
Because I'm stacking many Waveform Graph. I want them to look the same. When I change the precision of the values in the Y Scale. The plot area doesn't keep its initial width. In the example provided. I'm changing the precision and you can see it moving. Is there a way to keep the width fixed?
I noticed that there is justification for unit label. But I didn't got the expected behavior.
Attachments:
ScaleProblem.vi 38 KBThe menu item is only in LabVIEW 6.1 and above because the plot area did not autoscale in earlier versions so I'm not sure exactly what kind of problem you're seeeing. Here's the original example in 6.0 format and when I run it, the plot areas stay aligned as the precision changes. Could you maybe post an example that demonstrates the behavior?
Attachments:
ScaleProblem[1].vi 33 KB -
How do I change the number of plot areas in a Mixed Signal Graph
How do I *programatically* change the number of plot areas in a Mixed Signal Graph? I recognize that the developer can choose to add or remove a plot area during edit mode but I want to select between 2 or 3 visible plot areas and scale the plot areas appropriately. Is there a property that tells me how many plot areas (or yscales) there are? I also need a property that I can write to as to set the number of plot areas available.
Aside from manually making too many plot areas and then hiding the unneeded plot areas how can I do this?
JonathanHello,
I don't think that is possible - I searched the property and invoke nodes but didn't find something to do that. This would make a great product suggestion though, which you can submit (it goes directly to R&D) by clicking the word feedback in the bottom left corner of the Contact NI page linked below:
Contact NI:
http://sine.ni.com/apps/utf8/nicc.call_me
Best Regards,
JLS -
How to make the plot area of a xy transparant?
I want to use a image to use as background of a xy graph so I want to make the plot area transparant
hi there
use the color - Tool, select transparent for background and foreground color and click on the control.
Best regards
chris
CL(A)Dly bending G-Force with LabVIEW
famous last words: "oh my god, it is full of stars!" -
The caption on an annotation is off the plot area. Even if I cahnge the x and y scaling I still can't see the annotation caption. How can I change it so that I can see it?
Try calling SetCoordinates on the annotation's Caption property. This method lets you explicitly set the x and y coordinates of the caption.
- Elton -
In LV6.1 the order in which plots are written to an XY graph is in reverse order from the order they appear in the array of plots that is feed to the XY graph control. Thus at places where �Plot 0� intersects �Plot 1�, the �Plot 0� data appears in front of the �Plot 1� data. I would like to reverse this without switching the order the plot array is built-up. Is this possible? I�ve attached a vi that demonstrates what I�m taking about. In my application I have many �highlights� that I do NOT want to list in the plot legend but that I wish to plot �over� the channel data that IS listed in the legend.
Thanks
Attachments:
plotOrder.vi 42 KBThanks for this idea. I misunderstood what you meant until Jeremy responded saying you were �right on the money�. I thought you meant that putting another plot in the array but making it transparent was going to help somehow, but now I understand that you mean plotting the �up front� data to a separate XY graph indicator which is transparent and overlaying the original XY graph. I may wind-up doing this. I�m just not excited about linking all the scaling info from one graph to the scaling of the transparent graph and creating the necessary event handling so that when the user scales one graph or changes the auto-scaling, the other graph�s scales gets updated, but perhaps it�s the only way. Thanks again for your input.
-
Changes are not reflecting in the table control in 2nd time
Hi,
In BSP Portal Asset management page, General,cost center, allocations ..etc tabs are there.and i have maintain button also in this page
After filling all these things, when i click the maintain button , the mandatory fields [General,costcenter,Eval1,Eval2]are displaying in the tablecontrol popup window,
In the tablecontrol popup whatever i selected ,it is displaying fine..
In the popup,save buttons is there.Once if i clicked the save button, popup will vanish and datas are stored in the internal table.and again it will come to portal main page.Now if i select the different values in the allocations dropdown, old vales are displaying in the tablecontrol popup. new dropdown values are not diaplying in the popup.what can i do?
This is my code: popupdisplay.htm
==============
<%
* DATE CHANGE.....: 20/07/2007 *
* AUTHOR..........: Mohan Pitchaimani (inmpi0) *
* CHANGE DESCR....: DIsplay the popup when clicking the maintainbutton *
* R/3 RELEASE... : 2.1 *
* MODIFICATION ID : MOD-001 *
* RIFE/TPR/SCR No.: FSSE698 BSP Asset Mass Creation BSP Request form * *
* RT/TRANSPORT....: 12403 / D94K969999 *
%>
<%--********************Begin of changes mod-001 on 20/07/2007 *****************--%>
<%@page language="abap"%>
<%@extension name="bsp" prefix="bsp" %>
<%@extension name="htmlb" prefix="htmlb" %>
<%@ extension name="/DS1/mdm" prefix="mdm" %>
<%
data :
lt_columns type /DS1/MDM_tt_table_control,
ls_column type /DS1/MDM_ms_table_control,
l_onload type string,
lr_field type ref to /ds1/cl_mdm_bspfield_services,
lw_maintain type /ds1/fss_ms_popup,
l_editable type char1,
lt_drop type /ds1/mdm_tt_dropdowns,
ls_sc type /DS1/MDM_MS_F4_SEARCH_CRITERA,
ls_rmap type /DS1/MDM_MS_F4_RESULTS_MAP,
ls_drop type /ds1/mdm_ms_dropdown,
l_number type int4.
%>
<%--********************Close the window **************************************** --%>
<% data: event TYPE REF TO CL_HTMLB_EVENT.
event = CL_HTMLB_MANAGER=>get_event( runtime->server->request ).
%>
<%
if event is not initial.
CASE event->id.
WHEN 'con'.
%>
<script language="javascript">
self.close();
</script>
<% endcase.
endif.
%>
<%--************************ Popupdisplay ***************************************** --%>
<htmlb:content design = "design2002+design2003"
rtlAutoSwitch = "true"
forceEncode = "ENABLED" >
<htmlb:page title = "Maintain fields should be different from similar assets">
<script type="text/javascript" language="JavaScript" src="../MDM_GENERIC/Javascript/MDM_Generic.js"></script>
<%@ include file = "asst_scripts_change.htm" %>
<%@ include file = "../MDM_GENERIC/TableControlStyleInclude.xml" %>
<% delete controller->r_asset_data->T_MAINTAIN where TXT50 = space. %>
<% if controller->r_asset_data->t_maintain is initial.
lw_maintain-TXT50 = controller->r_asset_data->w_generaldata-DESCRIPT.
lw_maintain-INVNR = controller->r_asset_data->w_generaldata-INVENT_NO.
lw_maintain-kostl = controller->r_asset_data->w_timedependantdata-costcenter.
lw_maintain-ORD41 = controller->r_asset_data->w_allocations-EVALGROUP1.
lw_maintain-ORD42 = controller->r_asset_data->w_allocations-EVALGROUP2.
lw_maintain-ORD43 = controller->r_asset_data->w_allocations-EVALGROUP3.
lw_maintain-ORD44 = controller->r_asset_data->w_allocations-EVALGROUP4.
lw_maintain-GDLGRP = controller->r_asset_data->w_allocations-EVALGROUP5.%>
<%--******************** Appending the maintained values *************************** --%>
<%
if controller->r_asset_data->G_NO_ASSETS NE space.
clear l_number.
DO controller->r_asset_data->G_NO_ASSETS TIMES.
l_number = l_number + 1.
lw_maintain-SERNR = l_number.
APPEND lw_maintain TO controller->r_asset_data->t_maintain.
ENDDO.
else.
DO controller->r_asset_data->g_no_similarsubno TIMES.
APPEND lw_maintain TO controller->r_asset_data->t_maintain.
ENDDO.
endif.
controller->G_POPUP_FLAG = 'X'.
endif.
%>
<%--******************** VAlidations for the Requester and Approver screen *************************** --%>
<% if controller->ms_request_header-req_status = '00'.
ls_column-columnname = 'SERNR'.
ls_column-no_edit = 'X'.
append ls_column to lt_columns.
clear ls_column.
endif. %>
<% if controller->ms_request_header-req_status = '05'.
ls_column-columnname = 'SERNR'.
ls_column-no_edit = 'X'.
append ls_column to lt_columns.
clear ls_column.
ls_column-columnname = 'TXT50'.
ls_column-no_edit = 'X'.
append ls_column to lt_columns.
clear ls_column.
ls_column-columnname = 'INVNR'.
ls_column-no_edit = 'X'.
append ls_column to lt_columns.
clear ls_column.
ls_column-columnname = 'KOSTL'.
ls_column-no_edit = 'X'.
append ls_column to lt_columns.
clear ls_column.
endif. %>
<% if controller->ms_request_header-req_status = '06'.
ls_column-columnname = 'SERNR'.
ls_column-no_edit = 'X'.
append ls_column to lt_columns.
clear ls_column.
ls_column-columnname = 'TXT50'.
ls_column-no_edit = 'X'.
append ls_column to lt_columns.
clear ls_column.
ls_column-columnname = 'INVNR'.
ls_column-no_edit = 'X'.
append ls_column to lt_columns.
clear ls_column.
ls_column-columnname = 'KOSTL'.
ls_column-no_edit = 'X'.
append ls_column to lt_columns.
clear ls_column.
ls_column-columnname = 'ORD41'.
ls_column-no_edit = 'X'.
append ls_column to lt_columns.
clear ls_column.
ls_column-columnname = 'ORD42'.
ls_column-no_edit = 'X'.
append ls_column to lt_columns.
clear ls_column.
ls_column-columnname = 'ORD43'.
ls_column-no_edit = 'X'.
append ls_column to lt_columns.
clear ls_column.
ls_column-columnname = 'ORD44'.
ls_column-no_edit = 'X'.
append ls_column to lt_columns.
clear ls_column.
ls_column-columnname = 'GDLGRP'.
ls_column-no_edit = 'X'.
append ls_column to lt_columns.
clear ls_column.
endif.
%>
<% if controller->ms_request_header-req_status = '00'. %>
<html>
<body>
<p>
You can Maintain/Edit details of Similar Assets/Similar Sub - Assets . Click confirm to maintain the entries
</p>
</body>
</html>
<% elseif controller->ms_request_header-req_status <> '00'. %>
<html>
<body>
<p>You can view details of of Similar Assets/Similar Sub - Assets.
</p>
</body>
</html>
<% endif.%>
<htmlb:form id='frmMain' >
<htmlb:group>
<htmlb:groupBody>
<htmlb:gridLayout columnSize ="2"
rowSize ="15"
width ="150%">
<htmlb:gridLayoutCell columnIndex="2" rowIndex="1" horizontalAlignment="left" verticalAlignment="top" width="200" wrapping="false">
<%
ls_column-columnname = 'TXT50'.
ls_column-input_type = '1'.
ls_column-data_type = '1'.
APPEND ls_column TO lt_columns.
CLEAR ls_column.
ls_column-columnname = 'INVNR'.
ls_column-input_type = '1'.
ls_column-data_type = '1'.
APPEND ls_column TO lt_columns.
CLEAR ls_column.
* build F4 Search sceen
ls_sc-field_name = 'KOKRS'.
ls_sc-data_element = 'KOKRS'.
ls_sc-f4_from_data_element = 'X'.
ls_sc-value = 'OP01'.
append ls_sc to ls_column-lookup_params-searchcriteria.
clear: ls_sc.
ls_sc-field_name = 'BUKRS'.
ls_sc-data_element = 'BUKRS'.
ls_sc-f4_values = /DS1/CL_MDM_F4_VALUES=>GET_VALUES_FOR_COCE_COMPANY( ).
append ls_sc to ls_column-lookup_params-searchcriteria.
clear: ls_sc.
ls_sc-field_name = 'KOSTL'.
ls_sc-data_element = 'KOSTL'.
append ls_sc to ls_column-lookup_params-searchcriteria.
clear: ls_sc.
ls_sc-field_name = 'KOSAR'.
ls_sc-data_element = 'KOSAR'.
ls_sc-f4_from_data_element = 'X'.
append ls_sc to ls_column-lookup_params-searchcriteria.
clear: ls_sc.
ls_sc-field_name = 'VERAK'.
ls_sc-data_element = 'VERAK'.
append ls_sc to ls_column-lookup_params-searchcriteria.
clear: ls_sc.
ls_sc-field_name = 'LTEXT'.
ls_sc-data_element = 'KLTXT'.
append ls_sc to ls_column-lookup_params-searchcriteria.
clear: ls_sc.
ls_sc-field_name = 'SPRAS'.
ls_sc-data_element = 'SPRAS'.
ls_sc-f4_values = /DS1/CL_MDM_F4_VALUES=>GET_VALUES_FOR_LANGU( ).
ls_sc-value = sy-langu.
append ls_sc to ls_column-lookup_params-searchcriteria.
clear: ls_sc.
ls_sc-field_name = 'TELX1'.
ls_sc-data_element = 'TELX1'.
append ls_sc to ls_column-lookup_params-searchcriteria.
clear: ls_sc.
ls_sc-field_name = 'FUNC_AREA'.
ls_sc-data_element = 'FKBER'.
ls_sc-f4_from_data_element = 'X'.
append ls_sc to ls_column-lookup_params-searchcriteria.
clear: ls_sc.
ls_sc-field_name = 'PRCTR'.
ls_sc-data_element = 'PRCTR'.
append ls_sc to ls_column-lookup_params-searchcriteria.
clear: ls_sc.
ls_sc-field_name = 'REGIO'.
ls_sc-data_element = 'REGIO'.
append ls_sc to ls_column-lookup_params-searchcriteria.
clear: ls_sc.
* set parameters for f4 lookup
ls_column-lookup_params-POPUPHEIGHT = '550'.
ls_column-lookup_params-POPUPWIDTH = '750'.
ls_column-lookup_params-SEARCHMAXRESULTS = '500'.
ls_column-lookup_params-SEARCHRESULTSKEY = 'KOSTL'.
ls_column-lookup_params-SEARCHTABLE = 'CSKS'.
* Set Column for Cost center
ls_column-columnname = 'KOSTL'.
ls_column-input_type = '4'.
ls_column-data_type = '1'.
ls_column-tooltip_fom_de = 'X'.
ls_column-scrollable = ' '.
ls_column-length = '15'.
ls_column-maxlength = '15'.
ls_column-halign = 'RIGHT'.
ls_column-valign = 'TOP'.
APPEND ls_column TO lt_columns.
CLEAR ls_column.
* Set Column for Evaluation group 1
ls_drop-dropdown_id = 'evlg1'.
ls_drop-values_tab = /DS1/CL_MDM_F4_VALUES=>GET_VALUES_FOR_EVALGRP1( im_group = '1'
im_bukrs = controller->R_ASSET_DATA->W_KEY-COMPANYCODE ).
append ls_drop to lt_drop.
ls_column-columnname = 'ORD41'.
ls_column-input_type = '2'.
ls_column-DROPDOWN_ID = 'evlg1'.
APPEND ls_column TO lt_columns.
CLEAR ls_column.
* Set Column for Evaluation group 2
ls_drop-dropdown_id = 'evlg2'.
ls_drop-values_tab = /DS1/CL_MDM_F4_VALUES=>GET_VALUES_FOR_EVALGRP1( im_group = '2'
im_bukrs = controller->R_ASSET_DATA->W_KEY-COMPANYCODE ).
append ls_drop to lt_drop.
ls_column-columnname = 'ORD42'.
ls_column-input_type = '2'.
ls_column-DROPDOWN_ID = 'evlg2'.
APPEND ls_column TO lt_columns.
CLEAR ls_column.
* Set Column for Evaluation group 3
ls_drop-dropdown_id = 'evlg3'.
ls_drop-values_tab = /DS1/CL_MDM_F4_VALUES=>GET_VALUES_FOR_EVALGRP1( im_group = '3'
im_bukrs = controller->R_ASSET_DATA->W_KEY-COMPANYCODE ).
append ls_drop to lt_drop.
ls_column-columnname = 'ORD43'.
ls_column-input_type = '2'.
ls_column-DROPDOWN_ID = 'evlg3'.
APPEND ls_column TO lt_columns.
CLEAR ls_column.
* Set Column for Evaluation group 4
ls_drop-dropdown_id = 'evlg4'.
ls_drop-values_tab = /DS1/CL_MDM_F4_VALUES=>GET_VALUES_FOR_EVALGRP1( im_group = '4'
im_bukrs = controller->R_ASSET_DATA->W_KEY-COMPANYCODE ).
append ls_drop to lt_drop.
ls_column-columnname = 'ORD44'.
ls_column-input_type = '2'.
ls_column-DROPDOWN_ID = 'evlg4'.
APPEND ls_column TO lt_columns.
CLEAR ls_column.
* Set Column for Evaluation group 5
ls_drop-dropdown_id = 'evlg5'.
ls_drop-values_tab = controller->GET_VALUES_FOR_EVALGRP5( im_bukrs = controller->R_ASSET_DATA->W_KEY-COMPANYCODE ) .
append ls_drop to lt_drop.
ls_column-columnname = 'GDLGRP'.
ls_column-input_type = '2'.
ls_column-DROPDOWN_ID = 'evlg5'.
APPEND ls_column TO lt_columns.
CLEAR ls_column.
* Input type
*1 Text box
*2 Drop down
*3 Checkbox
*4 F4 Lookup
*5 HTML
*6 Text just displayed
*7 Date
*8 Link
*9 Time
* Data type
*1 String
*2 Numeric
*3 Date
*4 Time
%>
<%---------------- TableControl display in the popupwindow --------------------------%>
<mdm:tableControl table="<%=controller->r_asset_data->t_maintain%>"
id="tv1"
width="650"
no_buttons = "X"
height="330"
columns="<%=lt_columns%>"
dropdowns= "<%= lt_drop %>"
title="Maintain Asset" >
</mdm:tableControl>
</htmlb:gridLayoutCell>
</htmlb:gridLayout>
<input type="hidden" name="renderedtv1" value= "rendered-tv1" />
<%---------------- Confirm Button-------------------------------- --%>
<htmlb:button id="con"
design="STANDARD"
width="15"
text = "Confirm" onClick="confirm"
onClientClick = "self.close()"/>
<%---------------- Cancel Button-------------------------------- --%>
<htmlb:button id="cancel"
design="STANDARD"
width="15"
text = "Cancel"
onClientClick = "self.close()"/>
</htmlb:groupBody>
</htmlb:group>
</htmlb:form>
</htmlb:page>
</htmlb:content>
<%--********************End of changes mod-001 on 20/07/2007 *****************--%>
Message was edited by:
Durairaj Athavan Raja
--formattingHi Mohan,
Please use the formatting options to format ur question...!!
Thanks,
Tatvagna. -
Iphone 4s - how do I change the name in the contacts for the owner of the phone - it is coming up as the other person who uses the laptop - so when ringing or texting anyone 2 names are being used as the caller id on the screen
*Ralph Johns* writes:
"Your options are:
Get a trial account form @mac which will work as an iChat name after the 60 days run out but not be a email account that is valid (And is free)"
Do you mean a trial account from .Mac? (DotMac)
"Get an AIM Screen name and set it to Display what you want as you set it up.
The Screen name can be whatever yu want but you can also set it to display something else as well."
I had thought about this, but it seems other people have already chosen the screen name "pinksharkmark" and virtually every variation of it I can think of. So that isn't an option for me. As for getting it to display something else as well, do you mean that if I were to get an AIM screen name like "CromulentCat" I could somehow log in to iChat under the AIM account "CromulentCat" yet get iChat to represent me to my Buddies as "PinkSharkMark"? Because I have to admit I don't see how that can be done. It appears as if iChat displays to anyone chatting with you precisely the account name you logged in under and nothing else. So if you logged in using a .Mac account, then you are displayed as "[email protected]" while if you logged in under an AIM account, you are displayed as "CromulentCat". But that's it that's all... there is no way to change CromulentCat to PinkSharkMark.
Thanks very much for taking the time to reply, though. -
Issue on Changing the Payroll Area in Mid of the Month from Biweekly to Mon
Dear Experts,
I have an issue on payroll area which is changing from biweekly to monthly in Mid of the Month.
One employee was retired on 29th of March, so his payroll area was changed from biweekly to monthly on 29th. For retire we are running the payroll on 8th of every month. When we are running payroll for April he has received only 29th and 30th retire salary, by the time he is not yet retired also.
In this case the main problem is monthly payroll time is early then biweekly. so the employee is getting retire salary then his regular pay.
Can you guide me where we can control that monthly payroll area should not be triggered at this movement.
Thanks
ChandraHi Dilek,
If splits will be there definitely there will be two wagetypes but the amounts they'll have will be based on the rates of those periods.
Suppose an employee got payscale increase on 11th of the month, then employee will be paid at the rate of first payscale for first ten days then @ of second payscale on second 20 days.
So there won't be any inconsistency.
Regards,
Tomesh -
Change the Payroll area in mid of the month.
Hi Experts,
Why is it not advisable to change the Payroll area in mid of the month.
Regards,
TomeshHi Dilek,
If splits will be there definitely there will be two wagetypes but the amounts they'll have will be based on the rates of those periods.
Suppose an employee got payscale increase on 11th of the month, then employee will be paid at the rate of first payscale for first ten days then @ of second payscale on second 20 days.
So there won't be any inconsistency.
Regards,
Tomesh -
I just purchased Export PDF, and when I use it, it opens them in WordPad (which I never use) instead of Word. Thus, the pictures are not there, and the fonts are changed. How do I get them imported into Word?
Hi,
I checked your account,your Export PDF subscription is in 'Pending' status.
Once it gets confirmed you will be able to use it.
Please let us know if you require further assistance.
Regards,
Florence -
Line 390 Under the (Insert into SALES_TRADEIN Table)
I need to insert (TradeIn_1_VIN) Values If there is no values in (TradeIn_1_VIN) then i have to insert (TradeIn_2_VIN) values to the (SALES_TRADEIN) Table.
After i run then below script only (TradeIn_2_VIN) values are get inserted in the table. (TradeIn_1_VIN) are not getting loaded in to the table.
I think there is the problem from Line No (404 to 414) Please help me change those particular lines to insert (TradeIn_1_VIN) Values also.If there is no details then (TradeIn_2_VIN) need to be inserted.
-- =============================================
-- Stored Procedure for Flatfile_Sales
-- =============================================
USE [IconicMarketing]
---==========Sales_Cursor
--USE [IconicMarketing]
--GO
DECLARE
@FileType
varchar(50),
@ACDealerID
varchar(50),
@ClientDealerID
varchar(50),
@DMSType
varchar(50),
@DealNumber
varchar(50),
@CustomerNumber
varchar(50),
@CustomerName
varchar(50),
@CustomerFirstName
varchar(50),
@CustomerLastName
varchar(50),
@CustomerAddress
varchar(50),
@CustomerCity
varchar(50),
@CustomerState
varchar(50),
@CustomerZip
varchar(50),
@CustomerCounty
varchar(50),
@CustomerHomePhone
varchar(50),
@CustomerWorkPhone
varchar(50),
@CustomerCellPhone
varchar(50),
@CustomerPagerPhone
varchar(50),
@CustomerEmail
varchar(50),
@CustomerBirthDate
varchar(50),
@MailBlock
varchar(50),
@CoBuyerName
varchar(50),
@CoBuyerFirstName
varchar(50),
@CoBuyerLastName
varchar(50),
@CoBuyerAddress
varchar(50),
@CoBuyerCity
varchar(50),
@CoBuyerState
varchar(50),
@CoBuyerZip
varchar(50),
@CoBuyerCounty
varchar(50),
@CoBuyerHomePhone
varchar(50),
@CoBuyerWorkPhone
varchar(50),
@CoBuyerBirthDate
varchar(50),
@Salesman_1_Number
varchar(50),
@Salesman_1_Name
varchar(50),
@Salesman_2_Number
varchar(50),
@Salesman_2_Name
varchar(50),
@ClosingManagerName
varchar(50),
@ClosingManagerNumber
varchar(50),
@F_AND_I_ManagerNumber
varchar(50),
@F_AND_I_ManagerName
varchar(50),
@SalesManagerNumber
varchar(50),
@SalesManagerName
varchar(50),
@EntryDate
varchar(50),
@DealBookDate
varchar(50),
@VehicleYear
varchar(50),
@VehicleMake
varchar(50),
@VehicleModel
varchar(50),
@VehicleStockNumber
varchar(50),
@VehicleVIN
varchar(50),
@VehicleExteriorColor
varchar(50),
@VehicleInteriorColor
varchar(50),
@VehicleMileage
varchar(50),
@VehicleType
varchar(50),
@InServiceDate
varchar(50),
@HoldBackAmount
varchar(50),
@DealType
varchar(50),
@SaleType
varchar(50),
@BankCode
varchar(50),
@BankName
varchar(50),
@SalesmanCommission
varchar(50),
@GrossProfitSale
varchar(50),
@FinanceReserve
varchar(50),
@CreditLifePremium
varchar(50),
@CreditLifeCommision
varchar(50),
@TotalInsuranceReserve
varchar(50),
@BalloonAmount
varchar(50),
@CashPrice
varchar(50),
@AmountFinanced
varchar(50),
@TotalOfPayments
varchar(50),
@MSRP varchar(50),
@DownPayment
varchar(50),
@SecurityDesposit
varchar(50),
@Rebate
varchar(50),
@Term varchar(50),
@RetailPayment
varchar(50),
@PaymentType
varchar(50),
@RetailFirstPayDate
varchar(50),
@LeaseFirstPayDate
varchar(50),
@DayToFirstPayment
varchar(50),
@LeaseAnnualMiles
varchar(50),
@MileageRate
varchar(50),
@APRRate
varchar(50),
@ResidualAmount
varchar(50),
@LicenseFee
varchar(50),
@RegistrationFee
varchar(50),
@TotalTax
varchar(50),
@ExtendedWarrantyName
varchar(50),
@ExtendedWarrantyTerm
varchar(50),
@ExtendedWarrantyLimitMiles
varchar(50),
@ExtendedWarrantyDollar
varchar(50),
@ExtendedWarrantyProfit
varchar(50),
@FrontGross
varchar(50),
@BackGross
varchar(50),
@TradeIn_1_VIN
varchar(50),
@TradeIn_2_VIN
varchar(50),
@TradeIn_1_Make
varchar(50),
@TradeIn_2_Make
varchar(50),
@TradeIn_1_Model
varchar(50),
@TradeIn_2_Model
varchar(50),
@TradeIn_1_ExteriorColor
varchar(50),
@TradeIn_2_ExteriorColor
varchar(50),
@TradeIn_1_Year
varchar(50),
@TradeIn_2_Year
varchar(50),
@TradeIn_1_Mileage
varchar(50),
@TradeIn_2_Mileage
varchar(50),
@TradeIn_1_Gross
varchar(50),
@TradeIn_2_Gross
varchar(50),
@TradeIn_1_Payoff
varchar(50),
@TradeIn_2_Payoff
varchar(50),
@TradeIn_1_ACV
varchar(50),
@TradeIn_2_ACV
varchar(50),
@Fee_1_Name
varchar(50),
@Fee_1_Fee
varchar(50),
@Fee_1_Commission
varchar(50),
@Fee_2_Name
varchar(50),
@Fee_2_Fee
varchar(50),
@Fee_2_Commission
varchar(50),
@Fee_3_Name
varchar(50),
@Fee_3_Fee
varchar(50),
@Fee_3_Commission
varchar(50),
@Fee_4_Name
varchar(50),
@Fee_4_Fee
varchar(50),
@Fee_4_Commission
varchar(50),
@Fee_5_Name
varchar(50),
@Fee_5_Fee
varchar(50),
@Fee_5_Commission
varchar(50),
@Fee_6_Name
varchar(50),
@Fee_6_Fee
varchar(50),
@Fee_6_Commission
varchar(50),
@Fee_7_Name
varchar(50),
@Fee_7_Fee
varchar(50),
@Fee_7_Commission
varchar(50),
@Fee_8_Name
varchar(50),
@Fee_8_Fee
varchar(50),
@Fee_8_Commission
varchar(50),
@Fee_9_Name
varchar(50),
@Fee_9_Fee
varchar(50),
@Fee_9_Commission
varchar(50),
@Fee_10_Name
varchar(50),
@Fee_10_Fee
varchar(50),
@Fee_10_Commission
varchar(50),
@ContractDate
varchar(50),
@InsuranceName
varchar(50),
@InsuranceAgentName
varchar(50),
@InsuranceAddress
varchar(50),
@InsuranceCity
varchar(50),
@InsuranceState
varchar(50),
@InsuranceZip
varchar(50),
@InsurancePhone
varchar(50),
@InsurancePolicyNumber
varchar(50),
@InsuranceEffectiveDate
varchar(50),
@InsuranceExpirationDate
varchar(50),
@InsuranceCompensationDeduction
varchar(50),
@TradeIn_1_InteriorColor
varchar(50),
@TradeIn_2_InteriorColor
varchar(50),
@PhoneBlock
varchar(50),
@LicensePlateNumber
varchar(50),
@Cost varchar(50),
@InvoiceAmount
varchar(50),
@FinanceCharge
varchar(50),
@TotalPickupPayment
varchar(50),
@TotalAccessories
varchar(50),
@TotalDriveOffAmount
varchar(50),
@EmailBlock
varchar(50),
@ModelDescriptionOfCarSold
varchar(50),
@VehicleClassification
varchar(50),
@ModelNumberOfCarSold
varchar(50),
@GAPPremium
varchar(50),
@LastInstallmentDate
varchar(50),
@CashDeposit
varchar(50),
@AHPremium
varchar(50),
@LeaseRate
varchar(50),
@DealerSelect
varchar(50),
@LeasePayment
varchar(50),
@LeaseNetCapCost
varchar(50),
@LeaseTotalCapReduction
varchar(50),
@DealStatus
varchar(50),
@CustomerSuffix
varchar(50),
@CustomerSalutation
varchar(50),
@CustomerAddress2
varchar(50),
@CustomerMiddleName
varchar(50),
@GlobalOptOut
varchar(50),
@LeaseTerm
varchar(50),
@ExtendedWarrantyFlag
varchar(50),
@Salesman_3_Number
varchar(50),
@Salesman_3_Name
varchar(50),
@Salesman_4_Number
varchar(50),
@Salesman_4_Name
varchar(50),
@Salesman_5_Number
varchar(50),
@Salesman_5_Name
varchar(50),
@Salesman_6_Number
varchar(50),
@Salesman_6_Name
varchar(50),
@APRRate2
varchar(50),
@APRRate3
varchar(50),
@APRRate4
varchar(50),
@Term2
varchar(50),
@SecurityDeposit2
varchar(50),
@DownPayment2
varchar(50),
@TotalOfPayments2
varchar(50),
@BasePayment
varchar(50),
@JournalSaleAmount
varchar(50),
@IndividualBusinessFlag
varchar(50),
@InventoryDate
varchar(50),
@StatusDate
varchar(50),
@ListPrice
varchar(50),
@NetTradeAmount
varchar(50),
@TrimLevel
varchar(50),
@SubTrimLevel
varchar(50),
@BodyDescription
varchar(50),
@BodyDoorCount
varchar(50),
@TransmissionDesc
varchar(50),
@EngineDesc
varchar(50),
@TypeCode
varchar(50),
@SLCT2
varchar(50),
@DealDateOffset
varchar(50),
@AccountingDate
varchar(50),
@CoBuyerCustNum
varchar(50),
@CoBuyerCell
varchar(50),
@CoBuyerEmail
varchar(50),
@CoBuyerSalutation
varchar(50),
@CoBuyerPhoneBlock
varchar(50),
@CoBuyerMailBlock
varchar(50),
@CoBuyerEmailBlock
varchar(50),
@RealBookDate
varchar(50),
@CoBuyerMiddleName
varchar(50),
@CoBuyerCountry
varchar(50),
@CoBuyerAddress2
varchar(50),
@CoBuyerOptOut
varchar(50),
@CoBuyerOccupation
varchar(50),
@CoBuyerEmployer
varchar(50),
@Country
varchar(50),
@Occupation
varchar(50),
@Employer
varchar(50),
@Salesman2Commission
varchar(50),
@BankAddress
varchar(50),
@BankCity
varchar(50),
@BankState
varchar(50),
@BankZip
varchar(50),
@LeaseEstimatedMiles
varchar(50),
@AFTReserve
varchar(50),
@CreditLifePrem
varchar(50),
@CreditLifeRes
varchar(50),
@AHRes
varchar(50),
@Language
varchar(50),
@BuyRate
varchar(50),
@DMVAmount
varchar(50),
@Weight
varchar(50),
@StateDMVTotFee
varchar(50),
@ROSNumber
varchar(50),
@Incentives
varchar(50),
@CASS_STD_LINE1
varchar(50),
@CASS_STD_LINE2
varchar(50),
@CASS_STD_CITY
varchar(50),
@CASS_STD_STATE
varchar(50),
@CASS_STD_ZIP
varchar(50),
@CASS_STD_ZIP4
varchar(50),
@CASS_STD_DPBC
varchar(50),
@CASS_STD_CHKDGT
varchar(50),
@CASS_STD_CART
varchar(50),
@CASS_STD_LOT
varchar(50),
@CASS_STD_LOTORD
varchar(50),
@CASS_STD_URB
varchar(50),
@CASS_STD_FIPS
varchar(50),
@CASS_STD_EWS
varchar(50),
@CASS_STD_LACS
varchar(50),
@CASS_STD_ZIPMOV
varchar(50),
@CASS_STD_Z4LOM
varchar(50),
@CASS_STD_NDIAPT
varchar(50),
@CASS_STD_NDIRR
varchar(50),
@CASS_STD_LACSRT
varchar(50),
@CASS_STD_ERROR_CD
varchar(50),
@NCOA_AC_ID
varchar(50),
@NCOA_COA_ADDSRC
varchar(50),
@NCOA_COA_MATCH
varchar(50),
@NCOA_COA_MOVTYP
varchar(50),
@NCOA_COA_DATE
varchar(50),
@NCOA_COA_DELCD
varchar(50),
@NCOA_COA_RTYPE
varchar(50),
@NCOA_COA_RTNCD
varchar(50),
@NCOA_COA_LINE1
varchar(50),
@NCOA_COA_LINE2
varchar(50),
@NCOA_COA_CITY
varchar(50),
@NCOA_COA_STATE
varchar(50),
@NCOA_COA_ZIP
varchar(50),
@NCOA_COA_ZIP4
varchar(50),
@NCOA_COA_DPBC
varchar(50),
@NCOA_COA_CHKDGT
varchar(50),
@NCOA_COA_CART
varchar(50),
@NCOA_COA_LOT
varchar(50),
@NCOA_COA_LOTORD
varchar(50),
@NCOA_COA_URB
varchar(50),
@NCOA_COA_Z4LOM
varchar(50),
@NCOA_COA_ACTION
varchar(50),
@NCOA_COA_QNAME
varchar(50),
@NCOA_DPV_AA
varchar(50),
@NCOA_DPV_A1
varchar(50),
@NCOA_DPV_BB
varchar(50),
@NCOA_DPV_CC
varchar(50),
@NCOA_DPV_M1
varchar(50),
@NCOA_DPV_M3
varchar(50),
@NCOA_DPV_N1
varchar(50),
@NCOA_DPV_P1
varchar(50),
@NCOA_DPV_P3
varchar(50),
@NCOA_DPV_RR
varchar(50),
@NCOA_DPV_R1
varchar(50),
@NCOA_DPV_STATUS
varchar(50),
@NCOA_DPV_F1
varchar(50),
@NCOA_DPV_G1
varchar(50),
@NCOA_DPV_U1
varchar(50),
@myerror
varchar(500),
@SalesID
int,
@errornumber int,
@errorseverity varchar(500),
@errorstate int,
@errorprocedure varchar(500),
@errorline varchar(50),
@errormessage varchar(1000);
DECLARE Sales_Cursor CURSOR FOR
SELECT * from FLATFILE_SALES;
OPEN Sales_Cursor;
:r C:\Clients\BlackBook\BlackBookMarketing\Bharath\LOG_SALES_INSERT.sql
WHILE @@FETCH_STATUS = 0
BEGIN
PRINT @VehicleVIN ;
--===============================================================================
-- ****************** insert into Sales Table ***********
BEGIN TRY
INSERT INTO Sales
IconicDealerID,
DealNumber,
CustomerNumber,
DMSType,
ContractDate
VALUES (@ClientDealerID,@DealNumber,@CustomerNumber,@DMSType,@ContractDate);
END TRY
BEGIN CATCH
SELECT
@errornumber = ERROR_NUMBER()
,@errorseverity = ERROR_SEVERITY()
,@errorstate = ERROR_STATE()
,@errorprocedure = ERROR_PROCEDURE()
,@errorline = ERROR_LINE()
,@errormessage = ERROR_MESSAGE();
:r C:\Clients\BlackBook\BlackBookMarketing\Bharath\LOG_SALES_INSERT.sql
@errornumber ,
@errorseverity ,
@errorstate,
@errorprocedure,
@errorline,
@errormessage);
END CATCH
PRINT @errornumber;
PRINT @errorseverity;
PRINT @errorprocedure;
PRINT @errorline;
PRINT @errormessage;
PRINT @errorstate;
set @myerror = @@ERROR;
-- This PRINT statement prints 'Error = 0' because
-- @@ERROR is reset in the IF statement above.
PRINT N'Error = ' + @myerror;
set @SalesID = scope_identity();
PRINT @SalesID;
--================================================================================
--Insert into SALES_TRADEIN Table
BEGIN TRY
INSERT INTO SALES_TRADEIN
SalesID,
TradeIn_VIN,
TradeIn_Make,
TradeIn_Model,
TradeIn_ExteriorColor,
TradeIn_Year,
TradeIn_Mileage,
TradeIn_Gross,
TradeIn_Payoff,
TradeIn_ACV,
TradeIn_InteriorColor
VALUES
@SalesID,
case when @TradeIn_1_VIN is not null then @TradeIn_2_VIN end,
case when @TradeIn_1_Make is not null then @TradeIn_2_Make end,
case when @TradeIn_1_Model is not null then @TradeIn_2_Model end,
case when @TradeIn_1_ExteriorColor is not null then @TradeIn_2_ExteriorColor end,
case when @TradeIn_1_Year is not null then @TradeIn_2_Year end,
case when @TradeIn_1_Mileage is not null then @TradeIn_2_Mileage end,
case when @TradeIn_1_Gross is not null then @TradeIn_2_Gross end,
case when @TradeIn_1_Payoff is not null then @TradeIn_2_Payoff end,
case when @TradeIn_1_ACV is not null then @TradeIn_2_ACV end,
case when @TradeIn_1_InteriorColor is not null then @TradeIn_2_InteriorColor end
END TRY
BEGIN CATCH
SELECT
@errornumber = ERROR_NUMBER()
,@errorseverity = ERROR_SEVERITY()
,@errorstate = ERROR_STATE()
,@errorprocedure = ERROR_PROCEDURE()
,@errorline = ERROR_LINE()
,@errormessage = ERROR_MESSAGE();
:r C:\Clients\BlackBook\BlackBookMarketing\Bharath\LOG_SALES_INSERT.sql
END CATCHThis is what I've understood from your question. You want to replace @TradeIn_2_VIN value if @TradeIn_1_VIN
is NULL, else the value of @TradeIn_1_VIN.
If this is the requirement then, your CASE statement is missing ELSE part. You can re-write this as below
case when @TradeIn_1_VIN is null then @TradeIn_2_VIN
ELSE @TradeIn_1_VIN end,
or simply you can replace the CASE statement with the below
COALESCE function,
COALESCE(@TradeIn_1_VIN, @TradeIn_2_VIN),
Krishnakumar S -
How can I change the precision of a numeric array indicator using property nodes ?
I want to change the precision of a numeric array indicator programatically using property nodes. I tried to see all the array properties but I couldn't find it. URGENT !!!
If you want to change the precision of an element in an array you must first get the reference to the array element. Then raise the reference to the more specific class of a digital numeric. Use a property node connected to that reference to set the precision. See the attached vi for an example.
Brian
Attachments:
ArrayElementPrec.vi 27 KB -
my iWork (pages and keynote) are not communicating with the iCloud. I haven't changed anything and all of the sudden there is no sync happening. My iCloud account is fine as i can create documents on my iPad and they appear on iCloud. However, when i change documents on my mac (documents that are supposed to be in the iCloud), the changes do not sync with my other devices nor with iCloud. Even when i create new documents on my mac and save them to iCloud, all seems okay and i can access them from my mac, however they do not show up in the iCloud and i can't access them with my other devices.
Most recent version of mountain lion updated over a month ago. New iPad in use for over a month.
thanksThe same thing is happening to me, Mail was fine about an hour ago and now is rejecting correct password. Typical when today I'm waiting some important emails!
-
I created my iTunes account when I was living in Venezuela, but have relocated to the US now. How do I change my apple store to allow me to download apps that are not available in the store available to Venezuela?
Sorry for the long 'subject'! hahaha I am new to the community. This should be fun!No, What I mean is, Now I am leaving in USA but every time that I tried to download an app only appear app available in Venezuela no the one available in USA.
I already change my address and select USA but still I can not download app for USA
Maybe you are looking for
-
How to create a excel file which will open in every version of MS Office?
For excel file handling we are using Measurement Studio 8.0 for VS .NET 2003. Now we are save the excel file into.xls file using this format "CNiExcelWorkbook::FileFormatExcel9795" . it will save the file. Now the problem is If that PC has MS Office
-
Just installed a Seagate HDD/SSD on a 2007 Macbook and get an i/o error when I try to erase
Install discs won't work. Cant find app to boot os x from a usb drive please advise...
-
How to set application access type for list of users
Hi everybody, I've an requirement to automise the application access type setting in shared services. When i searhed to do with MaxL scripts.I'm able to set the application access type for a single user using alter user 'username' add application acc
-
IPS(ASA moduel) signature upgrade cause users lost connectivity to outside
Hi All: need you adivse. i have two ASA running A/S mode, both ASA have ASA-SSM-AIP-20-K9 inside with fail-open option and identical configuration /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0;
-
Where do I find information on supported cameras in aperture
I just received a lumix 200 super zoom point-and-shoot. Can't open RAW in aperture. Is there a listing of supported cameras somewhere?