ADF Popup disappear on Filtering data - weblogic12c

I have been implementing a popup on button click, however when I want to filter the data, Like in highlighted snap & press ENTER the popup disappear. The issues is on every popup. I am using 12.2.1.4.0 version of Jdeveloper. Please help to get out of this stuck
Here is the code of my Popup:
<af:popup id="prodRol"
popupFetchListener="#{ProdPgBean.editPopupFetchFabIns}"
contentDelivery="lazyUncached">
<af:dialog id="d4" dialogListener="#{ProdPgBean.editDialogFabInsp}"
title="Fill Fabric Inspection Rolls">
<af:panelCollection id="pc15" inlineStyle="width:500px; height:470px;">
<f:facet name="menus"/>
<f:facet name="toolbar">
<af:toolbar id="t33">
<af:button text="Select All" id="cb38" partialSubmit="true"
actionListener="#{ProdPgBean.SelectAllFabricRollInsp}"/>
<af:button text="De Select All" id="cb37" partialSubmit="true"
actionListener="#{ProdPgBean.DeSelectAllFabricRollInsp}"/>
</af:toolbar>
</f:facet>
<f:facet name="statusbar"/>
<af:table value="#{bindings.ProdFbShrnkRollVO1.collectionModel}"
var="row"
rows="#{bindings.ProdFbShrnkRollVO1.rangeSize}"
emptyText="#{bindings.ProdFbShrnkRollVO1.viewable ? 'No data to display.' : 'Access Denied.'}"
fetchSize="#{bindings.ProdFbShrnkRollVO1.rangeSize}"
rowBandingInterval="0"
filterModel="#{bindings.ProdFbShrnkRollVO1Query.queryDescriptor}"
queryListener="#{bindings.ProdFbShrnkRollVO1Query.processQuery}"
filterVisible="true" varStatus="vs"
selectedRowKeys="#{bindings.ProdFbShrnkRollVO1.collectionModel.selectedRow}"
selectionListener="#{bindings.ProdFbShrnkRollVO1.collectionModel.makeCurrent}"
rowSelection="single" id="t21"
binding="#{ProdPgBean.fabricInspRollTable}" autoHeightRows="-1" inlineStyle="height:400px;"
styleClass="AFStretchWidth">
<af:column headerText="Select "
id="c66" align="center" width="40">
<af:selectBooleanCheckbox value="#{row.bindings.SelpRol.inputValue}"
label="#{row.bindings.SelpRol.label}"
shortDesc="#{bindings.ProdFbShrnkRollVO1.hints.SelpRol.tooltip}"
id="sbc3"/>
</af:column>
<af:column sortProperty="RollNo" filterable="true"
sortable="true" headerText="Roll No." id="c64"
align="center">
<af:inputText value="#{row.bindings.RollNo.inputValue}"
label="#{bindings.ProdFbShrnkRollVO1.hints.RollNo.label}"
required="#{bindings.ProdFbShrnkRollVO1.hints.RollNo.mandatory}"
columns="#{bindings.ProdFbShrnkRollVO1.hints.RollNo.displayWidth}"
maximumLength="#{bindings.ProdFbShrnkRollVO1.hints.RollNo.precision}"
shortDesc="#{bindings.ProdFbShrnkRollVO1.hints.RollNo.tooltip}"
id="it40">
<f:validator binding="#{row.bindings.RollNo.validator}"/>
</af:inputText>
</af:column>
<af:column headerText="Supplier Roll No"
id="c137" align="center" sortProperty="SuppRollNo"
sortable="true" filterable="true">
<af:outputText value="#{row.SuppRollNo}" id="ot14"/>
</af:table>
</af:panelCollection>
</af:dialog>
</af:popup>

set the autoCancel property of the af:popup to disabled. This should prevent the popoup closes automatically.
From your description, it's not clear when the popup should close.

Related

Any way to set PrimaryHeader from codebehind in ShieldUi BarChart

