System variables not showing correctly in body pages
Can anyone help with a problem I'm having with system variables please?
I have created a template and multiple documents which all use a system variable for placing the chapter number and page number in the footer: <$chapnum>-<$curpagenum>
I have just created a new document and want to use the same variable on the main pages of the document but I want to use a different page number variable on the TOC. For some reason now, when I create a new variable of <$curpagenum> it doesn't show correctly on the document; it's showing as: <$curpagenum
I've also tried using the format of <$chapnum>-<$curpagenum> that has worked on other documents but now this shows in the document footer as: <$chapnum<$curpagenum
Has anyone seen this problem before?
Thanks
Hi Art, thanks for the reply.
In my original documents I'd edited the Current Page system variable from <$curpagenum> to <$chapnum>-<$curpagenum>. This worked correctly.
In the new document I tried both the picking-and-clicking method and typing the string to get the same footer but neither worked.
I've now changed it as you suggested, selecting the two seperate system variables of <$chapnum> and then <$curpagenum> and this seems to have solved the problem.
I'll know to keep things simple in future!
Thanks.
Similar Messages
-
BEx variables not showing correct order despite ordering at query level
Dear Experts,
I am using a workbook with 2 queries sharing same variables.
The Queries variable order for display in the popup screen has been re-arranged at Query designer level (query properties > variable sequence). Regenerated queries. Relogin to BEx . Re-run workbook. Same old order.
Please advise what could be the cause. I am also wondering if this is due to personalisation.
regards
BassHi Bass,
You mentioned workbook.
If the query itself also has this problem, it can be a bug as SAP Note 1568815.
Symptom
The sequence of the variables in the variable screen is lost.
You may implement the correction of this note via transaction SNOTE if the SP of your system fits.
After that, you need to regenerate the query in RSRT.
Regards,
Patricia -
BO 3.1 WEBI Time format variable not showing correctly
Hi,
I apologise in advance. I know this topic has been covered many times in previous forums but I have been through each and I am still encountering an issue.
My requirement is to convert x number of seconds into a HH:MM:SS time format for both positive and negative numbers in WEBI.
I found a formula on a forum here that suggest using the following code:
=FormatNumber(Floor([Column_Name]/3600) ;"0") + ":" + FormatNumber(Floor(Mod([Column_Name];3600)/60);"00") + ":" + FormatNumber(Mod(Mod([Column_Name] ;3600) ;60) ;"00")
I have used this code and when I give the code an input of -720 seconds it outputs in the format -1:-12:00.
It is quite frustrating I cannot get this to the correct format, can anyone suggest what is wrong with this formula?
I am using WEBI for creating the formula on BO 3.1.
Kind Regards,,
JohnHi,
Let me try.
This is your formula.
=FormatNumber(Floor([Column_Name]/3600) ;"0") + ":" + FormatNumber(Floor(Mod([Column_Name];3600)/60);"00") + ":" + FormatNumber(Mod(Mod([Column_Name] ;3600) ;60) ;"00")
Issue with this formula is only when you have used negative seconds.I have break the formula =FormatNumber(Floor([Column_Name]/3600) ;"0") and found this is giving the wrong result.If you divide -720/3600 you will get 0.2 and nearest integer is 0 but in this case 1 is coming.
Same time it is working properly with 720 and the result will be 0.
In this case i have created one variable which convert the negative values to positive.If you enter -720 then it will convert 720 and you will get the 0 from first part.
=If([Column_Name]<0) Then ([Column_Name]*-1) Else [Column_Name]
Second part is if you entered the negative values then output should be in the negative.but with above condition you will get the positive values.
Again i have created the formula If([Column_Name]<>[Column]) Then "- which compare the object values and see if I have changed anything.
Like i have entered -720 so first variable will convert to 720 then in next formula it will check -720 is not equal to 720 (Which is not) then add - (minus sign) and same calculation else part if is equal then use the same formula which you have put.
Hope this is clear to you.
Regards,
Amit -
Table not showing correctly on following pages
Hi all,
I have a expandable table in the Adobe form. It is not getting extended to the next page as the page break is not happening. Also how can I make sure that the headings also go to the following page for the Table. I have the structure as follows :
One page, one sub form having all the Fields and Table. Do I need to modify the structure or any other property.
Thanks,
FShi,
In subform you have to mentioned as "FLOWED"...
Thanks,
Arun. -
Fonts not showing correctly only when on my account page on app store
fonts not showing correctly only when on my account page on app store
Firstly, make sure that your device is not hidden (left hand pane). If it just reads device then toggle between SHOW and HIDE.
Secondly, try all the other ports on your computer, even a number of times.
Thirdly, if you have another computer try plugging your device into it without taking any action, give it a moment, remove it and try it back in your other computer again.
Failing all that, see here - http://support.apple.com/kb/TS1538 for Windows and http://support.apple.com/kb/TS1591 for Macs
And failing all that put the device into Recovery mode. See here and note the paragraph 'If you restore from a different computer.... ' down near the bottom of the page -
http://www.apple.com/support/ipad/assistant/itunes/ -
I am using firefox 24.0 and my facebook page is not showing correctly
in my pc facebook webpage is not showing correctly but i have tried in another pc at there my fb page is showing correctly
Hello,
Many site issues can be caused by corrupt cookies or cache. In order to try to fix these problems, the first step is to clear both cookies and the cache.
Note: ''This will temporarily log you out of all sites you're logged in to.''
To clear cache and cookies do the following:
#Go to Firefox > History > Clear recent history or (if no Firefox button is shown) go to Tools > Clear recent history.
#Under "Time range to clear", select "Everything".
#Now, click the arrow next to Details to toggle the Details list active.
#From the details list, check ''Cache'' and ''Cookies'' and uncheck everything else.
#Now click the ''Clear now'' button.
Further information can be found in the [[Clear your cache, history and other personal information in Firefox]] article.
Did this fix your problems? Please report back to us!
Thank you. -
Text Variable not showing headers in Formula
I have text variable in my report when I use in Formula its not working.Its a replacement path and if I used in normal col its showing header correctly.
Any ideas guru's
Thanks in Advance!
AndyAs I mentioned when I use in Formula to add up these text variables header is not showing.
EG: &ZP_FPTA& &ZP_FPTB& &ZP_IPVERS& this is in one col and there is another Variable like this I am adding up in Formula ,Addition is working but header is not showing correct
It shows as Tech name of variable only not picking up description from Variables..
hope this is clear..
Andy -
Search Box is not showing in custom master page
Hi
I am using "Office 365 Enterprise E3 Trial"
and have created a custom master page for my public SharePoint
site .
I have added Search snippet from the snippet gallery but the search
box is not showing in the master page .I am not able to find the reasons .My Master page code is like bellow
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"[]>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:mso="urn:schemas-microsoft-com:office:office" xmlns:msdt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=10" xmlns="" />
<!--CS: Start Page Head Contents Snippet-->
<!--SPM:<%@Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"%>-->
<!--SPM:<%@Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"%>-->
<!--SID:00 -->
<meta name="GENERATOR" content="Microsoft SharePoint" xmlns="" />
<meta http-equiv="Content-type" content="text/html; charset=utf-8" xmlns="" />
<meta http-equiv="Expires" content="0" xmlns="" />
<!--MS:<SharePoint:RobotsMetaTag runat="server">-->
<!--ME:</SharePoint:RobotsMetaTag>-->
<!--MS:<SharePoint:PageTitle runat="server">-->
<!--MS:<asp:ContentPlaceHolder id="PlaceHolderPageTitle" runat="server">-->
<!--MS:<SharePoint:ProjectProperty Property="Title" runat="server">-->
<!--ME:</SharePoint:ProjectProperty>-->
<!--ME:</asp:ContentPlaceHolder>-->
<!--ME:</SharePoint:PageTitle>-->
<!--MS:<SharePoint:StartScript runat="server">-->
<!--ME:</SharePoint:StartScript>-->
<!--MS:<SharePoint:CssLink runat="server" Version="15">-->
<!--ME:</SharePoint:CssLink>-->
<!--MS:<SharePoint:CacheManifestLink runat="server">-->
<!--ME:</SharePoint:CacheManifestLink>-->
<!--MS:<SharePoint:PageRenderMode runat="server" RenderModeType="Standard">-->
<!--ME:</SharePoint:PageRenderMode>-->
<!--MS:<SharePoint:ScriptLink language="javascript" name="core.js" OnDemand="true" runat="server" Localizable="false">-->
<!--ME:</SharePoint:ScriptLink>-->
<!--MS:<SharePoint:ScriptLink language="javascript" name="menu.js" OnDemand="true" runat="server" Localizable="false">-->
<!--ME:</SharePoint:ScriptLink>-->
<!--MS:<SharePoint:ScriptLink language="javascript" name="callout.js" OnDemand="true" runat="server" Localizable="false">-->
<!--ME:</SharePoint:ScriptLink>-->
<!--MS:<SharePoint:ScriptLink language="javascript" name="sharing.js" OnDemand="true" runat="server" Localizable="false">-->
<!--ME:</SharePoint:ScriptLink>-->
<!--MS:<SharePoint:ScriptLink language="javascript" name="suitelinks.js" OnDemand="true" runat="server" Localizable="false">-->
<!--ME:</SharePoint:ScriptLink>-->
<!--MS:<SharePoint:CustomJSUrl runat="server">-->
<!--ME:</SharePoint:CustomJSUrl>-->
<!--MS:<SharePoint:SoapDiscoveryLink runat="server">-->
<!--ME:</SharePoint:SoapDiscoveryLink>-->
<!--MS:<SharePoint:AjaxDelta id="DeltaPlaceHolderAdditionalPageHead" Container="false" runat="server">-->
<!--MS:<asp:ContentPlaceHolder id="PlaceHolderAdditionalPageHead" runat="server">-->
<!--ME:</asp:ContentPlaceHolder>-->
<!--MS:<SharePoint:DelegateControl runat="server" ControlId="AdditionalPageHead" AllowMultipleControls="true">-->
<!--ME:</SharePoint:DelegateControl>-->
<!--MS:<asp:ContentPlaceHolder id="PlaceHolderBodyAreaClass" runat="server">-->
<!--ME:</asp:ContentPlaceHolder>-->
<!--ME:</SharePoint:AjaxDelta>-->
<!--MS:<SharePoint:CssRegistration Name="Themable/corev15.css" runat="server">-->
<!--ME:</SharePoint:CssRegistration>-->
<!--MS:<SharePoint:AjaxDelta id="DeltaSPWebPartManager" runat="server">-->
<!--MS:<WebPartPages:SPWebPartManager runat="server">-->
<!--ME:</WebPartPages:SPWebPartManager>-->
<!--ME:</SharePoint:AjaxDelta>-->
<!--CE: End Page Head Contents Snippet-->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!--DC:Two Tomorrows-->
<link href="style1.css" rel="stylesheet" type="text/css" />
<link href="slider.css" rel="stylesheet" type="text/css" />
<!-- JS -->
<!-- <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js">//<![CDATA[!-->
<script type="text/javascript" src="https://purplechannelltd-public.sharepoint.com/_catalogs/masterpage/DNV/js/jquery-1.10.2.min.js">//<![CDATA[
//]]>
</script>
<script type="text/javascript" src="js/custom.js">//<![CDATA[
//]]>
</script>
<script type="text/javascript" src="js/bjqs-1.3.min.js">//<![CDATA[
//]]>
</script>
<script type="text/javascript" src="/Documents/clients_hover.js">//<![CDATA[
//]]>
</script>
<script type="text/javascript" src="/Documents/jquery.backgroundSize.js">//<![CDATA[
//]]>
</script>
<script type="text/javascript" class="secret-source">//<![CDATA[
jQuery(document).ready(function($) {
$('#banner-fade').bjqs({
width : 1600,
height : 377,
responsive : true
//]]>
</script>
<script type="text/javascript">//<![CDATA[
$(document).ready(function () {
if((window.location.href=="https://purplechannelltd-public.sharepoint.com/")||(window.location.href=="http://purplechannelltd-public.sharepoint.com/")||(window.location.href=="http://purplechannelltd-public.sharepoint.com/Pages/default.aspx")||(window.location.href=="https://purplechannelltd-public.sharepoint.com/Pages/default.aspx")
$("#banner-fade").removeAttr("style");
$("#BannerLine").removeAttr("style");
$("#trBreadCrumb").css("display","none");
$("#trNewsAndTraningHome").removeAttr("style");
$("#trNewsOnly").css("display","none");
else
$("#banner-fade").css("display","none");
$("#BannerLine").css("display","none");
$("#trBreadCrumb").removeAttr("style");
$("#trNewsAndTraningHome").css("display","none");
$("#trNewsOnly").removeAttr("style");
if((window.location.href=="http://purplechannelltd-public.sharepoint.com/Pages/Services.aspx")||(window.location.href=="http://purplechannelltd-public.sharepoint.com/Pages/Key-issues.aspx")||(window.location.href=="http://purplechannelltd-public.sharepoint.com/Pages/Industries.aspx")||(window.location.href=="http://purplechannelltd-public.sharepoint.com/Pages/Clients.aspx")||(window.location.href=="http://purplechannelltd-public.sharepoint.com/Pages/About-us.aspx")
||(window.location.href=="http://purplechannelltd-public.sharepoint.com/Pages/walking-the-talk.aspx")||(window.location.href=="http://purplechannelltd-public.sharepoint.com/Pages/what-is-sustainability.aspx")||(window.location.href=="http://purplechannelltd-public.sharepoint.com/Pages/our-team.aspx")||(window.location.href=="http://purplechannelltd-public.sharepoint.com/Pages/assurance-code-of-conduct.aspx")
||(window.location.href=="http://purplechannelltd-public.sharepoint.com/Pages/Contact-us-EMEA.aspx")||(window.location.href=="http://purplechannelltd-public.sharepoint.com/Pages/Contact-us-asia-pacific.aspx")||(window.location.href=="http://purplechannelltd-public.sharepoint.com/Pages/Contact-us-Americas.aspx")){
$("#banner-fade").css("display","none");
$("#BannerLine").css("display","none");
$("#trBreadCrumb").css("display","none");
$("#trNewsAndTraningHome").removeAttr("style");
$("#trNewsOnly").css("display","none");
if (window.location.href.indexOf("dnv-gl-launches-new-global-brand") >= 0 ||window.location.href.indexOf("how-future-proof-your-business") >= 0||window.location.href.indexOf("human-rights-time-walk-talk") >= 0 )
$("#trNewsOnly").css("display","none");
if($("#trNewsOnly").html().indexOf("Web Part Error:")>0)
$("#trNewsOnly").css("display","none");
if($("#trBreadCrumb").html().indexOf("Web Part Error:")>0)
$("#trBreadCrumb").css("display","none");
//]]>
</script>
<!--[if gte mso 9]><xml>
<mso:CustomDocumentProperties>
<mso:ContentTypeId msdt:dt="string">0x0101000F1C8B9E0EB4BE489F09807B2C53288F0054AD6EF48B9F7B45A142F8173F171BD10003D357F861E29844953D5CAA1D4D8A3A</mso:ContentTypeId>
<mso:HtmlDesignAssociated msdt:dt="string">1</mso:HtmlDesignAssociated>
<mso:HtmlDesignFromMaster msdt:dt="string"></mso:HtmlDesignFromMaster>
<mso:HtmlDesignStatusAndPreview msdt:dt="string">https://purplechannelltd-public.sharepoint.com/_catalogs/masterpage/DNV/TT.html, Conversion successful.</mso:HtmlDesignStatusAndPreview>
<mso:HtmlDesignConversionSucceeded msdt:dt="string">True</mso:HtmlDesignConversionSucceeded>
</mso:CustomDocumentProperties>
</xml><![endif]-->
</head>
<body>
<!--CS: Start Ribbon Snippet-->
<!--SPM:<%@Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"%>-->
<!--SPM:<%@Register Tagprefix="wssucw" TagName="Welcome" Src="~/_controltemplates/15/Welcome.ascx"%>-->
<!--MS:<SharePoint:SPSecurityTrimmedControl runat="server" HideFromSearchCrawler="true" EmitDiv="true">-->
<div id="TurnOnAccessibility" style="display:none" class="s4-notdlg noindex" xmlns="">
<a id="linkTurnOnAcc" href="#" class="ms-accessible ms-acc-button" onclick="SetIsAccessibilityFeatureEnabled(true);UpdateAccessibilityUI();document.getElementById('linkTurnOffAcc').focus();return false;">
<!--MS:<SharePoint:EncodedLiteral runat="server" text="<%$Resources:wss,master_turnonaccessibility%>" EncodeMethod="HtmlEncode">-->
<!--ME:</SharePoint:EncodedLiteral>-->
</a>
</div>
<div id="TurnOffAccessibility" style="display:none" class="s4-notdlg noindex" xmlns="">
<a id="linkTurnOffAcc" href="#" class="ms-accessible ms-acc-button" onclick="SetIsAccessibilityFeatureEnabled(false);UpdateAccessibilityUI();document.getElementById('linkTurnOnAcc').focus();return false;">
<!--MS:<SharePoint:EncodedLiteral runat="server" text="<%$Resources:wss,master_turnoffaccessibility%>" EncodeMethod="HtmlEncode">-->
<!--ME:</SharePoint:EncodedLiteral>-->
</a>
</div>
<!--ME:</SharePoint:SPSecurityTrimmedControl>-->
<div id="ms-designer-ribbon" xmlns="">
<!--SID:02 {Ribbon}-->
<!--PS: Start of READ-ONLY PREVIEW (do not modify) --><div class="DefaultContentBlock" style="background:rgb(0, 114, 198); color:white; width:100%; padding:8px; height:64px; overflow:hidden;">The SharePoint
ribbon will be here when your file is either previewed on or applied to your site.</div><!--PE: End of READ-ONLY PREVIEW -->
</div>
<div id="s4-workspace" xmlns="">
<div id="s4-bodyContainer">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" xmlns="http://www.w3.org/1999/xhtml">
<tr>
<td align="left" valign="top" class="headerLeft">
</td>
<td width="886" align="left" valign="top">
<div class="header">
<a href="https://purplechannelltd-public.sharepoint.com/">
<img src="images/logo.gif" width="189" height="109" alt="Logo" />
</a>
<h1>Sustainability Advisory Services
</h1>
<ul id="topNav">
<li>
<a href="http://purplechannelltd-public.sharepoint.com/Pages/About-us.aspx">About us
</a>
</li>
<li>
<a href="https://purplechannelltd-public.sharepoint.com/Pages/News.aspx">News
</a>
</li>
<li>
<a href="http://purplechannelltd-public.sharepoint.com/Pages/Contact-us.aspx">Contact us
</a>
</li>
</ul>
<!-- top nav -->
<div style="right: 0px; ; color: rgb(0, 51, 153); font-weight: bold; top: 25px;">
BUSINESS ASSURANCE
</div>
<!-- twitter -->
<div class="twitterSec">RT @damidefelice: @edgeoftheocean Anna Turrel shows how @TwoTomorrows assesses corporate human right
</div>
<!-- twitter -->
<!-- search -->
<!--<form action="" method="get" id="search">
<input name="" type="text" class="searchText"/>
<input name="" type="image" src="images/search-icon.gif"/>
</form>!-->
<!-- search -->
<!--ADD!-->
<div id="search">
<div data-name="SearchBox">
<!--CS: Start Search Box Snippet-->
<!--SPM:<%@Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint,
Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"%>-->
<!--MS:<SharePoint:DelegateControl runat="server" ControlId="SmallSearchInputBox">-->
<!--PS: Start of READ-ONLY PREVIEW (do not modify)--><div class="ms-webpart-chrome ms-webpart-chrome-fullWidth
"><div WebPartID="00000000-0000-0000-0000-000000000000" HasPers="true" id="WebPart" width="100%" class="ms-WPBody noindex " OnlyForMePart="true" allowDelete="false" style=""><div componentid="ctl00_SmallSearchInputBox_csr" id="ctl00_SmallSearchInputBox_csr"><div
id="SearchBox" name="Control"><div class="ms-srch-sb ms-srch-sb-border" id="ctl00_SmallSearchInputBox_csr_sboxdiv"><input type="text" value="Search..." maxlength="2048" accessKey="S" title="Search..." id="ctl00_SmallSearchInputBox_csr_sbox" autocomplete="off"
autocorrect="off" onkeypress="EnsureScriptFunc('Search.ClientControls.js', 'Srch.U', function() {if (Srch.U.isEnterKey(String.fromCharCode(event.keyCode))) {$find('ctl00_SmallSearchInputBox_csr').search($get('ctl00_SmallSearchInputBox_csr_sbox').value);return
Srch.U.cancelEvent(event);}})" onkeydown="EnsureScriptFunc('Search.ClientControls.js', 'Srch.U', function() {var ctl = $find('ctl00_SmallSearchInputBox_csr');ctl.activateDefaultQuerySuggestionBehavior();})" onfocus="EnsureScriptFunc('Search.ClientControls.js',
'Srch.U', function() {var ctl = $find('ctl00_SmallSearchInputBox_csr');ctl.hidePrompt();ctl.setBorder(true);})" onblur="EnsureScriptFunc('Search.ClientControls.js', 'Srch.U', function() {var ctl = $find('ctl00_SmallSearchInputBox_csr'); if (ctl){ ctl.showPrompt();
ctl.setBorder(false);}})" class="ms-textSmall ms-srch-sb-prompt ms-helperText" ><a title="Search" class="ms-srch-sb-searchLink" id="ctl00_SmallSearchInputBox_csr_SearchLink" onclick="EnsureScriptFunc('Search.ClientControls.js', 'Srch.U', function() {$find('ctl00_SmallSearchInputBox_csr').search($get('ctl00_SmallSearchInputBox_csr_sbox').value);})"
href="javascript: {}"><img src="https://purplechannelltd-public.sharepoint.com/_catalogs/theme/Themed/E97CFE0A/searchresultui-61174269.themedpng?ctag=7" class="ms-srch-sb-searchImg" id="searchImg" alt="Search" ></a></div></div></div><noscript><div
id="ctl00_SmallSearchInputBox_noscript">It looks like your browser does not have JavaScript enabled. Please turn on JavaScript and try again.</div></noscript><div id="ctl00_SmallSearchInputBox"></div><div class="ms-clear"></div></div></div><!--PE:
End of READ-ONLY PREVIEW-->
<!--ME:</SharePoint:DelegateControl>-->
<!--CE: End Search Box Snippet-->
</div>
</div>
<!--ADDEND!-->
</div>
</td> -
Not showing correct output when parsing the date
//WAP the gives the details of employees
import java.io.*;
import java.util.*;
import java.text.Format;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
class employee
private String nm,curr_dt;
private Date dob,doj;
private int salary;
employee()
nm="\0";
dob=null;
doj=null;
curr_dt=null;
salary=0;
void getdata()throws IOException
String dt;
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
//we can create date with these 3 type of objects
Format fm=new SimpleDateFormat("dd-mm-yyyy");
DateFormat df=new SimpleDateFormat("dd-mm-yyyy");
//object of base class are type compatible with the object of derived class
SimpleDateFormat sdf=new SimpleDateFormat("dd-mm-yyyy");
System.out.print("\nEnter the name of Employee : ");
nm=br.readLine();
try{
System.out.print("\nEnter the date of birth of Employee : ");
dt=br.readLine();
dob=(Date)fm.parseObject(dt);
System.out.print("\nEnter the date of joining of Employee : ");
dt=br.readLine();
doj=df.parse(dt);
}catch(ParseException e){
Date d=new Date();
curr_dt=sdf.format(d);
System.out.print("\nEnter the salary of employee : ");
salary=Integer.parseInt(br.readLine());
void putdata()
System.out.println("\n\n\nEmployee Name : "+nm);
System.out.println("\nDate of birth : "+dob);
System.out.println("\nDate of joining : "+doj);
System.out.println("\nCurrent date : "+curr_dt);
/*if((doj-curr_dt)>1)
salary+=3000;
System.out.println("\nSalary of Employee : "+salary);
class emp
public static void main(String str[])throws IOException
employee emp[]=new employee[1];
System.out.println("\nEnter the detail of employees \n\n");
for(int i=0;i<1;i++)
emp=new employee();
emp[i].getdata();
System.out.println("\n\nDetail of employees are\n\n");
for(int i=0;i<1;i++)
emp[i].putdata();
}*Output:*
Enter the detail of employees
Enter the name of Employee : Rajendra Sharma
Enter the date of birth of Employee : 10-10-1979
Enter the date of joining of Employee : 05-09-2004
Enter the salary of employee : 2000
*it is not showing date in the "dd-mm-yyyy" format and not showing correct month as well*
Detail of employees are
Employee Name : Rajendra Sharma
Date of birth : Wed Jan 10 00:10:00 IST 1979
Date of joining : Mon Jan 05 00:09:00 IST 2004
Current date : 17-08-2008
Salary of Employee : 2000Hi,
Use below code that will help u to sort ur problem.
import java.io.*;
import java.util.*;
import java.text.Format;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
class employee
private String nm,curr_dt;
private Date dob,doj;
private int salary;
private String dobb,dojj;
employee()
nm="\0";
dob=null;
doj=null;
curr_dt=null;
salary=0;
void getdata()throws IOException
String dt;
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
//we can create date with these 3 type of objects
DateFormat fm=new SimpleDateFormat("dd-mm-yyyy");
DateFormat df=new SimpleDateFormat("dd-mm-yyyy");
//object of base class are type compatible with the object of derived class
SimpleDateFormat sdf=new SimpleDateFormat("dd-mm-yyyy");
System.out.print("\nEnter the name of Employee : ");
nm=br.readLine();
try{
System.out.print("\nEnter the date of birth of Employee : ");
dt=br.readLine();
dob=(Date)fm.parseObject(dt);
dobb= fm.format(dob);
System.out.print("\nEnter the date of joining of Employee : ");
dt=br.readLine();
doj=df.parse(dt);
dojj = df.format(doj);
}catch(ParseException e){
Date d=new Date();
curr_dt=sdf.format(d);
System.out.print("\nEnter the salary of employee : ");
salary=Integer.parseInt(br.readLine());
void putdata()
System.out.println("\n\n\nEmployee Name : "+nm);
System.out.println("\nDate of birth : "+dobb);
System.out.println("\nDate of joining : "+dojj);
System.out.println("\nCurrent date : "+curr_dt);
/*if((doj-curr_dt)>1)
salary+=3000;
System.out.println("\nSalary of Employee : "+salary);
class emp
public static void main(String str[])throws IOException
employee emp[]=new employee[1];
System.out.println("\nEnter the detail of employees \n\n");
for(int i=0;i<1;i++)
emp=new employee();
emp[i].getdata();
System.out.println("\n\nDetail of employees are\n\n");
for(int i=0;i<1;i++)
emp[i].putdata();
thanks,
prabhu selvakumar. -
The web site of Adobe does not show correctly in FireFox
I have a bizarre problem. The site of Adobe (including where I can download the flash player) does not show correctly in FireFox and I only see it as a text HTML page, but without most images (typically, for instance, I do not see the image "Download now" but see a text line "Dowload now", and so on...
This seems to specifically affect the Adobe web site as I have no problme for other web sites (so far).
It is something specific to FireFox as I do have the problem with Internet Explorer.
The problem persis even if I restart FireFox without any add-on (safe mode).
Any suggestion ?Does this only happen in Firefox? What do you see with Internet Explorer or Chrome? If it is only Firefox, I'd try these steps in this order:
1. Clear your cookies and cache
2. Reset your Firefox settings
3. Make a new profile
Chris -
Spot colors not showing correctly in acrobat 11
Spot colors not showing correctly in the output preview as well as the page correctly. I have a spot pms
295 on a page in a few different areas of text and backgrounds. The spot color shows on 1 of my backgrounds
and text and a spot color on another background does not. These items are on the same page. Although I
can use the eyedropper to check the color of these items and it states the spot color is present. The page
also prints correctly. Previews not happening.I included 3 screen shots from Acobat 11 of the test requested. Also, included the last screen shot from Acobat 9 of same file.
Which shows correct preview. To eliminate possible ICC profile issue. I did change profiles to all that were in the profile list
with no change in either test. -
Account Balance not showing correctly
Sir,
Suppose , i have posted an invoice of Rs.200 against a customer and after some times i recieved payment from this customer of Rs.200 So, accout balance of this customer should be zero.. But when i see the account balance from business partner master data , it should me Rs.-400 in accout balance field but when i navigate through orange arrow in to accoutn balance details , there i get zero in balance due field?? ie. it is showing coorectly in details of account ballance but in the business partner master data it is not showing correctly??hi divya,
Check SAP Note 904002 - Customer account balance is displayed with negative sign
Summary
Symptom
Customer Balance is displayed with minus.
Other terms
Customer balance, Supplier Balance, Credit Balance, Debit Balance, Display Credit Balance with Negative Sign, Company Details, System Initialisation, business partner, accounts, SAP Business One
Reason and Prerequisites
Customer balance is displayed in negative though you expect it to be positive.
Solution
Under Administration->System Initialisation->Company Details and the 'Basic Initialisation' tab you will find the setting 'Display Credit Balance with Negative Sign'. This setting decides how Customer and Supplier balances will be displayed.
NOTE!
When creating a company it is important to know that this setting is irreversible once transactions have been made in the company.
When this box IS checked the following applies:
Customer balances will be displayed as Positive.
Supplier balances will be displayed as Negative.
When this box IS NOT checked the following applies:
Customer balances will be displayed as Negative.
Supplier balances will be displayed as Positive.
This setting also influences the entry of opening balances for the G/L accounts. Depending on this setting, the opening balances must be entered as positive or negative numbers.
By default this box is checked when a new company is created.
Header Data
Release Status: Released for Customer
Released on: 02.12.2005 10:42:10
Master Language: English
Priority: Recommendations/additional info
Category: Consulting
Primary Component: SBO-ADM-INI-DET Company Details
Secondary Components: SBO-BP Business Partners
Affected Releases
Release-Independent
Hope it solves problem.
Jeyakanthan -
Balance Sheet not showing correct sign for Liability and Equity
Hai,
I am using SAP PL 40,
In SAP Balance sheet Report,
Liability Ledgers and Equity Ledgers is not showing correct sign. i mean,
In my Liability Ledger the value is
INR-10000.
In Balance sheet it showing
INR1000.
And also, is it possible to bring Dr and Cr column in Balance Sheet?
Now, it's coming in single Column.
Please help me out.
Regards,
Thanga Raj.K
09710445987Hi
It's the system definition that under Standard Balance Sheet Report, the
Liabilities are displayed with POSITIVE SIGN although we know that the
balance for those liabilities accounts are negative. The reason for it
is that the liabilities accounts are defined as Passive Account, so when
the balance is negative, it's displayed with positive sign. And when
the balance is positive, it is displayed with negative sign. The
definition is mainly for the purpose of the reporting. In most of the
localizations, the financial reports supplied by the business should
display Liability and Equity with positive sign.
If you really want to display them in negative sign , you can define a
customized report template in Financials->Financial Report Templates->
and select all liabilities and tick the box in front of 'Reversal Sign'.
Regards,
Syn Qin
SAP Business One Forums Team
Edited by: Syn Qin on Aug 22, 2008 8:49 AM -
HDR merge edit not showing correct
When I try to merge for HDR the edit page does not show correctly. There is big white gap in the merge.
I am using mac book pro retina and photoshop CC 14.1.2I have exactly the same problem with exactly the some configuration, yet I can find no help to solve it.
-
Wism controller does not show url redirection spalash page
Hi
Wism controller does not show url redirection/splash page .
client takes the ip from the dhcp server. when browsing its not going to the authentication page as usual
Thank youCan you elaborate on your issue... really hard to follow. To me, it seems like you want to use a guest splash page. The client associates to the open guest ssid and get's an ip address. Now the user has to open a browser to get the portal page correct? This has nothing to do with the WLC, but the OS on the device. Some devices can detect if no internet is present after authentication and obtaining an address. This means the device will automatically open a browser to present the user with the splash page. Other devices will require the user to open a browser to get the login screen.
Scott
Maybe you are looking for
-
How to create variants for a sequence-f​ile?
Hello, i have a testplan with custom teststeps. Each step has a new field with type "container" and name "myData", Inside of this container are numeric, string and bool parameter. The parameter inside this container are used to execute the teststep.
-
Has anyone managed to make the Canon 8000F Scanner work on this system?
has anyone managed to make the Canon 8000F Scanner work on this OX system?
-
Where can I download Photoshop CS6 extended?
How do I download Photoshop extended CS6 when I did not receive the DVD from PCMG?
-
Hi, I have taken a dump using expdp tool with the following syntax: expdp joy/joy@db1 directory=DATA_PUMP_DIR dumpfile=joy_nodata.dmp logfile=joy_nodata.log schemas=joy content=metadata_only While importing the dump to another DB I have used the foll
-
Make FormItem label text word wrap?
I am building a form, but my labels are fairly long sentences. Is there a way to make the FormItem labels wrap? I tried defining the labelWidth, but it just truncates the text with "..." If there is no way to add a break in the label or make it wrap,