I am using the asp.net version of shieldui for charts and have a barchart and would like to set the primaryHeader or secondaryHeader with data from the database. I searched the documentation page of shieldui website and could not find anything.
What I tried is something like this:
<shield:ShieldChart ID="ShieldChart1" Width="100%" Height="200px" runat="server"
OnTakeDataSource="ShieldChart1_TakeDataSource"
CssClass="chart">
<PrimaryHeader Text=" ">
<Style Bold="true" FontSize="30px" />
</PrimaryHeader>
<SecondaryHeader Text="<asp:Label id="CardInvoiced" runat="server"/> ">
</SecondaryHeader>
<ExportOptions AllowExportToImage="false" AllowPrint="false" />
<Axes>
<shield:ChartAxisX
CategoricalValuesField="Area">
</shield:ChartAxisX>
<shield:ChartAxisY>
</shield:ChartAxisY>
</Axes>
<DataSeries>
<shield:ChartBarSeries DataFieldY="Sales" CollectionAlias="signups">
</shield:ChartBarSeries>
<shield:ChartBarSeries DataFieldY="Starts" CollectionAlias="starts">
</shield:ChartBarSeries>
<shield:ChartBarSeries DataFieldY="bis" CollectionAlias="bis">
</shield:ChartBarSeries>
<shield:ChartBarSeries DataFieldY="comps" CollectionAlias="comps">
</shield:ChartBarSeries>
</DataSeries>
</shield:ShieldChart>
ShieldUI error is:
Type 'Shield.Web.UI.ShieldChart' does not have a public property named 'Label'.
Any suggestion on how to accomplish this?
I solved this and here is how you set both PrimaryHeader and SecondaryHeader in ShieldUi graphs:
ShieldChartFSS7R.PrimaryHeader.Text = "Test Primary Header";
ShieldChartFSS7R.SecondaryHeader.Text = "Test Secondary Header";
Which shows the headers like this:

Protractor css locator for md-select

I'm new to protractor and need to know how can i get the text i.e. Connections in the below code block. I need to click this "Connections". Anyhelp would be really appreciated. Thanks in advance
<md-option ng-repeat="worksite in vmSplashController.worksites track by $index" id="option_worksite_TRANSFER" ng-value="worksite" tabindex="0" class="ng-scope" role="option" aria-selected="false" value="[object Object]">
<div class="md-text ng-binding">
Connections
</div>
</md-option>
Full code
<md-dialog ng-cloak aria-span="" id="splashDialog" class="asui-popup-container splashContainer">
<form name="splash">
<md-dialog-content class="agentDetails" flex>
</md-dialog-content>
<md-dialog-content class="agentOptions" flex layout="row">
<md-input-container class="md-input-has-placeholder" id="nav_worksite" ng-if="vmSplashController.worksites.length >= 1" flex="50" layout="column">
<label class="select-lable">Worksite</label>
<md-select md-no-ink name="nav_worksite" required ng-model="vmSplashController.worksites.selected" ng-model-options="{trackBy: '$value.locationCode'}" aria-label="Select Worksite" md-container-class="md-select-custom nav-worksite-selectbox" ng-change="vmSplashController.onWorksiteChange(vmSplashController.worksites.selected)">
<md-option ng-repeat="worksite in vmSplashController.worksites track by $index" id="option_worksite_{{worksite.locationCode}}" ng-value="worksite">
{{**Here that Div is being created i.e. Connections along with other two options**}}
</md-option>
</md-select>
</md-input-container>
</md-dialog-content>
<md-dialog-actions layout="row">
<md-button md-no-ink class="md-primary nobg-btn" ng-click="vmSplashController.onConfirm()" ng-disabled="splash.$invalid">
CONFIRM
</md-button>
</md-dialog-actions>
</form>
</md-dialog>
I treid this
element(by.cssContainingText('.option_worksite_TRANSFER > div.md-text', 'Connections')).click();
but getting the below error.
Message:
Failed: No element found using locator: by.cssContainingText(".option_worksite_TRANSFER > div.md-text", "Connections")
First - I'm a bit confused. In example you are trying to select class option_worksite_TRANSFER, but in error message it has an id.
If you are trying to select value from dropdown, try this solution:
https://stackoverflow.com/a/39047319/6331748
Try this using xpath:
element(by.xpath("//div[text()='Connections']")).click();
Try using the below code:
element(by.cssContainingText('[id^="option_worksite"] > div.md-text', 'Connections')).click();
Adding waits:
var EC = protractor.ExpectedConditions;
var ele = element(by.cssContainingText('[id^="option_worksite"] > div.md-text', 'Connections'));
browser.wait(EC.visibilityOf(ele), 5000).then(function(){
ele.click();
});

Contact Form 7 Required field not working

I am using contact form 7 for a number of forms on my site.
I am using almost identical code for two forms.
The problem is, on one form, i am missing 'required field' messages, loading animation on send and the success message.
However, my other forms are working perfectly.
The not working properly form can be found here (just click on any button):
http://trailerbins2u.com.au/
The Code for this form is:
<div class="thrive-col left-col">
[text* your-name placeholder "Name*"][text your-company placeholder "Company"]</div>
<div class="thrive-col right-col">
[email* your-email placeholder "Email*"]
[tel* your-phone placeholder "Phone Number*"]</div>
[text* your-address placeholder "Drop Off Address*"]</div>
[date* your-drop placeholder "Trailer Drop Off Date*"]</div>
[text* your-time placeholder "Preferred Time*"]
[select* your-trailer "Select Trailer Size*" "4 Cubic Metre Lite" "4 Cubic Metre" "5 Cubic Metre" "6 Cubic Metre"]
<div class="thrive-col left-col"><label>Do You Have Household Rubbish?</label>
[checkbox* your-household-rubbish "Household Junk" "Furniture & Furnishings" "Appliances & Whitegoods" "Paper & Stationary" "Office Waste & E-waste" "Rugs & Flooring" "Packaging Waste" "Green Waste" "Mattress" "None of the Above"]</div>
<div class="thrive-col right-col"><label>Do you have Construction Waste?</label>
[checkbox* nl default:10 your-construction-rubbish "Plasterboard (Gyprock)" "Timber & Framing" "Joinery & Cabinets" "Timber Flooring" "Carpet & Underlay" "Packaging Waste" "Builders Rubble" "Kitchen Demolition" "Bathroom Demolition" "None of the Above"]</div>
[textarea your-message placeholder "Your Message"]
[submit "Send"]
My other, perfectly working form can be found here (again, click on any button):
http://trailerbins2u.com.au/rubbish-removal-sydney/
And the code:
<div class="thrive-col left-col">
[text* your-name placeholder "Name*"] [text your-company placeholder "Company"]</div>
<div class="thrive-col right-col">[email* your-email placeholder "Email*"]
[tel* your-phone placeholder "Phone Number*"]</div>
[date* your-drop placeholder "Date Removal Required"]
[text* your-time placeholder "Time*"]
[text* your-address placeholder "Address*"]
<div class="thrive-col left-col"><label>Do You Have Household Rubbish?</label>
[checkbox* your-household-rubbish "Household Junk" "Furniture & Furnishings" "Appliances & Whitegoods" "Rugs & Flooring" "Packaging Waste" "Green Waste" "Mattress" "None of the Above"]</div>
<div class="thrive-col right-col"><label>Do you have Construction Rubbish?</label>
[checkbox* your-construction-rubbish "Plasterboard (Gyprock)" "Timber & Framing" "Joinery & Cabinets" "Timber Flooring" "Carpet & Underlay" "Packaging Waste" "Builders Rubble" "Kitchen Demolition" "Bathroom Demolition" "None of the Above"]</div>
[textarea your-message placeholder "Your Message"]
[submit "Send"]
So as you can see, the code is almost identical. Contact forms 7 is obviously working properly for the second form to send, and no css should be affecting it, as it should affect both.
Any ideas on what's gone wrong?
Thanks Everyone!
It may be due to an extra form tag placed before the short code.

Selecting a field in Protractor

<hs-details-item>
<hs-label>Location</hs-label>
<hs-value-block>
<hs>
<hs-text-box ng-class="{'disabled': isAmenityPosting }" class="required" input-control="{title:'Location', okCallback:setJobSite, value:jobSiteName,
autocomplete:{ values:getJobSiteList, reload: true }, ss:'location'}">
<i class="icon-room"></i><span hs-placeholder="Select Location" class="ng-binding"></span>
</hs-text-box>
</hs>
<hs>
<!-- ngIf: isBarcodeShow() --><hs-button ng-class="{'disabled': soCreating }" class="barcode-special-btn smaller ng-scope" ng-if="isBarcodeShow()" hs-gesture="{handler:startScan, param: onBarcodeScanCompleted}"><i class="icon-br-code"></i></hs-button><!-- end ngIf: isBarcodeShow() -->
</hs>
</hs-value-block>
</hs-details-item>
Scenario: click on “Location” field...
What would be the best way to come up with a command in Protractor to select "location" field from the above Snippet Code?
Can it be done by not using Xpath?
Multiple options here. A sort of a non-welcomed, but short and readable way, would be to use an XPath expression and check the preceding label:
var locationTextBox = element(by.xpath("//hs-label[. = 'Location']/following::hs-text-box"));
locationTextBox.click();

How can you set focus to an inputbox with PowerShell?

I'm using the following PowerShell 2.0 code to grab input from a vb inputbox:
[void][System.Reflection.Assembly]::LoadWithPartialName('Microsoft.VisualBasic')
$name = [Microsoft.VisualBasic.Interaction]::InputBox("What is your name?", "Name", "bob")
Sometimes when I run it the input box appears behind the active window. Is there a way to make the input box top most? Or an easy way to get its handle and just use setforegroundwindow?
Thanks!!
I'm not sure how to do this easily considering that the InputBox call is modal so you can't easily try to find the window handle and do a set-foreground on that window (unless you attempt to use a background job). Rather than use this VisualBasic text input box, how about a "roll your own" implementation using WPF/XAML. It is pretty easy but it does require WPF which is installed by PowerShell 2.0 if necessary.
$Xaml = #'
<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Name="Window"
Title="Name" Height="137" Width="444" MinHeight="137" MinWidth="100"
FocusManager.FocusedElement="{Binding ElementName=TextBox}"
ResizeMode="CanResizeWithGrip" >
<DockPanel Margin="8">
<StackPanel DockPanel.Dock="Bottom"
Orientation="Horizontal" HorizontalAlignment="Right">
<Button x:Name="OKButton" Width="60" IsDefault="True"
Margin="12,12,0,0" TabIndex="1" >_OK</Button>
<Button Width="60" IsCancel="True" Margin="12,12,0,0"
TabIndex="2" >_Close</Button>
</StackPanel>
<StackPanel >
<Label x:Name="Label" Margin="-5,0,0,0" TabIndex="3">Label:</Label>
<TextBox x:Name="TextBox" TabIndex="0" />
</StackPanel>
</DockPanel>
</Window>
'#
if ([System.Threading.Thread]::CurrentThread.ApartmentState -ne 'STA')
{
throw "Script can only be run if PowerShell is started with -STA switch."
}
Add-Type -Assembly PresentationCore,PresentationFrameWork
$xmlReader = [System.Xml.XmlReader]::Create([System.IO.StringReader] $Xaml)
$form = [System.Windows.Markup.XamlReader]::Load($xmlReader)
$xmlReader.Close()
$window = $form.FindName("Window")
$window.Title = "My App Name"
$label = $form.FindName("Label")
$label.Content = "What is your name?"
$textbox = $form.FindName("TextBox")
$okButton = $form.FindName("OKButton")
$okButton.add_Click({$window.DialogResult = $true})
if ($form.ShowDialog())
{
$textbox.Text
}
This could be rather easily wrapped up into a Read-GuiText function.
If you set a default value for the input box it kind of makes it "modal", something like this:
$response = [Microsoft.VisualBasic.Interaction]::InputBox("Do you want to include servers in MANUAL REBOOT group ? If YES, please type: Include MANUAL reboot group","Warning!!!","")
Sub SetInputBoxFocus()
System.Threading.Thread.Sleep(300)
Microsoft.VisualBasic.AppActivate("Title)
''Console.WriteLine("Setting focus ") '"
End Sub
Dim strPW as String = ""
Dim tsStartInfo As New System.Threading.ThreadStart(AddressOf SetInputBoxFocus)
Dim tBackgroundJob As New System.Threading.Thread(tsStartInfo)
tBackgroundJob.Start()
strPW = Microsoft.VisualBasic.InputBox("Prompt: ", "Title", "", -1, -1)
tBackgroundJob = Nothing
tsStartInfo = Nothing